mysql安装成功,不能启动

问答中心分类: Databasemysql安装成功,不能启动
匿名用户 asked 9 年 ago
-- Installing: /etc/mysql/man/man1/mysql-stress-test.pl.1
-- Installing: /etc/mysql/man/man1/mysql-test-run.pl.1
-- Installing: /etc/mysql/man/man1/mysql.1
-- Installing: /etc/mysql/man/man8/mysqld.8
MySQL install successfully!
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K01pureftpd' missing LSB tags and overrides
insserv: warning: script 'K01memcached' missing LSB tags and overrides
insserv: warning: script 'memcached' missing LSB tags and overrides
insserv: warning: script 'pureftpd' missing LSB tags and overrides
include/mysql-5.5.sh: line 193: /etc/mysql/scripts/mysql_install_db: No such file or directory
/etc/init.d/mysqld: 1: /etc/init.d/mysqld: my_print_defaults: not found
/etc/init.d/mysqld: 276: cd: can't cd to /etc/mysql
Starting MySQL
Couldn't find MySQL server (/etc/mysql/bin/mysqld_safe) ... failed!
include/mysql-5.5.sh: line 202: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 203: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 204: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 205: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 206: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 207: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 208: /etc/mysql/bin/mysql: No such file or directory
include/mysql-5.5.sh: line 212: service: command not found
我用的是debian7.7 mysql安装目录为/etc/mysql 发现安装成功后,不能启动,这是哪里的问题呢

7 Answers
oneinstack answered 9 年 ago
请不要升级操作系统;把oneinstack/install.log 安装日志上传到百度云,回复连接

xiaoshi answered 9 年 ago
install.log 安装日志   链接:http://pan.baidu.com/s/1i4gsYiD 密码:wl6w

oneinstack answered 9 年 ago
系统之前有安装过mysql,比如/etc/mysql 有这个目录,导致oneinstack源码安装mysql成功,但不能启动,请用一个干净系统安装。

xiaoshi answered 9 年 ago
我重新安装了一个新系统,/etc/mysql还是不行,换个其他目录就可以,奇怪了。
这是在/etc/mysql重新安装的log,链接:http://pan.baidu.com/s/1mhkW3lm 密码:nvha

oneinstack answered 9 年 ago
你是把程序安装到/etc/mysql 吗?

xiaoshi answered 9 年 ago
是的

xiaoshi answered 9 年 ago
是的