-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting to MySQL remotely #63
Comments
I also encountered the same issue and found a temporary solution. This is the content at the end of
$ grep -rwn /etc/ -e 'bind-address'
/etc/mysql/mysql.conf.d/mysqld.cnf:43:bind-address = 127.0.0.1
/etc/mysql/conf.d/mysqld_innodb.cnf:6:bind-address=0.0.0.0 In Then, restart mysql by
It works. Ref: linux - How to bind MySQL server to more than one IP address? - Server Fault The file |
It's worth noting that if I execute this command, the process of stopping mysql service always return $ /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [fail]
* Starting MySQL database server mysqld [ OK ]
$ /etc/init.d/mysql status
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
* To fix it, I searched the Internet and got a solution. Find out the password of GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '*the password I found*'; Go back to shell, and try restarting MySQL. /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld No directory, logging in with HOME=/ [ OK ] Issue solved, almost. You can follow links below to learn more. Ref 1: Why can’t I stop the MySQL service on Debian? - Super User Ref 2: linux - What is the debian-sys-maint MySQL user (and more)? - Server Fault |
thanx! |
I'm going to take a look at this over the next few days and see if I can fix it in the image |
This should now be fixed in the latest release Thanks for all your patience, if you can confirm and post back that would be amazing! |
I am struggling to enable remote connection to the mysql server.
I created the docker container with a port mapping "xxxx:3306" - so I am using the external port in my connection setup.
Do I need to do anything else to allow external connection?
The text was updated successfully, but these errors were encountered: