chown -R MySQL:mysql /mysql
在鳳泉等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作按需定制網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站建設(shè),網(wǎng)絡(luò)營銷推廣,外貿(mào)營銷網(wǎng)站建設(shè),鳳泉網(wǎng)站建設(shè)費(fèi)用合理。
/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!@#";
執(zhí)行mysqld_safe報(bào)錯(cuò):mysqld does not exist or is not executable
執(zhí)行mysqld_safe報(bào)錯(cuò):
[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
后臺錯(cuò)誤日志報(bào):
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啟動報(bào)錯(cuò) mysqld_safe只認(rèn)識/usr/local/mysql/bin/mysqld路徑的mysqld
方法一:在/usr/local/mysql創(chuàng)建鏈接文件
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目錄改為自己實(shí)際的安裝目錄