1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - Linux系统 - ubuntu - 正文

君子好学,自强不息!

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的安装目录)



本文来源:1818IP

本文地址:https://www.1818ip.com/post/2495.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。