mysql編譯報錯

來源:互聯網
上載者:User

標籤:etc   編譯   man   bsp   argument   pid   list   could   strong   

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 

 

mysql編譯報錯

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.