重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

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://cqcxhl.com/article/gjcpje.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP