您的位置:首页 > 博客中心 > 数据库 >

Mysql运维简单命令

时间:2022-03-15 21:54

连接Mysql客户端

  • mysql -hxxx.xx.x.x -uxxx -p‘xxxxxx‘ -P xxx -- ip 用户名 密码 端口号

    show slave status\G;

    • 在MYSQL的主从复制中 ,通过命令show master status,可以查看master数据库当前正在使用的二进制日志及当前执行二进制日志位置

本类排行

今日推荐

热门手游