以二进制程序包形式安装mysql

上一篇 / 下一篇  2013-02-26 17:52:03 / 个人分类:Mysql


1.下载mysql二级制程序包
2.通过md5和pgp校验
3.安装部署
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql --datadir=/mysql/data
shell> chown -R root .
shell> chown -R mysql data
shell> cp support-files/my-default.cnf /etc/my.cnf
shell> cp support-files/mysql.server /etc/init.d/mysqld
shell> chkconfig --add mysqld
4.执行测试脚本
/usr/local/mysql/mysql-test/mysql-test-run.pl


TAG:

 

评分:0

我来说两句

Open Toolbar