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
# 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.