Cannot connect to MySQL (newbie)

jgp wunderdog at gmail.com
Fri Sep 3 08:56:46 UTC 2004


check if mysql is running

On Fri, 3 Sep 2004 09:43:48 +0100, Graham Cossey <graham at cossey.plus.com> wrote:
> I'm hoping someone can help with a problem I am having connecting to my
> local MySQL installation.
> 
> I am running FC2 and MySQL 4.0.20.
> 
> When I attempt to connect to MySQL I get the following message:
> 
> ERROR 2002: Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)
> 
> /etc/my.cnf
> -----------
> [mysqld]
> datadir=/var/lib/mysql
> socket=/var/lib/mysql/mysql.sock
> 
> [mysql.server]
> user=mysql
> basedir=/var/lib
> 
> [safe-mysqld]
> err-log=/var/log/mysql.log
> pid-file=/var/run/mysqld/mysql.pid
> -------------
> 
> Looking at the running services (using the GUI tool via System settings >
> Services) mysql is reporting the following in the status pane: "Usage:
> /etc/init.d/mysql start|stop|restart".
> 
> Let me know what further details would be useful and I will attempt to post
> them.
> 
> Many thanks
> 
> Graham.
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>





More information about the fedora-list mailing list