作者:fishdenise_496 | 来源:互联网 | 2017-07-31 23:55
Ubuntu下安装MySQL出现FATALERROR:Couldnotfindmysqld的处理错误信息:#./bin/mysql_install_db–user=mysqlFATALERROR:CouldnotfindmysqldThefollowingdirectoriesweresearched:/usr/libexec/usr/sbin/us
Ubuntu下安装MySQL出现FATAL ERROR: Could not find mysqld的处理
错误信息:
#./bin/mysql_install_db –user=mysql
FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/libexec
/usr/sbin
/usr/bin
If you compiled from source, you need to run ‘make install’to copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top of the level of the extracted archivem or pass the –basedir option pointing to that location.
解决办法:
scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql
(这里mysql是所使用的用户名,basedir是mysql的安装目录)