Learn About MySQL

Databases | Updated 2026

MariaDB (the MySQL-compatible database server on Ultra Web Hosting) stores the data behind most dynamic websites, from WordPress posts to e-commerce products. This guide covers the basics you need to know as a hosting customer.

MariaDB, Not MySQL

Our servers run MariaDB, which is a drop-in replacement for MySQL. All MySQL commands, tools, and connection methods work exactly the same. When you see "MySQL" in cPanel or in your application settings, it connects to MariaDB behind the scenes.

01. What is MariaDB/MySQL

A database is an organized collection of data stored on the server. Web applications like WordPress, Joomla, Drupal, and custom PHP sites use databases to store content, user accounts, settings, and more. Without a database, these applications cannot function.

Key concepts:

  • Database - a container that holds tables of related data
  • Table - a structured set of rows and columns (like a spreadsheet)
  • SQL - the language used to read, write, and manage data
  • Database user - a login account with specific permissions on one or more databases

02. Creating a Database

  1. Log into cPanel and go to Databases > MySQL Databases
  2. Enter a database name and click Create Database
  3. Create a database user with a strong password in the MySQL Users section below
  4. Add the user to the database and assign "All Privileges"
Naming Convention

cPanel prefixes all database and user names with your cPanel username. If your username is ultra and you create a database called blog, the actual name is ultra_blog. Use the prefixed name in your application's database settings.

For detailed steps on adding users to databases, see How to Add a User to a MariaDB/MySQL Database.

03. Using phpMyAdmin

phpMyAdmin is a web-based tool for managing your databases. Access it from cPanel > Databases > phpMyAdmin.

With phpMyAdmin you can:

  • Browse and search table data
  • Run SQL queries
  • Import and export databases (backups)
  • Create, modify, and delete tables
  • Repair and optimize tables
Be Careful

phpMyAdmin gives you direct access to your data. Always back up your database before making changes. A wrong DELETE or DROP command cannot be undone.

04. Connection Settings

When configuring a web application to connect to your database, use these settings:

Hostname:  localhost
Port:      3306
Database:  cpanelusername_dbname
Username:  cpanelusername_dbuser
Password:  (the password you set when creating the user)
Remote Connections

By default, databases only accept connections from localhost (scripts on the same server). If you need to connect from an external application, see What Port is MariaDB/MySQL On? and Troubleshooting Port 3306 Connections.

05. Common Tasks

Importing a Database

To import a .sql file (database backup or migration):

  1. Open phpMyAdmin and select your database from the left sidebar
  2. Click the Import tab
  3. Choose your .sql file and click Go

For files larger than the phpMyAdmin upload limit, use SSH:

mysql -u cpanelusername_dbuser -p cpanelusername_dbname < backup.sql

Exporting a Database

To create a backup:

  1. Open phpMyAdmin and select your database
  2. Click the Export tab
  3. Choose "Quick" export method and format "SQL"
  4. Click Go to download the .sql file

Resetting a Database Password

Go to cPanel > MySQL Databases > Current Users, click "Change Password" next to the user, and set a new password. Update the password in your application's configuration file (e.g., wp-config.php for WordPress).

06. Troubleshooting

Common database errors and fixes:

  • "Error establishing a database connection" - wrong credentials in your config file. See Cannot Connect to MariaDB/MySQL
  • "Access denied for user" - the database user does not have permissions on that database. Re-add the user in cPanel > MySQL Databases
  • "Table is marked as crashed" - repair the table in phpMyAdmin (select table > click Repair)
  • MySQL strict mode errors - see Disable MySQL Strict Mode

Need Database Help?

If you are having trouble with your database, our support team can help diagnose connection issues and assist with imports.

Open a Support Ticket

Quick Recap: Database Essentials

  1. Create database and user in cPanel > MySQL Databases
  2. Add the user to the database with All Privileges
  3. Use phpMyAdmin for browsing, importing, and exporting
  4. Connect with localhost:3306 and your prefixed database/user names
  5. Always back up before making manual database changes

12,020 users found this article useful · Last updated March 2026 · Browse all Database articles

  • 522 Users Found This Useful

Was this answer helpful?

Related Articles

HTTP Authentication error in PHP

PHP/MySQL | Updated 2026 If your PHP script uses HTTP authentication...

Server Paths - PHP Perl Python and More

PHP/MariaDB/MySQL | Updated March 2026 The default path to PHP on Ultra Web Hosting servers...

How do I backup a MariaDB - MySQL Database?

PHP/MySQL | Updated 2026 Backing up your database is essential before making changes to your...

The MySQL Server Is Currently Offline - DBCACHE Exit 11

Server Maintenance | Updated March 2026 When cPanel displays "The MySQL server is currently...

Cannot Connect to MySQL on Port 3306

PHP/MariaDB/MySQL | Updated March 2026 If you're getting connection errors when trying to...



Save 30% on web hosting - Use coupon code Hosting30