mysql安裝,mysql

來源:互聯網
上載者:User

mysql安裝,mysql

mysql源碼安裝
http://www.cnblogs.com/fly1988happy/archive/2011/11/21/2257682.html
http://www.cnblogs.com/wuhou/archive/2008/09/28/1301071.html

mysql安裝過程中問題

  • 需要安裝ncurse包,無法通過apt-get install ncurses-devel及apt-get install ncurses進行安裝

    • 解決方案:sudo apt-get install libncurses5-dev
    • 包搜尋:http://packages.ubuntu.com/
  • 安裝ncurses後任然無法找到

    # find / -name *curses*        /usr/include/curses.h        /usr/include/cursesapp.h        /usr/include/ncurses        ...省略...        /usr/lib64/libcursesw.so        /usr/lib64/libncursesw.so        /usr/lib64/libncurses.so        /usr/lib64/libcurses.so    尋找到ncurses庫目錄,然後用-D參數定義宏,指定標頭檔和庫的所在目錄    # cmake . -DCURSES_LIBRARY=/usr/lib64/ -DCURSES_INCLUDE_PATH=/usr/include/    執行如下命令:    cmake . \    -DCURSES_LIBRARY=/usr/lib/x86_64-linux-gnu/ \    -DCURSES_INCLUDE_PATH=/usr/include/ \    -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \    -DMYSQL_DATADIR=/usr/local/mysql/data \    -DDEFAULT_CHARSET=utf8 \    -DDEFAULT_COLLATION=utf8_general_ci \    -DEXTRA_CHARSETS=all \    -DENABLED_LOCAL_INFILE=1
  • 登陸段錯誤解決方案
    http://blog.sina.com.cn/s/blog_697b96890101jj8f.html

http://space.wudiweb.com/phychion/blog/111

1. 在MySQL 5.6.16 源碼包裡,編輯檔案 cmd-line-utils/libedit/terminal.c2. 找到程式碼片段類似 char buf[TC_BUFSIZE]; 的,將其注釋,並找到下面的變數 area = buf; ,將其更改為 area = NULL; 更正後的代碼類似:    865 protected int    866 terminal_set(EditLine *el, const char *term)    867 {    868 int i;    869 /*char buf[TC_BUFSIZE];*/    870 char *area;    871 const struct termcapstr *t;    872 sigset_t oset, nset;    873 int lins, cols;    874    875 (void) sigemptyset(&nset);    876 (void) sigaddset(&nset, SIGWINCH);    877 (void) sigprocmask(SIG_BLOCK, &nset, &oset);    878    879 area = NULL;儲存後,重新編譯MySQL,就可以在命令列中正常登入了。

相關文章

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.