We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
My database has become to large to use Excel or Google Sheets to upload the information so I am attempting to create a separate database connection to a MSQL server that is running on my local machine. But I can't get it to connect to it.
The error I receive:
wpDataTables could not connect to mysql server. mysql said: There was a problem with your SQL connection - Access denied for user 'wordpress'@'127.0.0.1' (using password: YES)
The settings I am using:
Vender - MYSQL
Database name - example.example
Host - 127.0.0.1
Port - 3306
User - wordpress
Password - ******
Driver - ODBC
I am using the Brave browser, but have also tried Chrome, Firefox, Safari
Things I know/tried:
- MYSQL is up and running.
- I am using a browser on the same computer the server is located on
- I can connect to mysql via CLI
- The username:password works (logging in via CLI)
- The port is listening
- MYSQL can accept remote connections
- The database exists and is properly named
- The user has been granted ALL PRIVILEGES
- User host is %
- I ran a tcpdump while trying to connect and no packets came through, but they do when I login via CLI
- Tried not using a driver
- Tried using username root
- Use localhost for the the host name (This returns a new error -
wpDataTables could not connect to mysql server. mysql said: There was a problem with your SQL connection - No such file or directory)
Any help is appreciated. Thanks
Bump.
Hello,
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
This is an error thrown from your Database for the DB user who is trying to connect.
I will do my best to help you resolve it.
You can connect the plugin to almost any MySQL, MSSQL, and PostgreSQL database using the Separate DB Connection section in wpDataTables,
if you correctly input the details for the connection.
You first have to check if you have the following drivers installed, and activated.
These drivers need to be installed and activated on the server where your WordPress website is.
After you install and activate those drivers, it should work.
If you're not sure how to install the drivers, please reach out to your hosting provider.
The server to which wpDataTables is connecting has its own method of establishing the connection, and we're using PHPs logic of connecting to separate connections.
If there are errors your server returns, those are returned by the server, and only displayed by wpDataTables
- there's no additional log within wpDataTables that would distinctively show you what's behind the error.
You can actually test the full features of our plugin, and test your remote DB connection on our Demo sandbox on this link,
if it is on a live server ( if it is localhost, then It can't be accessed by our Demo Site).
Then, when you have these installed, you need to contact the support of your remote Database server and ask them for instructions and details what is needed to be input in order to connect,
such as connection name, host, port, user, password, etc;
In the end, try to Test the DB Connection in our Plugin, and see if you get any errors.
If there are errors your server returns, those are returned by the server,
and only displayed by wpDataTables -
there is no additional log within wpDataTables that would distinctively show you what's behind the error.
If you are testing this on your own localHost server, which you configured yourself, then you can research for posts about the same error you are seeing online.
There are a lot of other Posts with the same error, and it seems users managed to resolve this.
For example, please check this Page with a guide that shows some steps you can do, such as :
Check that the DB username, DB password, database host, and database port are correct, then insert them in the External DB connection details in our Plugin settings.
You can also check this StackOverflow Post, where a user managed to resolve this issue.
To summarize, you need to ensure that the DB user who you are using to connect has the necessarry privileges/access and if you are inserting all the correct details for your MySQL Connection, etc.
Try to connect via some other software first perhaps to check if it is letting your DB user connect with the same details, that can help to isolate the issue.
Or, in some cases, it is a good test to simply create a new DB user, make sure to set this user with full permissions, and then try if that new user connects ( to isolate if it is a permissions issue).
Let me know how it goes.
Thank you.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Here are my connection settings:
The error I am getting:
My users showing the correct user and host (Note: I have also done all this with wordpress user, which is setup the exact same except with the % 'any' connection):
I am able to login to mysql via the CLI which shows all the same settings and that the username:password work:
Grant Privileges that shows the user has all the permissions possible:
Telnet that shows the connection is open and working for mysql:
My ODBC setup to show it matches via Data Source Administrator:
And showing the connection works:
And the ODBC drivers I have installed:
UPDATE EDIT:
Something else I tried was to shut off the MYSQL server i am running and try testing the connection to see what error it gives. It gives me the exact same error for some reason, which shouldn't be possible. It should not be providing an access denied error since that would only be able to occur after the connection is initiated and the credentials are supplied. That makes me think the problem is elsewhere.
Bump