tar -zxvf mysql-5.0.22.tar.gz
cd mysql-5.0.22
./confiure --prefix=/usr/local/mysql
....
checking for termcap functions library... configure: error: No curses/termcap library found
看来少了ncurses,虽然是老问题,也常碰到的,
tar -zxvf ncurses-5.2.tar.gz
cd ncurses-5.2
./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5
再编译就OK了,现在安装mysql
cp /usr/local/mysql/share/mylsq/my-small.cnf /etc/my.cnf
/usr/local/mysql/bin/mysql_install_db --user=mysql
mkdir data
chown -R mysql data
chgrp -R mysql .
/usr/local/mysql/bin/mysqld_safe
Starting mysqld daemon with databases from /usr/local/mysql/var 没有出现end字样,就表明成功了
阅读(917) | 评论(0) | 转发(0) |