Я установил MySQL с помощью yum install mysql
на Fedora 12. Теперь, как мне запустить сервер?
[root@localhost init.d]# which mysql
/usr/bin/mysql
[root@localhost init.d]# mysql --version
mysql Ver 14.14 Distrib 5.1.46, for redhat-linux-gnu (x86_64) using readline 5.1
Вот список всех вышеперечисленных команд, которые я пробовал
[root@localhost init.d]# mysql -h localhost -u username -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql
/mysql.sock' (111)
[1]+ Exit 127 /usr/bin/mysqld_safe
[root@localhost init.d]# /etc/init.d/mysql start
bash: /etc/init.d/mysql: No such file or directory
[root@localhost init.d]# /usr/bin/mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql
/mysql.sock' (111)
[root@localhost init.d]# services mysqld start
bash: services: command not found
[root@localhost init.d]# chkconfig --level 345 mysql on
error reading information on service mysql: No such file or directory
[root@localhost init.d]# service mysql start
mysql: unrecognized service
[root@localhost init.d]# /etc/init.d/mysqld start
bash: /etc/init.d/mysqld: No such file or directory
Пришлось также сделать это .. yum install mysql-server
(Yikes!)
Теперь я получаю эту ошибку
[root@localhost vineeth]# service mysqld start
MySQL Daemon failed to start.
Starting MySQL: [FAILED]
[root@localhost vineeth]# /etc/init.d/mysqld start
MySQL Daemon failed to start.
Starting MySQL: [FAILED]