首页 > 代码库 > ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理
ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理
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的安装目录)
ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。