MySQL5.7启动数据库报错'does not exist or is not e

发布时间:2021-09-27 17:43 来源:亿速云 阅读:0 作者:chen 栏目: Mysql 欢迎投稿:712375056

本篇内容介绍了“5.7启动数据报错'does not exist or is not executable'怎么解决”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

MySQL 5.7启动数据库报错
[root@localhost ~]# mysqld_safe --defaults-file=/etc/my.cnf &
[1] 23687
[root@localhost ~]#  mysqld_safe Adding '/mysql_software_57/lib/mysql/libjemalloc.so.1' to LD_PRELOAD for mysqld
2017-04-08T00:21:30.162718Z mysqld_safe Logging to '/mysql_log_57/mysqld_error.log'.
2017-04-08T00:21:30.166075Z mysqld_safe Logging to '/mysql_log_57/mysqld_error.log'.
2017-04-08T00:21:30.171866Z mysqld_safe The file /usr/local/Percona-Server-5.7.17-11-Linux.x86_64.ssl101/bin/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information

[1]+  Exit 1                  mysqld_safe --defaults-file=/etc/my.cnf

解决方法
在MySQL 5.7中,安全提升,要求切换到软件安装目录,来启动数据库
[root@localhost ~]# cd /mysql_software_57/
[root@localhost mysql_software_57]# bin/mysqld_safe --defaults-file=/etc/my.cnf &
[1] 25341
[root@localhost mysql_software_57]#  mysqld_safe Adding '/mysql_software_57/lib/mysql/libjemalloc.so.1' to LD_PRELOAD for mysqld
2017-04-08T00:22:31.981599Z mysqld_safe Logging to '/mysql_log_57/mysqld_error.log'.
2017-04-08T00:22:31.984805Z mysqld_safe Logging to '/mysql_log_57/mysqld_error.log'.
2017-04-08T00:22:32.070881Z mysqld_safe Starting mysqld daemon with databases from /mysql_data_57

免责声明:本站发布的内容(图片、视频和文字)以原创、来自本网站内容采集于网络互联网转载等其它媒体和分享为主,内容观点不代表本网站立场,如侵犯了原作者的版权,请告知一经查实,将立刻删除涉嫌侵权内容,联系我们QQ:712375056,同时欢迎投稿传递力量。