MYSQL的简明安装方法

发表于:2007-07-02来源:作者:点击数: 标签:


1. 先下载mysql -XXX.tar.gz
2. 解压: tar zxvf mysql-3.22.32.tar.gz
3. cd mysql -3.22.32
4. 没定安装目录:./configure --prefix=/你的路径/mysql
5. make
6. make install
7. cd scripts
8. ./mysql_install_db
9. cd /usr/local/mysql/share/mysql/
10. chmod 611 mysql.server
11. cp /usr/local/mysql/scripts/mysql.server /usr/local/mysql/bin
12 ./mysql.server start
13. 用Kwrite打开 /etc/rc.d/rc.local 这个文件,加入下面這行以便开机的时候自动执行mysql
/usr/local/mysql/share/mysql/mysql.server start

原文转自:http://www.ltesting.net