Beginner to intermediateAbout 55 min in total
Files and databases tutorials
Databases, SFTP and moving data between servers.
Work confidently with the files and databases behind your website: connecting over SFTP, creating and importing MySQL databases, and moving data between servers without losing anything. Each tutorial lists exactly what you need before you start.
- 1. Create a database and connect an application to itBeginner Create a MySQL database and user, confirm the login in phpMyAdmin, and connect a PHP script with PDO.
- 2. Set up SFTP and manage your site from your computerBeginner Configure FileZilla for SFTP, save the connection, and use folder comparison to upload only what’s changed.
- 3. Export a database and import it somewhere elseIntermediate Move a MySQL database between hosts or into a new database with phpMyAdmin, handling the errors imports commonly hit.
Background reading
Guides from the knowledge base that explain the ideas behind these tutorials.
- 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.
- Where to upload your website: public_html explainedHow your Traxio account’s folders are organised, where website files must go, and what should never be placed in public_html.
- 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.
- File permissions explained (644, 755 and why never 777)What Linux file permissions mean, the correct values for website files and folders, and how to change them in DirectAdmin.
- FTP vs SFTP: which should you use?How FTP, FTP with TLS (FTPS) and SFTP differ in security and setup, and which one to use with your Traxio hosting.