How to fix: Can't connect to MySQL server on '127.0.0.1' (111)

View previous topic View next topic Go down

How to fix: Can't connect to MySQL server on '127.0.0.1' (111)

Post  Panthymonium on Thu Nov 29, 2012 5:55 pm

I was trying to access a mysql database on my local slackware server and, you guessed it, got this nasty error.
If you come across this too here's what you'll have to do:

Edit /etc/mysql/my.cnf and comment this line so it will look like this:

Code:
#skip-networking


But here's the catch, this same option is present in
Code:
/etc/rc.d/rc.mysqld
in the form of a variable "SKIP" so please change the value of this variable (a null string will do the task)
reboot mysql and you're done:

Code:
/etc/rc.d/rc.mysqld restart

Panthymonium

Posts: 13
Join date: 2011-03-12
Age: 26
Location: Tunisia

http://cloudweave.wordpress.com/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum