摘要: 1. pt工具安装 [root@master1 ~]# yum install -y percona-toolkit-3.1.0-2.el7.x86_64.rpm 2. 常用工具使用介绍 [root@master1 ~]# pt pt-align pt-fk-error-logger pt-pg-s 阅读全文
posted @ 2020-07-30 22:52 丁海龙 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 方式源码安装 > 编译过程中设置初始化参数配置文件 > 数据库启动之前,设定配置文件参数 /etc/my.cnf启动脚本命令行 > mysqld_safe --skip-grant-tables --skip-networking & 说明: my.cnf > port=3306 mysqld_ 阅读全文
posted @ 2020-07-30 17:26 丁海龙 阅读(836) 评论(0) 推荐(0) 编辑
摘要: --skip-grant-tables :跳过授权表 --skip-networking :跳过TCP/IP连接 [root@master1 ~]# pkill mysqld [root@master1 ~]# /etc/init.d/mysqld start Starting MySQL. SUC 阅读全文
posted @ 2020-07-30 16:58 丁海龙 阅读(489) 评论(0) 推荐(0) 编辑
摘要: [root@db01 ~]$ mysqld & [root@db01 ~]$ mysql -u root -p mysql> shutdown; [root@db01 ~]$ mysqld_safe & [root@db01 ~]$ mysql -u root -p mysql> shutdown; 阅读全文
posted @ 2020-07-30 16:12 丁海龙 阅读(269) 评论(0) 推荐(0) 编辑
摘要: ERROR 2003 (HY000): Can't connect to MySQL server问题 解决办法总结: 1、确定远程机器的防火墙关闭,或在防火墙允许3306端口号 2、确定数据库允许远程访问,通过语句 grant all privileges on *.* to olding@'10 阅读全文
posted @ 2020-07-30 13:52 丁海龙 阅读(1685) 评论(0) 推荐(0) 编辑
摘要: 问题: [root@master2 ~]# mysql -uolding -pmysql -h 10.0.0.51 -P 3306 mysql: [Warning] Using a password on the command line interface can be insecure. ERR 阅读全文
posted @ 2020-07-30 13:07 丁海龙 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 2.4.1 MySQL自带客户端(1)mysql 参数列表: -u 用户名 -p 密码 -S 本地socket文件位置 -h 数据库IP地址 -P 数据库端口号 -e 免交互执行数据库命名 < 导入sql脚本 socket : 前提:数据库中必须实现授权olding@localhost用户 mysq 阅读全文
posted @ 2020-07-30 01:10 丁海龙 阅读(259) 评论(0) 推荐(0) 编辑