MariaDB / MySQL Database Administration
Your database is the beating heart of your website or application, holding everything from crucial customer data to your core content. Because databases are so vital, managing them, especially when running upgrades, dropping tables, or troubleshooting errors, can feel like high-stakes surgery. Fortunately, you don’t have to navigate these critical tasks blindly.
Whether you are provisioning a brand-new server, writing your first mysqldump command, or fine-tuning InnoDB variables to handle massive traffic spikes, this collection of guides provides the technical foundation you need. We cover both user-friendly graphical interfaces like cPanel and powerful command-line (SSH) techniques to help you securely and efficiently manage your MySQL and MariaDB environments.
Explore the guides below to learn how to:
- Manage Users and Access: Secure your data by safely creating and deleting specific database users, resetting root passwords, and connecting external development tools like VSCode SQLTools.
- Backup and Restore: Protect your server against catastrophic data loss by mastering manual backups,
mysqldumpexports, and full database restorations. - Maintain and Upgrade: Keep your environment secure and stable by safely upgrading database versions across various operating systems (Ubuntu, CentOS), checking for errors, and repairing corrupted tables.
- Tune for Performance: Speed up sluggish query times by understanding key MySQL variables, mastering database indexing, and batch-converting legacy storage engines.
MariaDB / MySQL Database Articles
This collection contains articles and resources for MariaDB / MySQL administration. The topics covered include initial setup, user management, replication, and performance tuning.
Deleting MySQL Users
Read more: Deleting MySQL UsersIf you are using MySQL databases with multiple users, you may need to control database access by deleting database users. You can delete MySQL users using either cPanel or the command line.
How to connect to MySQL/MariaDB using SQLTools in VSCode
Read more: How to connect to MySQL/MariaDB using SQLTools in VSCodeWith SQLTools in VSCode, you can streamline your database workflow, making it a valuable tool for developers who interact with MySQL or MariaDB databases regularly.
Importing and exporting a MySQL database
Read more: Importing and exporting a MySQL databaseLearn how to export and import MySQL databases for backups. This guide covers using the command line (`mysqldump`), phpMyAdmin, and WP-CLI.
Installing MySQL community edition on new AlmaLinux 8 servers
Read more: Installing MySQL community edition on new AlmaLinux 8 serversInstall MySQL Community on new AlmaLinux 8. *NEW SERVERS ONLY* (data loss risk). Steps: prep, repo, install, secure.
MariaDB performance tuning tips at Nexcess
Read more: MariaDB performance tuning tips at NexcessOptimize MariaDB performance with our tuning script and expert tips. Learn to use MySQLTuner and benchmarking to get a faster database today.
Moving the MySQL Data Directory
Read more: Moving the MySQL Data DirectoryMove MySQL `datadir`: Step-by-step guide using `rsync`, symlinks, & `my.cnf` updates. Includes CloudLinux notes & critical backup advice.
MySQL Commands
Read more: MySQL CommandsMySQL command guide: Data dump/restore, password management, admin tasks (upgrades, root reset, slow log) & datadir/tmpdir setup.
MySQL Performance: Converting MySQL to MariaDB
Read more: MySQL Performance: Converting MySQL to MariaDBConverting MySQL to MariaDB is beneficial for optimizing your website and database. In our tutorial, we cover how to upgrade your database on your Ubuntu and CentOS server using cPanel, Plesk and command line.