
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-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
确定scripts/mysql_install_db文件确实存在
确定该文件有可执行权限