mysql-5.6.35二进制安装-成都快上网建站

mysql-5.6.35二进制安装

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目录改为自己实际的安装目录


分享名称:mysql-5.6.35二进制安装
转载来源:http://kswjz.com/article/gjcpje.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流