温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

mysql-5.6.35二进制安装

发布时间:2020-06-24 09:10:11 来源:网络 阅读:484 作者:18620626259 栏目:MySQL数据库

chown -R    mysql:mysql     /mysql


/mysql/scripts/mysql_install_db  --user=mysql --basedir=/mysql/ --datadir=/mysql/data

/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf 2>&1 > /dev/null &


 

 update user set password=password("shsnc!@#") where user="root";
 
 
  grant all privileges on *.* to root@'%' identified by "shsnc!@#";
 
 
 执行mysqld_safe报错:mysqld does not exist or is not executable

执行mysqld_safe报错:
[root@edu data]# /usr/local/mysql5.7/bin/mysqld_safe --user=mysql
160427 12:41:28 mysqld_safe Logging to '/renqinglei/mysql/log/mysql_error.log'.
160427 12:41:28 mysqld_safe The file /usr/local/mysql/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
 
后台错误日志报:
160427 12:41:28 mysqld_safe The file /usr/local/mysql/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
 

mysqld_safe启动报错 mysqld_safe只认识/usr/local/mysql/bin/mysqld路径的mysqld


方法一:在/usr/local/mysql创建链接文件

mkdir -p /usr/local/mysql/bin 
ln -s /home/mysql/product/5.6/mysql-1/bin/mysqld /usr/local/mysql/bin/mysqld 

方法二:将mysqld_safe中的所有/usr/local/mysql目录改为自己实际的安装目录


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI