最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
教你如何在linux下建立mysql镜像数据库
时间:2008-01-24 编辑:简简单单 来源:一聚教程网
MySQL 版本:4.1
环境介绍:主库 192.168.0.205 从库 192.168.0.206
1、主库创建/etc/my.cnf,修改[mysqld]里边的键值增加
server-id=1
log-bin=binlog_name
2、主库增加用户,用于从库读取主库日志。
grant replication slave,reload,super on *.* to
’slave’@’192.168.0.206’ identified by ’123456’
3、从库连接主库进行测试。
/opt/mysql/bin/mysql -u slave -p -h 192.168.0.205
4、停从库,修改从库/etc/my.cnf,增加选项:
-
上一个: 实际应用:MySQL5存储过程编写实践
相关文章
- linux查看MySQL数据库的版本 07-04
- linux下Cacti监控MySQL数据库状态例子 03-23
- 在linux下如何进行mysql命令行 创建数据库 04-17
- linux中MySQL 重新初始化数据库 03-04
- linux中查看mysql数据库版本号的方法 02-22
- Linux shell操作mysql数据库详解 10-12