通过管理接口配置ProxySQL

可以使用mysql客户端来连接管理接口,以下是使用admin凭据连接到本地6032端口的管理接口:

$ mysql -u admin -padmin -h 127.0.0.1 -P6032 --prompt='Admin> '
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 4
Server version: 5.5.30 (ProxySQL Admin Module)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

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.

Admin>

注意:如果你的MySQL客户端版本为8.04或更高版本,需要在上面连接到管理接口的命令行上加上--default-auth=mysql_native_password

posted @ 2022-06-21 14:50  哈喽哈喽111111  阅读(58)  评论(0编辑  收藏  举报