When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
Todd
On Sat, 2007-01-27 at 09:18 -0800, Todd Cary wrote:
When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
---- as root...
/sbin/service mysqld start
socket isn't available for connection unless mysqld is running
Craig
Craig White wrote:
On Sat, 2007-01-27 at 09:18 -0800, Todd Cary wrote:
When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
as root...
/sbin/service mysqld start
socket isn't available for connection unless mysqld is running
Craig
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
When I submit
# /sbin/service mysqld start
I get the message: mysqld unrecognized service
When I type in
# yum install mysql
I am told it is already installed. Also, the GUI for services does not have mysql listed. How I can tell if mysql is truly installed?
Todd
On Sat, Jan 27, 2007 at 10:12:02AM -0800, Todd Cary enlightened us:
Craig White wrote:
On Sat, 2007-01-27 at 09:18 -0800, Todd Cary wrote:
When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
as root...
/sbin/service mysqld start
socket isn't available for connection unless mysqld is running
Craig
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
When I submit
# /sbin/service mysqld start
I get the message: mysqld unrecognized service
When I type in
# yum install mysql
I am told it is already installed. Also, the GUI for services does not have mysql listed. How I can tell if mysql is truly installed?
Todd
yum list "mysql*"
will probably give you the hint you need.
Matt
On Sat, 2007-01-27 at 10:12 -0800, Todd Cary wrote:
Craig White wrote:
On Sat, 2007-01-27 at 09:18 -0800, Todd Cary wrote:
When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
as root...
/sbin/service mysqld start
socket isn't available for connection unless mysqld is running
Craig
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
When I submit
# /sbin/service mysqld start
I get the message: mysqld unrecognized service
When I type in
# yum install mysql
I am told it is already installed. Also, the GUI for services does not have mysql listed. How I can tell if mysql is truly installed?
---- yum install mysql # will install client but not the server
yum install mysql-server # will install the server
Craig
Craig White wrote:
On Sat, 2007-01-27 at 10:12 -0800, Todd Cary wrote:
Craig White wrote:
On Sat, 2007-01-27 at 09:18 -0800, Todd Cary wrote:
When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
as root...
/sbin/service mysqld start
socket isn't available for connection unless mysqld is running
Craig
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
When I submit
# /sbin/service mysqld start
I get the message: mysqld unrecognized service
When I type in
# yum install mysql
I am told it is already installed. Also, the GUI for services does not have mysql listed. How I can tell if mysql is truly installed?
yum install mysql # will install client but not the server
yum install mysql-server # will install the server
Craig
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Craig -
Many thanks! That was it...
Todd
Todd Cary escribió:
When I run
# mysql
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What do I need to do? The install of MySQL was done as part of the Centos setup.
Todd
Try with:
usr/bin/mysqld_safe --user=mysql &
Replace usr/bin/ with the right path to mysqld_safe
As far as I recall you need to have the client installation too to make it work. You can check if you have it already installed by accessing the man page for mysqld_safe