zoukankan      html  css  js  c++  java
  • mysqld_safe启动报错 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable

    报错(如下),但是使用mysqld直接启动没有问题。

    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 is 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.   
    8. [1]+  Exit 1                  mysqld_safe --skip-grant-tables --user=mysql  

    说明:mysqld_safe启动脚本默认的从/usr/local/mysql目录中读取另外一个启动脚本mysqld,因为我的安装目录为/home/mysql/product/5.6/mysql-1。所以找不到相关文件。可以从两个方面解决。

    方法一:在/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  

    方法二:将mysqld_safe中的所有/usr/local/mysql目录改为自己实际的安装目录

    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  

    再次启动成功。

  • 相关阅读:
    写入和读取本地文件。
    通过ADG技术迁移单实例到rac集群上
    更改整个目录文件的所有权限
    oracle12c安装过程netca报错failed to core dump
    oracle通过闪回查询表的更改记录
    oracle表空间使用率查询sql
    SQL执行慢的原因分析
    存储过程+定时job
    oracle goldengate搭建配置
    oracle11G Windows冷备恢复
  • 原文地址:https://www.cnblogs.com/wajika/p/6719805.html
Copyright © 2011-2022 走看看