在同一台机运行多个Mysql服务
2007-05-09 10:57:34 来源:WEB开发网max_connections=300
log-bin
log-bin=/usr/local/mysql/data2/app-net1_2-bin
server-id = 1
[mysqld3]
port = 3308
socket = /tmp/mysql.sock3
skip-locking
pid-file = /usr/local/mysql/data3/net-app1c.pid
datadir = /usr/local/mysql/data3
log=/usr/local/mysql/data3/net-app1.log
user = mysql
log-bin
log-bin=/usr/local/mysql/data3/app-net1_3-bin
server-id = 1
[mysqld4]
port = 3309
socket = /tmp/mysql.sock4
skip-locking
pid-file = /usr/local/mysql/data1/app-net1d.pid
datadir = /usr/local/mysql/data1
log=/usr/local/mysql/data1/net-app1.log
user = mysql
log-bin
log-bin=/usr/local/mysql/data1/app-net1_4-bin
server-id = 1
[mysqldump]
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服务都是相同的,
db-app:/ # /usr/local/mysq/bin/mysqld_multi --config-file=/etc/my.cnf start 1-4
- ››多个Android 2.2编译ROM发布 国内市场同步本地化
- ››运行于以太网的基础协议
- ››运行 Android 的魅族 M9 参数细节出炉
- ››运行 Android Emulator 的方法
- ››运行Word总默认打开上次文档怎么办?
- ››运行于 Nexus One 的完整版 Firefox 截图曝光
- ››运行于 Nexus One 的 Opera Mobile for Android 演...
- ››运行 ASP.NET 的进程帐户必须具有IIS 元数据库权限...
- ››多个定时器的使用
- ››运行两个配置完全不同的Firefox
- ››同一邮箱可以注册多个帐号修改方法_for 7.X
- ››多个Excel表中的数据合并计算方法
更多精彩
赞助商链接