This is a discussion on Failed in mysql_real_connect(): Can't connect to local MySQL within the Linux software forums, part of the Linux Getting Started category; Ok i am getting following error: '/usr/bin/mysqltest: Failed in mysql_real_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).' ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Ok i am getting following error:
'/usr/bin/mysqltest: Failed in mysql_real_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).' What can I check to resolve this error? How do i fix this error? |
| Sponsored Links | ||
|
|
|
||||
|
You need to start MySQL server or service. The command is:
Code:
/etc/init.d/mysql start http://blogs.cyberciti.biz/hm/index....-mysql-server/ |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Failed SSH login attempts and how to avoid brute ssh attacks | rockdalinux | Networking, Firewalls and Security | 16 | 12-12-2007 03:46 AM |
| Connect mysql in c | raj | Databases servers | 1 | 08-10-2007 09:10 PM |
| cdrom: open failed | piggy | Linux hardware | 1 | 08-02-2007 11:25 PM |
| mysql connect failed for root | raghuram | Databases servers | 1 | 02-15-2007 12:06 PM |
| Re-reading the partition table failed with error 16: Device | chiku | Linux software | 1 | 12-07-2006 09:45 PM |