Hello guys, this is how I got MySQL-4.0.20 (source distribution) working, I've been stuck with the '2002 ERROR' complaining about the 'mysql.sock'
First, I copy a configuration file, in somewhere like 'support files', choose 'my-medium.cnf' or 'my-large.cnf' .... and paste it in /etc/my.cnf, yes change the name to 'my.cnf'.Code:ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
In that file you can change the path to the socket file, 'Socket = /path/to/socket'.
Another thing I did is make a empty 'mysql.sock' file and place it in the 'path/to/socket(you can also copy it somewhere from the installation package).
And before to launch the
I didCode:/usr/local/mysql/bin/mysql
so : my.cnf, the sock file 'mysql.sock', and 'mysqld_safe' ...Code:/usr/local/mysql/bin/mysqld_safe &
Hope this will help.


