Created
March 25, 2021 21:55
-
-
Save davidlzs/38bafac0beb700641a2a9fb896e0c19d to your computer and use it in GitHub Desktop.
Create mysql test schema for ProxySQL test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # open a bash to our test conainer | |
| docker exec -it db_backend_switch_nose_1 bash | |
| # in the bash shell connect to db1 directly | |
| mysql -usbtest1 -ppassword -hdb1 | |
| # run the following sql to create our test table in db1 | |
| create table test(id int primary key); | |
| # in the bash shell connect to db2 directly | |
| mysql -usbtest1 -ppassword -hdb2 | |
| # run the following sql to create our test table in db2 | |
| create table test(id int primary key); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment