Hi,
No matter what I do I get the Access denied for user error.I watched the video but still get it.
Are there any common errors I should be aware of in setting up a db user?
Thanks,
duchaine
Hi,
No matter what I do I get the Access denied for user error.I watched the video but still get it.
Are there any common errors I should be aware of in setting up a db user?
Thanks,
duchaine
Short, practical checklist that expands on ’s question about OS/version and on ’s note about credentials/host mismatches.
Common causes to check quickly: wrong password, the MySQL user is defined for a different host (MySQL matches user+host), connector/ODBC driver and MySQL auth-plugin mismatch (MySQL 8 uses caching_sha2_password by default), and ODBC bitness mismatch when using Microsoft Access.
Troubleshooting steps and useful commands:
# try a direct login from the DB host (forces TCP with 127.0.0.1)
mysql -u your_user -p -h 127.0.0.1
# inspect the user entries and plugin
SELECT User, Host, plugin FROM mysql.user WHERE User='your_user';
SHOW GRANTS FOR 'your_user'@'host';
# create/grant examples (adjust privileges as needed)
CREATE USER 'your_user'@'%' IDENTIFIED BY 'strongpass';
GRANT SELECT, INSERT ON yourdb.* TO 'your_user'@'%';
FLUSH PRIVILEGES;
# if connector is old and server is MySQL 8+, switch auth plugin
ALTER USER 'your_user'@'%' IDENTIFIED WITH mysql_native_password BY 'strongpass'; Notes and cautions specific to Access/ODBC:
localhost differently (socket vs TCP).Useful diagnostic data when diagnosing further: the exact error text, MySQL server version, connector/ODBC/driver name and bitness, and whether the client is local or remote. These let one distinguish wrong password, host-mismatch, auth-plugin issues, or driver incompatibility.
Jump to Post— cereal 1,524Hi,
are you using MySQL on Windows? Is this a new installation? Which version? Could you paste the specific message and code error?
Hi,
are you using MySQL on Windows? Is this a new installation? Which version? Could you paste the specific message and code error?
Your username, password or host might be wrong.... need more details
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.