Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay-johnson/55f2a1b5de0b268ff67d2a4f876b7d14 to your computer and use it in GitHub Desktop.
Save jay-johnson/55f2a1b5de0b268ff67d2a4f876b7d14 to your computer and use it in GitHub Desktop.
Verify MySQL Connectivity from inside the Container
$ ./ssh.sh
SSH-ing into Docker image(schemaprototyping)
[root@mysql1 db-loaders]# /opt/db-loaders/bin/verify_mysql_user.sh
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 25
Server version: 5.6.29 MySQL Community Server (GPL)

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> quit
Bye
[root@mysql1 db-loaders]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment