Mysqld_safe Start Error Mysqld_safe The FILE/USR/LOCAL/MYSQL/BIN/MYSQLD does not exist or was not executable

Source: Internet
Author: User

Error (below), but using mysqld direct boot is not a problem.

  1. 150718 00:03:38 mysqld_safe Logging to '/var/log/mysqld.log '.
  2. 150718 00:03:38 Mysqld_safe The file/usr/local/mysql/bin/mysqld
  3. Does not exist or was not executable. Please CD to the MySQL installation
  4. Directory and Restart this script from there as follows:
  5. ./bin/mysqld_safe&
  6. See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information
  7. [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

    1. Mkdir-p/usr/Local/mysql/bin
    2. 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

    1. <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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.