Если пробую
[root@linux ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.89 ALT Linux MySQL RPM
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Всё ОК. Базами ворочать могу.
+
[root@linux ~]# service mysqld status
mysqld is running
НО!
[root@linux ~]# netstat --listen | grep mysql
unix 2 [ ACC ] STREAM LISTENING 55931 /mysql.sock
и
[root@linux ~]# telnet 127.0.0.1 3306
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@linux ~]# mysql -u root -h 127.0.0.1 -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
[root@linux ~]#
Если сделать ./usr/sbin/mysqld
вижу:
2010-May-20 13:24:05 :: startup
100520 13:24:05 InnoDB: Started; log sequence number 0 43655
100520 13:24:05 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.89' socket: '/mysql.sock' port: 0 ALT Linux MySQL RPM
Конфиг mysql
#skip-bdb
chroot=/var/lib/mysql
datadir=/db
bdb-logdir=/log
port=3306
#log=/log/queries
pid-file=/mysqld.pid
skip-locking
skip-networking
socket=/mysql.sock
tmpdir=/tmp
user=mysql
[mysqladmin]
password=пасс
user=root