新闻资讯

掌握最新资讯,了解关于我们的最新动态!
您当前位置首页 > 新闻资讯 > IDC圈

改完配置后重启master

更新时间:2025-03-31 05:49

修改完配置后重启master

docker restart mysql-master

运行结果

[root@localhost conf]# docker restart mysql-master
mysql-master

进入mysql-master容器

docker exec -it mysql-master /bin/bash
mysql -uroot -proot

运行结果

[root@localhost conf]# docker exec -it mysql-master /bin/bash
root@8b5bc09ae8eb:/# mysql -uroot -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.36-log MySQL Community Server (GPL)

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>


成为冠星云会员,享受出众的上云实践机会和周到的尊贵服务!

立即注册