Mysql installation, mysql

Source: Internet
Author: User

Mysql installation, mysql

Install mysql source code
Http://www.cnblogs.com/fly1988happy/archive/2011/11/21/2257682.html
Http://www.cnblogs.com/wuhou/archive/2008/09/28/1301071.html

Problems During mysql Installation

  • You must install the ncurse package. You cannot install ncurses-devel or apt-get install ncurses through apt-get install.

    • Solution: sudo apt-get install libncurses5-dev
    • Search: http://packages.ubuntu.com/
  • Ncurses cannot be found after installation

# Find/-name * curses */usr/include/curses. h/usr/include/cursesapp. h/usr/include/ncurses... omitted... /usr/lib64/libcursesw. so/usr/lib64/libncursesw. so/usr/lib64/libncurses. so/usr/lib64/libcurses. so, find the ncurses library directory and use the-D parameter to define the macro to specify the directory where the header file and library are located # cmake. -DCURSES_LIBRARY =/usr/lib64/-DCURSES_INCLUDE_PATH =/usr/include/execute the following command: 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
  • Logon segment error Solution
    Http://blog.sina.com.cn/s/blog_697b96890101jj8f.html

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

1. in the MySQL 5.6.16 source code package, edit the cmd-line-utils/libedit/terminal file. c2. find the code segment similar to char buf [TC_BUFSIZE];, comment it out, and find the following Variable area = buf;, change it to area = NULL; the corrected code is similar: 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 values, cols; 874 875 (void) sigemptyset (& nset); 876 (voi D) sigaddset (& nset, SIGWINCH); 877 (void) sigprocmask (SIG_BLOCK, & nset, & oset); 878 879 area = NULL; Save and recompile MySQL, you can log on to the CLI normally.

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.