随笔分类 - 数据库
摘要:/usr/bin/mysqlbinlog --base64-output=DECODE-ROWS -v /webdata/mysql-bin.000051 >/webdata/mysql-log1.txt
阅读全文
摘要:原文http://blog.itpub.net/30127122/viewspace-2140277/ 系统的值是正确的。然后修改/etc/my.cnf配置文件,添加 open_files_limit=65535 重启服务 之后 查看 show variables like '%open%'; 发现
阅读全文
摘要:一、卸载旧版本 二、安装MySQL 三、配置MySQL Add 2017-03-13 关于环境变量第一次使用的是临时的 它只对当前的shell有效,因此刚配置时可以使用mysql,退出登录就不能使用。后来将export写入到文件/etc/profile,就可以永久有效,当然也不需要软链接啦
阅读全文
摘要:1.查看是否开启了慢查询日志 2.查看log_queries_not_using_indexes是否开启 如果没有开启,开启 set global log_queries_not_using_indexes=on; 3.把超过多长时间的查询记录到慢查询日志中 set global long_quer
阅读全文
摘要:配置MySQL主从复制,遇到报错 Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for rep
阅读全文
摘要:本文绝大部分内容都是转自别人的 转自:http://blog.51cto.com/jiangjianlong/1981994 一、测试环境 操作系统版本:Red Hat Enterprise Linux Server release 6.5 (Santiago)(我的系统是centos7) Mysq
阅读全文
摘要:记录下在CentOS 6.9环境安装MySQL 5.6.37的过程,供大家参考。 1、准备数据存放的文件系统新建一个逻辑卷,并将其挂载至特定目录即可。这里不再给出过程。这里假设其逻辑卷的挂载目录为/data,而后需要创建/data/mysqldata目录做为mysql数据的存放目录。[root@00
阅读全文
摘要:方法1: 用SET PASSWORD命令 首先登录MySQL。 格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:mysql> set password for root@localhost = password('123'
阅读全文
摘要:是编码的问题, 选择图中的编码即可。
阅读全文
摘要:运行如下命令: /usr/bin/mysqladmin -u root password 'new-password'/usr/bin/mysqladmin -u root -h iZm5e0rtmlr71jtv6bjo03Z password 'new-password'
阅读全文
摘要:设置mysql允许外部IP连接的解决方法 mysql默认情况下,只允许localhost连接,如果需要外部IP连接到mysql,需要向mysql数据库里的“user”表里添加相关授权。 例如:让newuser用户使用newpwd密码从IP:192.168.1.3主机链接到mysql服务器 具体步骤:
阅读全文