Short answer
The database username or password is wrong, or that user has no rights on that database. Check all three against DirectAdmin, remembering that database and usernames carry your account prefix — a missing prefix is the single most common cause.
Learn more
- Managing database users and privilegesAdd users to a database, choose privileges, use separate users per application, and remove access you no longer need.
- Connecting a PHP application to your databaseThe connection details for Traxio databases and working examples with PDO and mysqli, including safe queries and keeping credentials private.
- How to change a database user’s passwordReset a MySQL user’s password in DirectAdmin and update your application’s configuration so the site doesn’t go down.
Step-by-step
- Create a database and connect an application to itBeginner · 15 min · 6 steps
Every Traxio account includes a MySQL database with phpMyAdmin. If you’re still choosing a host, PHP and MySQL hosting is free for 30 days, then £0.99 a month.