ERROR 1290 (HY000) at line 143815: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143816: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143819: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143821: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143822: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143902: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143921: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143923: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 143924: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 144048: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 144052: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 144054: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 144055: The MySQL server is running with the --super-read-only option so it cannot execute this statement mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1290 (HY000) at line 2: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 3: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 4: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 5: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 6: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 7: The MySQL server is running with the --super-read-only option so it cannot execute this statement ERROR 1290 (HY000) at line 9: The MySQL server is running with the --super-read-only option so it cannot execute this statement docker部署的 难道不能使用my.cnf挂载么,还是说我的my.cnf配置有问题,我是先通过docker-compose部署初始化,成功部署集群 version: '3' services: dcmp-greatsql-mgr1: image: greatsql/greatsql:8.0.32-26 container_name: dcmp-greatsql-mgr1 hostname: dcmp-greatsql-mgr1 restart: always environment: - MYSQL_ROOT_PASSWORD=xxxxxxx - MYSQL_IBP=1G - MYSQL_MGR_NAME=361aa3e7-5619-11ef-9988-02420a000022 - MYSQL_MGR_LOCAL=${ip1}:33061 - MYSQL_MGR_SEEDS=${ip1}:33061,${ip2}:33061,${ip3}:33061 - MYSQL_INIT_MGR=1 - MYSQL_MGR_START_AS_PRIMARY=1 - MYSQL_MGR_ARBITRATOR=0 - MYSQL_MGR_USER=lichen - MYSQL_MGR_USER_PWD="lichen@123" volumes: - ./mysql/data:/data - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime network_mode: host 然后再docker cp 拿出来的3个对应的my.cnf,后续在挂载进去,就报最上面的错误 接着还有一个问题,就是docker-compose初始化这个mgr集群非常的方便,比mysql那种手动操作要方便很多,这个很值得称赞,但是他需要设定第一台服务器为主,如果主的服务器蹦了,从服务器变成了主,但是第一台重新启动之后主服务器就不会再加入集群了,我想如果能重新加入集群,是个从也好,保证mgr集群的一主两从的情况,这个有什么办法,或者手动怎么操作,我发现docker-compose初始化以后,手动加入集群都非常的困难,只能删掉从集群,删掉数据再重新加入同步才行 |
lce
2024-10-14 11:34:46
| ||
yejr
2024-10-14 14:52:02
| ||
yejr
2024-10-14 15:04:01
| ||
lce
2024-10-14 17:33:36
| ||
yejr
2024-10-14 20:46:25
| ||
合作电话:010-64087828
社区邮箱:greatsql@greatdb.com