nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Failed in mysql_real_connect(): Can't connect to local MySQL

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).' ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-16-2006, 02:22 AM
Guest
 
Posts: n/a
Default Failed in mysql_real_connect(): Can't connect to local MySQL

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?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-17-2006, 03:05 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to start MySQL server or service. The command is:
Code:
/etc/init.d/mysql start
More info at my blog:
http://blogs.cyberciti.biz/hm/index....-mysql-server/
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 12:38 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36