LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Upgrade Mysql, Socket problems!! (https://www.linuxquestions.org/questions/linux-newbie-8/upgrade-mysql-socket-problems-133357/)

djkoe 01-10-2004 07:45 AM

Upgrade Mysql, Socket problems!!
 
i have upgraded my MySQL version and succeded.
but now i see error's with every page i try to get including mysql.
the error is bv. this:
Code:

Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/vt/test/shop/mode.php on line 10

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/vt/test/shop/mode.php on line 10

Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/vt/test/shop/mode.php on line 11

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/vt/test/shop/mode.php on line 11

Warning: MySQL: A link to the server could not be established in /home/vt/test/shop/mode.php on line 11

Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/vt/test/shop/subcat.php on line 21

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/vt/test/shop/subcat.php on line 21

Warning: MySQL: A link to the server could not be established in /home/vt/test/shop/subcat.php on line 21

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vt/test/shop/subcat.php on line 22


david_ross 01-10-2004 07:49 AM

You probably just need to set the correct client socket path for your new setup in:
/etc/my.cnf


All times are GMT -5. The time now is 07:43 PM.