To Nha Notes | Jan. 10, 2024, 4:29 p.m.
In Ubuntu 22.04, users may face an unexpected error when using the common install command for directory creation. The issue arises with the -d option, which is not recognized in this version, resulting in an "Got an unexpected argument: -d" error.
To overcome this, users can employ an alternative set of commands achieving the same outcome. The following commands create the "/var/run/mysqld" directory with specified permissions (755) and ownership (mysql:root):
sudo mkdir -p /var/run/mysqld
sudo chmod 755 /var/run/mysqld
sudo chown mysql:root /var/run/mysqld