ZBLOG

mysql --version 是5.7 .41 但是echo $PATH 是/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/mysql-5.7.25/bin:/root/bin:/path/to/mysql/bin

Based on the output you provided, it appears that the directory containing the MySQL binaries is indeed included in your PATH environment variable.

Since you mentioned that running mysql --version shows version 5.7.41, this suggests that MySQL is installed correctly and the mysql command can be found in one of the directories listed in your PATH.

However, if you are still encountering the error “mysqld_safe: command not found”, it’s possible that the mysqld_safe binary is not present in the same directory as the mysql binary. In some cases, mysqld_safe may be located in a different directory or may not be included with the MySQL installation by default.

To check if mysqld_safe is present on your system, you can try running the following command:

find / -name mysqld_safe

This will search your entire filesystem for any files or directories named mysqld_safe. If mysqld_safe is found, the command will output its path. If it is not found, you may need to install it separately or check if it is included with your MySQL installation under a different name or location.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=52

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?