Home > Database > Mysql Tutorial > MYSQL多实例配置、使用

MYSQL多实例配置、使用

WBOY
Release: 2016-06-07 16:39:46
Original
1135 people have browsed it

在实际的开发过程中,可能会需要在一台服务器上部署多个MYSQL实例,那建议使用MYSQL官方的解决方案 mysqld_multi 1.修改my.cnf ?? 如一个定义两个实例的参考配置: [mysqld_multi] mysqld = /usr/local/mysql/bin/mysqld_safe mysqladmin = /usr/local/mysql

在实际的开发过程中,可能会需要在一台服务器上部署多个MYSQL实例,那建议使用MYSQL官方的解决方案 mysqld_multi   1.修改my.cnf ?? 如一个定义两个实例的参考配置: [mysqld_multi] mysqld = /usr/local/mysql/bin/mysqld_safe mysqladmin = /usr/local/mysql/bin/mysqladmin user = your_user password = your_password [mysqld1] datadir = /data/db/my1 #连接 port = 3306 socket = /tmp/mysql3306.sock #binlog log-bin=/data/db/mylog1/mysql-bin binlog_format=mixed binlog_cache_size = 32M expire_logs_days = 30 [mysqld2] datadir = /data/db/my2 #连接 port = 3307 socket = /tmp/mysql3307.sock #binlog log-bin=/data/db/mylog2/mysql-bin binlog_format=mixed binlog_cache_size = [...]
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template