я установил 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]