-
Notifications
You must be signed in to change notification settings - Fork 443
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
How to login to MariaDB Docker Container via PhpMyAdmin? #365
Comments
The access denied error is a good indicate that at least your network connection is correct. The Where the same MYSQL_USER,PASSWORD in this compose file when the To resolve:
See if Look at Use Use SET PASSWORD to set a password for an existing user. Use CREATE USER to make a new user if it doesn't exist, then GRANT |
Nope. I got this:
So I couldn't access this. |
Option from #362 (comment) (and use this for instigation). An initfile.sql that contains (to cover all bases):
|
I had this problem too. I don't know where the mistake is. My solution: I have not entered any user names or passwords in the "docker-compose.yml". Only after installing the container did I assign the password for "root".
After that the access via "PhpMyAdmin" worked. |
Same exact issue here. Any solutions? |
Exactly the same solution. If you didn't create the users/passwords when the database was initialized, create them manually. If you don't have any user to create new users/passwords, use the |
* mariadb: using --port As mentioned in #2708 docs documenting how to change the port, particular for host networking was requested. The example in "configuration without a cnf file section" was already the default anyway (utf8), so this was just replaced. Using MARIADB_ROOT_PASSWORD in the example to move away from MySQL naming (still supported however). Closes: #2078 * mariadb: added support for .sql.zst in /docker-entrypoint-initdb.d This was added a while ago in MariaDB/mariadb-docker#376 * mariadb: add Mariabackup (and restore) mechanism gosu mysql -> --user mysql suggestion thanks @yosifkit Closes: #MariaDB/mariadb-docker/issues/390 * mariadb: add password reset documentation Closes: #MariaDB/mariadb-docker/issues/365 * mariadb: installing plugins * Update mariadb/content.md Co-authored-by: yosifkit <[email protected]> * Update mariadb/content.md Formatting on INSTALL SONAME Co-authored-by: Tianon Gravi <[email protected]> * Update mariadb/content.md Compressed backup simplier Co-authored-by: Tianon Gravi <[email protected]> * Update mariadb/content.md better use of apt-get arguments Co-authored-by: Tianon Gravi <[email protected]> Co-authored-by: yosifkit <[email protected]> Co-authored-by: Tianon Gravi <[email protected]>
I am trying to deploy PHPMyAdmin and mariadb via docker-compose, but I ran into a docker problem.
Here is my docker-compose file:
On PhpMyAdmin, when I tried to login, I got the message:
mysqli::real_connect(): (HY000/1045): Access denied for user 'myuser'@'172.25.0.4' (using password: YES)
172.25.0.4 is IP of the docker container. So I couldn't login with this. Both root and myuser have @'172.25.0.4' so this makes me unable to login. What must be done in this case if I am to login?
The text was updated successfully, but these errors were encountered: