设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 手机 数据 公司
当前位置: 首页 > 服务器 > 安全 > 正文

ProxySQL读写分离

发布时间:2020-12-31 01:49 所属栏目:53 来源:网络整理
导读:《ProxySQL读写分离》要点: 本文介绍了ProxySQL读写分离,希望对您有用。如果有疑问,可以联系我们。 [root@localhost bin]# mysql -uadmin -padmin -h127. 0.0 . 1 - P6032mysql: [Warning] Using a password on the command line interface can be insecu

《ProxySQL读写分离》要点:
本文介绍了ProxySQL读写分离,希望对您有用。如果有疑问,可以联系我们。

[root@localhost bin]# mysql -uadmin -padmin -h127.0.0.1 -P6032
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.14 (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.
 
mysql> show databases;
+-----+---------+-------------------------------+
| seq | name | file |
+-----+---------+-------------------------------+
| 0 | main | |
| 2 | disk | /var/lib/proxysql/proxysql.db |
| 3 | stats | |
| 4 | monitor | |
+-----+---------+-------------------------------+
4 rows in set (0.00 sec)
 
mysql> use admin
Database changed
mysql> show tables;
+--------------------------------------+
| tables |
+--------------------------------------+
| global_variables |
| mysql_collations |
| mysql_query_rules |
| mysql_replication_hostgroups |
| mysql_servers |
| mysql_users |
| runtime_global_variables |
| runtime_mysql_query_rules |
| runtime_mysql_replication_hostgroups |
| runtime_mysql_servers |
| runtime_mysql_users |
| runtime_scheduler |
| scheduler |
+--------------------------------------+
13 rows 0.00 sec)

?

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读