码迷,mamicode.com
首页 > 数据库 > 详细

ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理

时间:2014-09-29 01:28:16      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   使用   ar   strong   for   sp   on   

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的处理

标签:style   color   io   使用   ar   strong   for   sp   on   

原文地址:http://blog.csdn.net/dongqinliuzi/article/details/39648557

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!