官方文档地址: https://proxysql.com/blog/proxysql-http-server-initial-release
SET admin-web_enabled='true';
LOAD ADMIN VARIABLES TO RUNTIME;
SAVE ADMIN VARIABLES TO DISK ;
> select * from global_variables where Variable_name like '%stats%';
+-----------------------------------+----------------+
| variable_name | variable_value |
+-----------------------------------+----------------+
| admin-stats_credentials | stats:stats |
| admin-stats_mysql_connections | 60 |
| admin-stats_mysql_connection_pool | 60 |
| admin-stats_mysql_query_cache | 60 |
| admin-stats_system_cpu | 60 |
| admin-stats_system_memory | 60 |
| admin-telnet_stats_ifaces | (null) |
| mysql-servers_stats | true |
| mysql-stats_time_backend_query | false |
| mysql-stats_time_query_processor | false |
| mysql-commands_stats | true |
+-----------------------------------+----------------+
11 rows in set (0.00 sec)
账号 密码都是 stats
这个页面只能供查看,不能修改proxysql的运行配置。