在Linux服务器上安装多个Mysql服务
相信很多朋友都碰到过要在一台服务器上安装多个Mysql的情况,比如测试程序的兼容性,比如需要服务器兼容不同的mysql版本等。本文介绍了在Linux下安装多Mysql服务的方法,供大家参考。
1、按照常规安装。
[root@ff_girl mysql5122]# chown -R root .
[root@ff_girl mysql5122]# chown -R mysql data
[root@ff_girl mysql5122]# chgrp -R mysql .
[root@ff_girl mysql5122]# cp support-files/my-small.cnf /etc/my5122.cnf
[root@ff_girl mysql5122]# scripts/mysql_install_db –basedir=/usr/local/mysql5122/ –datadir=/usr/local/mysql5122/data/ –user=mysql
Installing MySQL system tables…
OK
Filling help tables…
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
。。。
首次启动MYSQL 阅读这篇文章的剩余部分 »