MYSQL 常用操作指南

  1. 修改密码 

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';

  2. 查看plugin设置

    select host, user, plugin from user;

  3. 刷新缓存

    FLUSH PRIVILEGES;

  4. 重起服务

    systemctl restart mysql.service

  5. 主从语句执行配置

    change master to master_host='192.168.8.20', master_user='slave2', master_password='111111',master_log_file='bin-log.000002', master_log_pos=157;


白俊遥博客
请先登录后发表评论
  • 最新评论
  • 总共0条评论