linux下mysql5安装日志

来源:互联网 发布:宁向东 知乎 编辑:程序博客网 时间:2024/05/18 01:11

1. 执行 cd /usr/down
去到mysql源码所在目录.
2. 执行 groupadd mysql
3. 执行 useradd -g mysql mysql
4. 执行 tar -zxvf mysql-5.0.37.tar.gz
5. 执行 cd mysql-5.0.37
6. 执行 ./configure --prefix=/server/mysql
7. 执行 make
8. 执行 make install
9. 执行 /server/mysql/bin/mysql_install_db --user=mysql
10. 执行 cp support-files/my-medium.cnf /etc/my.cnf
11. 执行 cp support-files/mysql.server /etc/rc.d/init.d/mysqld
12. 执行 chmod 700 /etc/rc.d/init.d/mysqld
13. 执行 chkconfig --add mysqld
14. 执行 cd /server/mysql        /////进入mysql安装目录.
并执行 chown -R root .          ///注意:不要漏了后面的 "."
15. 执行 chown -R mysql var
16. 执行 chgrp -R mysql .                      ////不要漏掉"."
17. 执行 /server/mysql/bin/mysqld_safe --user=mysql &        ////启动mysql
18. 在出现 mysqld ended 的时候.点击回车.回到命令行
19. 执行 bin/mysql -u root -p          ////楼主大概是在这部之后才出的问题吧^_^
20.系统会提示输入密码.由于我们安装时没有设置密码.所以默认密码为空.直接点击回车进入
如果一切OK,亲切的欢迎界面就出来了

 

 

checking for termcap functions library... configure: error: No curses/termcap library found

 

安装:ncurses-devel.***.rpm 包解决


或者去下载一个ncurses-5.6.tar.gz,


wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz

tar zxvf ncurses-5.6.tar.gzcd ncurses-5.6

./configure –prefix=/usr –with-shared –without-debug

make

make install clean

然后再重新编译Mysql进行安装。

 

 



原创粉丝点击