Created
March 25, 2021 22:21
-
-
Save davidlzs/8627ff849eab59eb097e46787699e2f1 to your computer and use it in GitHub Desktop.
Open a bash shell to test container to simulate application connection to mysql via ProxySQL
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 mysql db via proxysql | |
| mysql -usbtest1 -ppassword -hproxysql -P6033 | |
| # turn off autocommit | |
| set autocommit=0; | |
| # start long running transaction | |
| begin; | |
| insert into test values (11); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment