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("[email protected]
grant all privileges on *.* to [email protected]'%' identified by "[email protected]#";
執行mysqld_safe報錯:mysqld does not exist or is not executable
執行mysqld_safe報錯:
[[email protected] 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目錄改為自己實際的安裝目錄