mysql安装初始化操作报错“FATAL ERROR: Could not find mysqld”
2014-11-04 23:23
417 查看
问题描述:在安装mysql,进行初始化操作的时候报错“FATAL ERROR: Could not find mysqld”
mysql版本:5.5.11
具体报错:
# cd /usr/local/mysql-5.5.11-linux2.6-x86_64
# ./scripts/mysql_install_db --defaults-file=/etc/my_mob.cnf --user=mysql
FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/local/mysql/libexec
/usr/local/mysql/sbin
/usr/local/mysql/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
level of the extracted archive, or pass the --basedir option
pointing to that location.
原因分析:
这里初始化搜索的路径是 /usr/local/mysql/bin,但实际应该是/usr/local/mysql-5.5.11-linux2.6-x86_64
配置文件中mysql基目录是/usr/local/mysql,但实际是/usr/local/mysql-5.5.11-linux2.6-x86_64,修改配置文件可以解决
当然,我们如果没有其他版本的mysql在当前服务器上,可以创建软连接(/usr/local/mysql --->/usr/local/mysql-5.5.11-linux2.6-x86_64)也是可以的。
解决方法:修改配置文件
#vi /etc/my_mob.cnf
basedir=/usr/local/mysql ---> /usr/local/mysql-5.5.11-linux2.6-x86_64
参考文档:https://mariadb.com/kb/en/mariadb/documentation/getting-started/troubleshooting-installation-issues/mariadb-fatal-error-could-not-find-mysqld-when-run-the-script-scriptsmysql_/
mysql版本:5.5.11
具体报错:
# cd /usr/local/mysql-5.5.11-linux2.6-x86_64
# ./scripts/mysql_install_db --defaults-file=/etc/my_mob.cnf --user=mysql
FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/local/mysql/libexec
/usr/local/mysql/sbin
/usr/local/mysql/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
level of the extracted archive, or pass the --basedir option
pointing to that location.
原因分析:
这里初始化搜索的路径是 /usr/local/mysql/bin,但实际应该是/usr/local/mysql-5.5.11-linux2.6-x86_64
配置文件中mysql基目录是/usr/local/mysql,但实际是/usr/local/mysql-5.5.11-linux2.6-x86_64,修改配置文件可以解决
当然,我们如果没有其他版本的mysql在当前服务器上,可以创建软连接(/usr/local/mysql --->/usr/local/mysql-5.5.11-linux2.6-x86_64)也是可以的。
解决方法:修改配置文件
#vi /etc/my_mob.cnf
basedir=/usr/local/mysql ---> /usr/local/mysql-5.5.11-linux2.6-x86_64
参考文档:https://mariadb.com/kb/en/mariadb/documentation/getting-started/troubleshooting-installation-issues/mariadb-fatal-error-could-not-find-mysqld-when-run-the-script-scriptsmysql_/
相关文章推荐
- lamp环境 - ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理
- 安装xfsprogs:FATAL ERROR: could not find a valid UUID header.
- 【mysql】FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法
- ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理
- mysql_install_db FATAL ERROR: Could not find ./bin/my_print_defaults
- cmake安装mysql出错 ---CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installe
- MYSQL安装出现could not start the service mysql error:0处理
- 安装Mysql后,服务启动不了,出现"Could not start the service mysql error"错误
- MySQL安装是出现could not start the service mysql error:0
- 解决mysql安装过程中 the service could not be started.Error:0的问题
- MySQL安装时出现could not start the service mysql error:0 提示错误
- mysql安装error:the security setting could not be applied
- 在安装、重装MySQL时出现could not start the service mysql error:0的错误
- MYSQL安装出现could not start the service mysql error:0处理
- ADS编译出错“Error : (Fatal) L6015U: Could not find any input files to link.”
- Java Exception : Fatal Error. Unable to initialize DatabaseMetaData class.和Non SQL Error : Could not load class com.mysql.jdbc.D
- 安装MYSQL时最后一步提示could not start the servers mysql.error:0错误解决方法
- [解决]xp下mysql安装到最后一步提示the service could not be started.error:0错误
- 安装、重装时出现could not start the service mysql error:0的错误或者start service停止不动时
- MYSQL安装出现could not start the service mysql error:0处理