zbot11
October 21, 2019, 4:54pm
1
Hi all - I’m setting up my database connection using the cool new docker tools, but I get this error:
Access denied for user ‘db_user’@‘172.19.0.3’ (using password: YES)
Anyone know if this is somehow incorrect login information, or something tlse?
zbot11
October 21, 2019, 5:09pm
2
Update- I can connect to the db from MySQL workbench using the same user and password
George
October 21, 2019, 5:39pm
3
Hi Zach,
Welcome to Wappler and our great community!
How did you setup your docker target? Did you enter special logins for the database part or left the defaults?
zbot11
October 21, 2019, 6:00pm
4
I left defaults at first and then changed these values when I was troubleshooting
zbot11
October 21, 2019, 6:01pm
5
And thanks for the welcome! I’m super excited to get to work.
JonL
October 21, 2019, 6:05pm
6
Did you change the user and password in the database connection server connect action also?
zbot11
October 21, 2019, 6:12pm
7
@JonL I think so. Here’s two screenshots, first from Project Settings > Targets, second from Server Connect > Action Steps > Execute > Database Actions > Database Connection
brad
October 21, 2019, 6:19pm
8
Your usernames are different in your screenshots? Could that be the issue?
George
October 21, 2019, 6:25pm
11
If you have changed the password after you have deployed once that the database is already created with different user.
You will need to shutdown / clear first and the recreate with the deploy icon again
JonL
October 21, 2019, 6:25pm
12
You need to restart your containers.
Edit: When you run docker containers you usually add environment variables. This is all done in the shadow for you by Wappler. Because you changed connection data there is a mismatch between the environment variables and your configuration.
zbot11
October 21, 2019, 6:30pm
13
ah ha! Thanks. I was deploying, but not restarting.
So if I go in to the target settings and update the credentials, is the db recreated with the new credentials, or are the credentials just updated?
JonL
October 21, 2019, 6:31pm
14
Recreated.
Also if you want to save contents don’t forget to do it.
If you have not read Part 1, please go here and read it first.
We have included more Docker power in the latest Wappler update.
Awesome single click Database backup and range of terminals and shells directly at your disposal!
Also The Docker toolbar now has animated icons to indicate actions in progress! Managing Docker development environment has never being easier!
So let see how this all works.
Database Backup - Saving the State
With Docker it is easy to complete rebuild all your image…
1 Like
zbot11
October 22, 2019, 7:28pm
15
Thanks. This is a side question, but when you’re creating tables or fields, do you do it from Wappler? Or directly in whatever db admin tool you use?
JonL
October 22, 2019, 8:07pm
16
You need an external tool at the moment. But wappler team is working on including a db management feature.
zbot11
October 22, 2019, 8:10pm
17
Cool. I have workbench and have been using that. Just didn’t know if you were maybe doing that through code.
1 Like