zoukankan      html  css  js  c++  java
  • mysql编译报错

    1.make报错现象

    Warning: Bison executable not found in PATH

    解决办法

    yum -y install bison

    2.make报错现象

    ake Error at /usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:17 (get_filename_component):
    get_filename_component called with incorrect number of arguments
    Call Stack (most recent call first):
      CMakeLists.txt:3 (PROJECT)

    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    CMake Error: Internal CMake error, TryCompile configure of cmake failed

    原因:gcc-c++没有安装

    yum -y install gcc-c++

    3.启动报错

    /etc/init.d/mysqld:line 260:my_print_defaults:command not found


    mysql manager or server PID file could not be found!

    解决办法:

    解决办法:
         # vi /etc/my.cnf    (指明basedir和datadir路径即可)
         basedir=/usr/local/mysql    安装路径 就是--prefix的路径

           datadir=/usr/local/mysql/data
     
    4.初始化报错
    /etc/init.d/mysqld restart
    MySQL manager or server PID file could not be found!       [FAILED]
    Starting MySQL.Manager of pid-file quit without updating fi[FAILED]


    解决办法:
    先把初始化数据的指定目录--datadir=date目录下的所有文件全部删除掉 在从新初始化。
    在初始化一次数据库就好了

    /usr/local/mysql/bin/mysql_install_db --user=mysql  
     
    5.报错现象
    Starting MySQL...The server quit without updating PID         file[FAILED]cal/mysql/data/Centos1.pid).
    安装5.6的时候启动报错
     
    解决办法:killall mysqld 说明有进程存在,我们没有关闭mysql就直接初始化数据库了。
         killall mysql不能解决。必须killall mysqld
     
  • 相关阅读:
    改变Chrome浏览器主程序_缓存_个人信息路径
    谷歌 不支持 activeX插件
    计算机基础,Python基础--变量以及简单的循环
    Python之格式化输出,初始编码以及运算符
    Python基础数据类型之列表和元组
    Python基础数据类型之int、bool、str
    Python基础数据类型之字典
    Python基础数据类型之集合以及其他和深浅copy
    Python之编码
    Python之函数基础
  • 原文地址:https://www.cnblogs.com/pangbing/p/6556512.html
Copyright © 2011-2022 走看看