ChinaUnix.net
相关文章推荐:

mysql 主从的优点

同步都没有问题,我重启一下master 发现数据库丢失

by xuxingyu - MySQL - 2009-02-10 17:34:01 阅读(1507) 回复(4)

相关讨论

主服务器,运行如下命令怎么 Binlog_Do_DB 显示为空呢? 我在my.cnf中设置过要同步数据库啊? mysql> SHOW MASTER STATUS; +-------------------+----------+--------------+------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +-------------------+----------+--------------+------------------+ | mysqld-bin.000001 | 98 | | | +--------------...

by thinke365 - MySQL - 2008-12-12 22:24:53 阅读(1819) 回复(5)

作者: jsbxw 出自: http://www.linuxdiyf.com 主从同步的mysql介绍网上很多。也没啥说得。主要记录一下公司的需求。 跨库跨表的同步: replicate-wild-do-table =test%.%(两个%都很重要,我原来只写前面一个,启动mysql的时候会报错,同步以test打头的库名下的所有表) 多库的同步: replicate-do-db = db1 replicate-do-db = src1 上述写法正确。 比较重要的命令。show slave status\G; Relay_Master_Log_File: masterdb-bin.0...

by sdccf - MySQL文档中心 - 2008-04-06 10:45:19 阅读(602) 回复(0)

主从同步的mysql介绍网上很多。也没啥说得。主要记录一下公司的需求。 跨库跨表的同步: replicate-wild-do-table =test%.%(两个%都很重要,我原来只写前面一个,启动mysql的时候会报错,同步以test打头的库名下的所有表) 多库的同步: replicate-do-db = db1 replicate-do-db = src1 上述写法正确。 比较重要的命令。show slave status\G; Relay_Master_Log_File: masterdb-bin.000009 Slave_IO_Running:...

by gaolimin_lose - MySQL文档中心 - 2008-03-06 11:48:35 阅读(500) 回复(0)

最进弄了一个mysql 主从 但是同步老有问题 我想问一下 主从 同步是 时时更新吗 ? 还有 Connect_Retry 是什么意思 mysql文档里的解释我没太看明白 敢请大侠 帮解释一下

by xiaoqi8866 - MySQL - 2007-07-02 10:27:20 阅读(1299) 回复(0)

mysql mysql> SHOW PROCESSLIST\G *************************** 1. row *************************** Id: 1 User: system user Host: db: NULL Command: Connect Time: 1480 State: Connecting to master Info: NULL *************************** 2. row *************************** Id: 2 User: system user Host: db: NULL Command: Connect Time: 1480 State: Has read all ...

by benbenblood - MySQL - 2006-07-28 08:58:43 阅读(878) 回复(1)

mysql安装在/data2/mysql路径下,镜像建立在/data0/mysql-slave ****************************************** 主库配置文件: ****************************************** bash-2.03# cat /data2/mysql/var/master.cnf [mysqld] set-variable = max_connections=500 log-bin #binlog-do-db=test2 server-id=1 datadir = /data2/mysql/var port = 3306 socket = /tm...

by 我为鹤狂 - MySQL文档中心 - 2006-06-20 21:24:30 阅读(716) 回复(0)

show slave status *************************** 1. row *************************** Slave_IO_State: Connecting to master Master_Host: 192.168.0.222 Master_User: test Master_Port: 3306 Connect_Retry: 60 Master_Log_File: Read_Master_Log_Pos: 4 Relay_Log_File: MITHRIL-relay-bin.000004 ...

by zjsyzsj - MySQL - 2009-06-26 11:35:20 阅读(1264) 回复(4)

show slave status *************************** 1. row *************************** Slave_IO_State: Connecting to master Master_Host: 192.168.0.222 Master_User: test Master_Port: 3306 Connect_Retry: 60 Master_Log_File: Read_Master_Log_Pos: 4 Relay_Log_File: MITHRIL-relay-bin.000004 ...

by zjsyzsj - MySQL - 2009-08-04 17:12:07 阅读(869) 回复(3)

配置环境: 主从配置的环境,mysql从服务器的版本不能小于主服务器的版本,最好保持版本一致! 一. mysql主服务器配置 1.建立用户 mysql> GRANT ALL PRIVILEGES ON *.* TO dbadmin@'192.168.1.%' IDENTIFIED BY '123456' WITH GRANT OPTION; mysql> delete from mysql.user where password=""; mysql> flush privileges; 完成后需要在Slave上做连接测试: mysql -h 192.168.1.10 -u dbadmin –p123456 2.编辑配置文件/e...

by zhaohang3031 - MySQL文档中心 - 2009-06-23 04:57:16 阅读(951) 回复(0)

Slave_SQL_Running: No的问题解决 slave stop; set GLOBAL SQL_SLAVE_SKIP_COUNTER=1; slave start; 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/57953/showart_1962563.html

by crastyl - MySQL文档中心 - 2009-06-12 11:11:06 阅读(743) 回复(0)