How did I fix «Directory '/var/run/mysqld' for UNIX socket file don't exists» on `mysqld_safe`?

2024-02-22--09-54-16

Run it before mysqld_safe:

mkdir -p /var/run/mysqld
chown mysql:mysql /var/run/mysqld