Answer the question
In order to leave comments, you need to log in
How to connect to mysql database in docker?
Created a container with a mysql database and decided to use the heidisql GUI for convenience.
Step by step:
1. I create a user with all rights.
CREATE USER 'lost'@'%' IDENTIFIED BY '123';
GRANT ALL PRIVILEGES ON *.* TO 'lost'@'%';
FLUSH PRIVILEGES;
+------------------+-----------+
| user | host |
+------------------+-----------+
| lost | % |
| root | % |
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
+------------------+-----------+
6 rows in set (0.00 sec)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question