随笔分类 -  mysql-troubleshooting

摘要:背景: 导出数据库test库的test表数据出现报错信息:mysqldump: [ERROR] unknown variable 'database=test'. 原来是my.cnf参数文件配置了以下内容: [client] user=test port=3306 database=test 将da 阅读全文
posted @ 2020-12-08 17:47 orcl 阅读(1644) 评论(0) 推荐(0) 编辑
摘要:1、修改参数文件添加以下内容 skip-grant-tables 2、关闭数据库 [root@node01 ~]# /etc/init.d/mysqld8 stop Shutting down MySQL. SUCCESS! 3、重启数据库 [root@node01 ~]# /etc/init.d/ 阅读全文
posted @ 2020-11-12 10:10 orcl 阅读(80) 评论(0) 推荐(0) 编辑
摘要:一、主从同步报错 mysql> show slave status\G; *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event M 阅读全文
posted @ 2020-11-04 14:58 orcl 阅读(1317) 评论(0) 推荐(0) 编辑
摘要:[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 阅读全文
posted @ 2020-07-07 22:49 orcl 阅读(737) 评论(0) 推荐(0) 编辑
摘要:1.问题 使用mycat配置主从读写分离,启动mycat报错信息如下: STATUS | wrapper | 2020/06/17 17:00:11 | --> Wrapper Started as Daemon STATUS | wrapper | 2020/06/17 17:00:11 | La 阅读全文
posted @ 2020-06-17 17:59 orcl 阅读(3476) 评论(0) 推荐(0) 编辑
摘要:启动(指定参数文件): [root@mysql01 ~]# mysqld_safe --defaults-file=/data/3306/my.cnf & [root@mysql01 ~]# mysqld_safe --defaults-file=/data/3307/my.cnf & 关闭(指定s 阅读全文
posted @ 2020-05-06 11:29 orcl 阅读(841) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2020-04-27 23:50 orcl 阅读(286) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示