在同一台机运行多个Mysql服务(下)
添加时间: 2008-4-23 22:34:42 作者: Oracle指导 阅读次数:17 来源: http://www.d9soft.com
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
****************************************
在功告成,现在分别启动两台主机上的多mysql服务,这样,每个主服务的每个mysql有变化,都会自动复制/更新到从服务器对应的数据库中。
db-app:/ # /usr/local/mysq/bin/mysqld_multi --config-file=/etc/my.cnf start 1-4
db-app1:/ # /usr/local/mysq/bin/mysqld_multi --config-file=/etc/my.cnf start 1-4
五,未来测试,
接下来我想做一个多主一从的Mysql服务器复制解决方案! 那位可以给点意见啊!结构如下.
就是有主服务器Server A , Server B和从服务器 Server C, A 和 B运行着不同的数据库应用, 假设数据库名都不同。Server C(假设这三台PC上都只运行了一个mysql服务),包括了A了B服务器的所有Mysql 用户及相同的访问权限, 并集成在一个Mysql服务中. C通过主/从方式复制A和B的数据库。
就是差不就是把两个主服务器的mysql合并到一个从服务器中.
在同一台机运行多个Mysql服务(下)(3) 第 [1] [2] [3] 下一页
上下文章:
上一篇文章: 在同一台机运行多个Mysql服务(上) 下一篇文章: Oracle进阶LOB字段学习
相关文章:

