Looks like a permissions problem. Does the mysql process have read/write access to that directory?
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?
:: nocturnal taciturn ::
Looks like a permissions problem. Does the mysql process have read/write access to that directory?
To err is human, to moo bovine.
yes mysql has the read/write permission
:: nocturnal taciturn ::
eu
/etc/my.cnf
look at the "socket =" portion.
To err is human, to forget your password is simply stupid.
i look at it and it is:
socket = /var/run/mysql/mysql.sock
when i changed the config of my phpmyadmin to the default socket of MySQL and my installation works fine.
do you know where i can change the /tmp/mysql.sock on phpBB? maybe this could be the problem.
:: nocturnal taciturn ::
Your problem could lie in your php.ini.
Open up your php.ini and locate the file:
In most cases it should be left blank, but you can change it.Code:mysql.default_socket =
To err is human, to moo bovine.
php.ini
Code:mysql.default_socket = /var/run/mysql/mysql.sock
To err is human, to forget your password is simply stupid.
are you using mysql 4.02d? mysql 4.02d has no *.cnf.
try using lower version with no install.
im using the the default MySQL of slack 10. it's working now already. :P
:: nocturnal taciturn ::
Bookmarks