
log如下:mysqld_safe mysqld from pid file /usr/local/mysql/data/a.zzzzy.com.pid ended
第一次安装的时候装上了,但密码对不上,然后就删除了重装,就出现这个问题了。。。
shshell> groupadd mysql shell> useradd -r -g mysql mysql shell> cd /usr/local shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz shell> ln -s full-path-to-mysql-VERSION-OS mysql shell> cd mysql shell> chown -R mysql . shell> chgrp -R mysql . * shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> bin/mysqld_safe --user=mysql &
到这一步时出错,scripts/mysql_install_db --user=mysql
error tip: -bash: scripts/mysql_install_db: No such file or directory
这个如何解决呢?
系统 是:ceontos6 32bit
Mysql 是:5.6.22
官方教程:http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
确定scripts/mysql_install_db文件确实存在
确定该文件有可执行权限
我想你下载的是mysql的源码,源码不是你这样安装的,因为你文档看的是使用二进制包安装的方式(比如mysql-5.6.22-linux-glibc2.5-i686.tar.gz)
当然,我个人是不建议使用这种方式安装的,因为官方现在支持使用yum安装:
http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
PS: 源码安装,请看这篇:http://dev.mysql.com/doc/refman/5.6/en/installing-source-distribution.html