I am getting the error “Access denied for user ‘root’@‘localhost’ (using password: YES)”
I have verified connection from mysql client works fine and I also use the same credentials to connect from my Ruby on Rails apps. The root user has permission to connect to localhost. I do have special characters like !@#$ in my password, if that makes any difference.
I am a new Wappler user and I got the subscription for basic account. What else and I doing wrong here?
The 7 day trial is full features I believe but if you bought the basic plan maybe it overrides the trial period if that is the reason you can’t connect a database
Here is the output from mysql status command, if that helps:
mysql> status
mysql Ver 8.0.26 for macos11.3 on x86_64 (Homebrew)
Connection id: 13
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ‘’
Using delimiter: ;
Server version: 8.0.25 Homebrew
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /tmp/mysql.sock
Binary data as: Hexadecimal
Uptime: 2 min 8 sec
Is this a NodeJS, php, aspx project?
Is it running on a local docker or are you using something like WAMP, MAMP, LAMP
Have you tried changing the password to something without all the @!#$ characters to just test if suddenly the connection works, then we will know it is something to do with that.
Have you tried connecting to the database via Server Connect or under Database Manager?
I can only assume but it is likely because you are registered using the Basic version. Even solving this problem now will not help you going forward without the pro version.
I assume your MySQL 8 database was already an existing database, and not setup in Wappler, as you are not using Docker.
I think the easiest way to get more help is to give a few screenshots of the connection settings you are trying in Wappler, or a short video of the process.
Thanks that helps me understand exactly where you are at.
So as a test please go about this a slightly different way. Instead of opening database manager, rather click the workflows icon above it, open out Globals, right click Database Connections and try the exact same thing as you did in the database manager section.
Let me know if that works please.
On a side note, I have noticed from time to time that although the test of the database connection may fail, sometimes saving the connection anyway, saving the project and publishing, actually works anyway.
A few other strange things to try http://localhost instead of just localhost. Also are you 100% sure its on port 3306 as I had another package install it on a different port a while back, I think it was 8889 which was pretty strange in my mind.