Search Results how to fix cant connect to local mysql server through socket /var/lib/mysql/mysql sock (2)

20 January 2010, 4:04 pm

15个mysql使用管理命令- alon - 博客园

mysql> 2. How to check whether MySQL Server is up and running? # mysqladmin -u root -p ping. Enter password: mysqld is alive3. How do I find out what version of MySQL I am running? Apart from giving the 'Server version', this command . ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'Note: You can also use “/etc/rc.d/init.d/mysqld stop” to shutdown the server. To start the server, execute “/etc/rc.d/init.d/mysql start”

Source: http://www.cnblogs.com/alon/archive/2010/01/21/1652849.html

22 December 2009, 9:53 pm

Failed to connect to my MySQL database server. | drupal.org

Failed to connect to your MySQL database server. MySQL reports the following message: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2). * Are you sure you have the correct username and password? I have not found where I can change permissions within GoDaddy, or if those permissions are even the problem. ANY help you could give towards helping me fix this would be greatly appreciated. I am on the verge of ripping my hair out.

Source: http://drupal.org/node/666092

18 February 2009, 12:23 pm

TinyChat Makes Creating Disposable Chat Rooms A Breeze

An error occurred while attempting to connect to the server. The Error returned was: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11). They need to figure out some kinks still. fix: follow expectation – topic oriented not user – the inherent brevity of a tiny chat warrants this fix: support the novelty of igniting a chat, define on what premise fix: use side rail to list recent hot topics. Committment: none fix: encourage users to

Source: http://techcrunch.com/2009/02/18/tinychat-makes-creating-disposable-chat-rooms-a-breeze/

14 January 2009, 8:00 am

15个mysql使用管理命令

What is the safe method to shutdown the MySQL server? # mysqladmin -u root -ptmppassword shutdown # mysql -u root -ptmppassword ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mysqladmin -u root -ptmppassword stop-slave Slave stopped # mysqladmin -u root -ptmppassword start-slave mysqladmin: Error starting slave: The server is not configured as slave; fix in config file or with CHANGE MASTER TO

Source: http://www.maycode.com/index.php/linux/34-linuxbase/1372-mysql.html

16 May 2008, 8:29 pm

Fix: Can't connect to local MySQL server through socket '/var/lib

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [root@ser-man1 ~]# whereis mysqld.sock mysqld: [root@ser-man1 ~]# mysql –print-defaults mysql would have been started with the

Source: http://corpocrat.com/2008/05/16/fix-cant-connect-to-local-mysql-server-through-socket-varlibmysqlmysqlsock/

15 January 2008, 8:00 am

Can't connect to local MySQL server through socket - Site5 Web

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Looking at my database.yml file, i did have the socket line set to '/tmp/mysql.sock'. However, searching the file system (on server:thenatos), this lock file does not exist. A quick search of the net, turned up '/var/lib/mysql/mysql.sock' as another possible location of the lock file, but switching it made no difference. Any ideas on why this would suddenly stopped working, and ways I can fix?

Source: http://forums.site5.com/showthread.php?t=17371

18 September 2007, 1:36 pm

Help! Need advice or New Host ASAP - vBulletin.org Forum

mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) /forum/includes/class_core.php on line 274 . I've also told them that I'll move to a semi-dedicated server temporarily while we figure out exactly what is using so many resources and what I need to do to fix it. Unfortunately the last I heard from them was at 8pm last night (CST) - IOW, it's been more than 12

Source: http://www.vbulletin.org/forum/showthread.php?t=158137