Databases
MySQL and MariaDB databases, users, phpMyAdmin, imports and exports.
- 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 access and use phpMyAdminOpen phpMyAdmin from DirectAdmin, find your way around, browse and edit data safely, and run SQL queries.
- 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.
- How to create a MySQL database in DirectAdminCreate a MySQL/MariaDB database and user in DirectAdmin, understand the account prefix, and note the details your application needs.
- How to export a database (backup with phpMyAdmin)Download a copy of a MySQL database with phpMyAdmin’s Export tab, choose the right options, and check the backup isn’t empty.
- How to import a database with phpMyAdminRestore or migrate a database by importing an SQL file with phpMyAdmin, and fix the errors imports commonly hit.
- How to repair and optimise database tablesUse phpMyAdmin to check, repair and optimise MySQL tables, and understand when corruption is really the problem.
- Importing a database that’s too large for phpMyAdminOptions for importing big SQL files: compression, splitting the file, importing table by table, and restoring through a DirectAdmin backup.
- Keeping your databases secureProtect your website’s databases: separate users, strong passwords, prepared statements, safe credential storage and backups.
- Managing database users and privilegesAdd users to a database, choose privileges, use separate users per application, and remove access you no longer need.
- MySQL vs MariaDB: what’s the difference?How MariaDB relates to MySQL, whether your application cares which one it gets, and the few places they differ.
- What is MySQL (and MariaDB)?Databases explained simply: what MySQL and MariaDB store, how tables, users and privileges work, and how a website uses them.
Tutorials
- Create a database and connect an application to itCreate a MySQL database and user, confirm the login in phpMyAdmin, and connect a PHP script with PDO.
- Set up SFTP and manage your site from your computerConfigure FileZilla for SFTP, save the connection, and use folder comparison to upload only what’s changed.
- Export a database and import it somewhere elseMove a MySQL database between hosts or into a new database with phpMyAdmin, handling the errors imports commonly hit.