docker conectar a mysql de otro contenedor

Solutions on MaxInterview for docker conectar a mysql de otro contenedor by the best coders in the world

showing results for - "docker conectar a mysql de otro contenedor"
Benjamín
06 Sep 2016
1$ docker exec -it mysql-db mysql -p
2...
3mysql> create database demo;         
4Query OK, 1 row affected (0.32 sec)  
5                                    
6mysql> show databases;               
7+--------------------+               
8| Database           |               
9+--------------------+               
10| demo               |               
11| information_schema |               
12| mysql              |               
13| performance_schema |               
14| sys                |               
15+--------------------+               
165 rows in set (0.00 sec)             
17                                    
18mysql>                          
19