1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
./mysql-router-8.0.30/bin/mysqlrouter --bootstrap mgr-user@172.16.2.181:3306 --user=mysqlrouter --name=mysql-route01 --directory=/data/mysql-router/data
## 输入密码
Please enter MySQL password for mgr-user:
# Bootstrapping MySQL Router instance at '/data/mysql-router/data'...
- Creating account(s) (only those that are needed, if any)
- Verifying account (using it to run SQL queries that would be run by Router)
- Storing account in keyring
- Adjusting permissions of generated files
- Creating configuration /data/mysql-router/data/mysqlrouter.conf
# MySQL Router 'mysql-route01' configured for the InnoDB Cluster 'TEST-MGR'
After this MySQL Router has been started with the generated configuration
$ ./mysql-router-8.0.30/bin/mysqlrouter -c /data/mysql-router/data/mysqlrouter.conf
InnoDB Cluster 'TEST-MGR' can be reached by connecting to:
## MySQL Classic protocol
- Read/Write Connections: localhost:6446
- Read/Only Connections: localhost:6447
## MySQL X protocol
- Read/Write Connections: localhost:6448
- Read/Only Connections: localhost:6449
|