![](https://img-blog.csdnimg.cn/494cb28a324e43a984d06355a98b9f3e.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
MySQL
MySQL
Richie-Hao
经历的所有,成为现在的我
展开
-
修改MariaDB_root密码
在mariadb的配置文件中加入下列一行vim /etc/my.conf.d/server.cnf[mysqld]skip-grant-tables # 加入此行重启mariadb服务systemctl start mariadb.service登录mysql[root@vps]# mysqlWelcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 8Server原创 2020-04-05 11:28:22 · 1052 阅读 · 0 评论 -
MySQL binlog日志清理 保存时效
日志清理方法一:永久策略,自动清理修改my.cnf配置文件,设置清理策略,binlog日志大小# 编辑my.cnf配置,加入下面的内容max_binlog_size = 277M # 设置binlog日志的大小为500Mexpire_logs_days = 30 # 设置日期的过期时间,大于30天的日志自动清理重启mysql服务二:临时策略,手动清理进入mysql进行清理mysql -u root -p-- mysql8.0 以原创 2022-02-15 11:54:35 · 1111 阅读 · 0 评论 -
MySQL 8.0.23 版本无法使用sqlyog登录解决
使用下面的语句创建用户和密码create user 'username'@'%' identified by '123456';grant all on *.* to 'username'@'%' with grant option;验证通过此语法创建的用户,通过sqlyog客户端无法正常连接无法连接是因为:密码加密方式与sqlyog不对应通过下面的语句修改用户的密码方式和重置密码alter user 'username'@'%' identified with mysql_native_原创 2021-03-01 15:13:07 · 795 阅读 · 0 评论