Merci pour la réponse rapide,
J'ai bien ses lignes la de présente
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| docker exec -it pedantic_dirac cat /etc/my.cnf.d/community-mysql-server.cnf
#
# This group are read by MySQL server.
# Use it for options that only the server (but not clients) should see
#
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/en/s...-defaults.html
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysql/mysqld.log
pid-file=/run/mysqld/mysqld.pid |
J'ai un petit peu avancé
depuis la machine hote qui heberge le docker, j'arrive presque à joindre mysql dans le docker
docker run -e MYSQL_ROOT_PASSWORD=root -di -p 3306:3306 mysql-custom
1 2 3
| docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d61b2a909b77 mysql-custom "/bin/bash" 5 minutes ago Up 5 minutes 0.0.0.0:3306->3306/tcp pedantic_dirac |
1 2 3
| mysql -h 127.0.0.1 -u root -p
Enter password:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 |
Partager