Error (below), but using mysqld direct boot is not a problem.
[SQL]View plain copy
- 150718 00:03:38 mysqld_safe Logging to '/var/log/mysqld.log '.
- 150718 00:03:38 Mysqld_safe The file/usr/local/mysql/bin/mysqld
- Does not exist or was 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
- [1]+ Exit 1 mysqld_safe --skip-grant-tables--user=mysql
Description: Mysqld_safe startup script reads another startup script from the/usr/local/mysql directory by default mysqld, because my installation directory is/home/mysql/product/5.6/mysql-1. Therefore, the relevant files could not be found. Can be resolved from two aspects.
Method One: Create a linked file in/usr/local/mysql
[SQL]View plain copy
- Mkdir-p/usr/Local/mysql/bin
- Ln-s/home/mysql/product/5.6/mysql-1/bin/mysqld/usr/local/mysql/bin/mysqld
Method Two: Change all/usr/local/mysql directories in the Mysqld_safe to their actual installation directories
[SQL]View plain copy
- <pre name="code" class="sql" >sed-i ' s#/usr/local/mysql#/home/mysql/product/5.6/mysql-1#g '/ Home/mysql/product/5.6/mysql-1/bin/mysqld_safe
Start again successfully.
Mysqld_safe Start Error Mysqld_safe The FILE/USR/LOCAL/MYSQL/BIN/MYSQLD does not exist or was not executable