摘要:1、确定目标数据库,准备一个具有权限mysql账号(主机) 为了简单我使用的是root账号,你也可以根据自己的需要创建新的账号 使用 show MASTER STATUS; 命令查看相应账号的记录文件 这是相应账号的bin_log文件,需要使用的是File和Position字段的值 如果你新建账号进
阅读全文
随笔分类 - mysql
摘要:Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or
阅读全文
摘要:CREATE USER '用户名'@'可连接ip,%表示任意ip' IDENTIFIED BY '密码'; DROP USER [IF EXISTS]存在才删除 user [, user] ...用户列表 DROP USER IF EXISTS 用户名 GRANT All ON *.* TO '用户
阅读全文
摘要:To search for column values that are NULL, you cannot use an expr = NULL test. The following statement returns no rows, because expr = NULL is never t
阅读全文