2 years, 2 months ago byte

Don't forget that /var/run/mysqld needs to exist for the mysql user too. Else you'll see the following:

120131 13:21:16 [ERROR] mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2) 120131 13:21:16 [ERROR] Can't start server: can't create PID file: No such file or directory

This method of installation will also show failures like:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

So you really login via specifying host (mysql -h127.0.0.1)