Create databases and use phpMyAdmin
Most dynamic websites, including WordPress, store their content in a database. Sheernox hosting uses MariaDB, which works with anything built for MySQL.
Create a database
Section titled “Create a database”Open Websites, select the website and select Databases in its navigation bar.
-
Select Add database marker 1.
-
Enter a name in Database name marker 1. Every name starts with a prefix based on the website, which you cannot change. The full name, prefix included, is the one your application needs.
-
Give a user access to the database. If the website already has database users, they are listed under Add database user: tick one marker 2 to give it access. To make a new one, select Create new user marker 3:
- Enter a Username (it gets the same prefix) and a Password. The password needs at least 10 characters, with a lowercase letter, an uppercase letter, a number and a special character. Save it in your password manager.
- Leave All database privileges selected unless you need to limit what the user can do.
-
Select Add marker 4.
To add a user later, select Add user on the Databases page, or open the database and use Add database user.
Connect your application
Section titled “Connect your application”Your application needs four values: the database name, the username, the password and the database host. For WordPress and other PHP software on the same website, the host is localhost.
To see every connection option, select the database’s menu button marker 4, then Manage.
Connection info marker 1 shows the socket path for applications that connect through a Unix socket, and an address for applications that need a TCP connection.
Open phpMyAdmin
Section titled “Open phpMyAdmin”phpMyAdmin is a browser tool for looking at and editing your data. It opens in a new tab, already signed in to the database.
- On the Databases page, select the phpMyAdmin button marker 3 on the database’s row, or
- on the database’s Manage page, select PhpMyAdmin marker 2.
The website’s overview also has phpMyAdmin in Quick links.
Import or export a database
Section titled “Import or export a database”On the database’s Manage page:
- Export SQL file: select Download to save the whole database as a
.sql.gzfile. Do this before major changes. - Import SQL file: select Upload and choose a
.sqlfile, or one compressed as.gzor.zip. The page shows the largest file you can upload.
phpMyAdmin also has Export and Import tabs if you want to export only some tables.
Delete a database
Section titled “Delete a database”Select the database’s menu button marker 4, then Delete, and confirm. The data is gone unless you have an export or a backup.