I'm working on a new cent-os install.
I know it's installed:
Code:
[root@ws2 lib]# which mysql
/usr/bin/mysql
Checked for updates:
Code:
[root@ws2 etc]# yum install mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* extras: mirror.anl.gov
* updates: mirror.anl.gov
* base: mirrors.adams.net
* addons: centos.corenetworks.net
Setting up Install Process
Parsing package install arguments
Package mysql-5.0.77-3.el5.i386 already installed and latest version
Nothing to do
--------------
Here is the error I get when I try to start mysql:
Code:
[root@ws2 lib]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I've searched and read that restarting mysql can solve this issue, but in checking I have no mysql daemon.
Code:
[root@ws2 lib]# service mysqld start
mysqld: unrecognized service
cat'ing my my.cnf file shows:
Code:
[root@ws2 lib]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
But I have no /var/lib/mysql dir. I tried creating that dir and that did not help.
Any clue what I might try to make mysql run?
I've searched my system for the mysql.sock file but none exsits (used find and locate ...neither found anything).