Click to See Complete Forum and Search --> : mysql not connecting


SubDefy
01-26-2003, 06:21 PM
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/news/b2install.php on line 17

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/news/b2install.php on line 17
Can't connect to the database
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


thats the error message I get when trying to install b2 blogger install file any thoughts :confused:

theN
01-27-2003, 01:52 AM
Hi

What did your Google search on the 2 warning strings yield?

Regards
theN

Altaz
01-27-2003, 02:07 AM
Hi there,

Did you try to restarting SQL.

Try it with the following commands>>>>>>>>>>

/etc/init.d/mysqld restart ----- restarting the sql

Also you can maybe look at the status of the sql.

Command is as follows

/etc/init.d/mysqld status.

:)

Try it out and then let me know
Cheers
Altaz

SubDefy
01-27-2003, 01:12 PM
well it was running at the time and still is but when i restart it says FAILED to stop but starts it...but it stills gives me that error i tried both things u said =/

monkeyboi
01-28-2003, 12:36 AM
try connect to mysql using "mysql -h localhost -u youruser-p"
(no quote) in terminal and c if it works.....