i got this problem when installing phpBB:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /www/htdocs/forum/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /www/htdocs/forum/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /www/htdocs/forum/db/mysql4.php on line 331
phpBB : Critical Error
Could not connect to the database
-------------------------------------------------------
my MySQL is up in running. i can connect through the console. im using the default mysql app of slackware 10. phpmyadmin is working also. but before when i was trying to install phpmyadmin i encountered a problem.
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
and i noticed that the default is /var/run/mysql/mysql.sock. i changed the config of my phpmyadmin and it works. Do you think it has the same problem with my phpBB?


Reply With Quote
Bookmarks