随笔分类 - mysql-troubleshooting
摘要:背景: 导出数据库test库的test表数据出现报错信息:mysqldump: [ERROR] unknown variable 'database=test'. 原来是my.cnf参数文件配置了以下内容: [client] user=test port=3306 database=test 将da
阅读全文
摘要:1、修改参数文件添加以下内容 skip-grant-tables 2、关闭数据库 [root@node01 ~]# /etc/init.d/mysqld8 stop Shutting down MySQL. SUCCESS! 3、重启数据库 [root@node01 ~]# /etc/init.d/
阅读全文
摘要:一、主从同步报错 mysql> show slave status\G; *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event M
阅读全文
摘要:[mysql@node3 ~]$ masterha_check_repl --conf=/etc/mha/app1.cnf Tue Jul 7 22:43:26 2020 - [warning] Global configuration file /etc/masterha_default.cnf
阅读全文
摘要:1.问题 使用mycat配置主从读写分离,启动mycat报错信息如下: STATUS | wrapper | 2020/06/17 17:00:11 | --> Wrapper Started as Daemon STATUS | wrapper | 2020/06/17 17:00:11 | La
阅读全文
摘要:启动(指定参数文件): [root@mysql01 ~]# mysqld_safe --defaults-file=/data/3306/my.cnf & [root@mysql01 ~]# mysqld_safe --defaults-file=/data/3307/my.cnf & 关闭(指定s
阅读全文
摘要:1、关闭mysql [root@mysql ~]# /etc/init.d/mysqld stopShutting down MySQL.. SUCCESS! 2、修改参数文件/etc/my.cnf [root@mysql ~]# cat /etc/my.cnf[mysqld]user=mysqlb
阅读全文