Comments - Errorcode: 2003: Can't connect to MySQL server on 'localhost:3306' (111 Connection refused)

3 years, 8 months ago Michele Mehlhorn

LÖSUNG

Jetzt erstellen wir eine lokale my.cnf- Datei, die die Einstellungen enthält, mit denen wir die Konfiguration im MySQL-Container während der Docker-Laufzeit ändern möchten.

$ nano /Users/[your_username‹/Develop/docker_configs/mysql/my.cnf 

Fügen Sie Ihrer neuen Konfigurationsdatei die folgenden zwei Zeilen hinzu:

[mysqld] 
default-authentication-plugin = mysql_native_password 
 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.