Knowledgebase

Databases & MySQL

MySQL users, phpMyAdmin, backups and repairs.

Creating a database and a user, connecting an application to it, exporting and importing with phpMyAdmin, and repairing one when a site starts throwing connection or table errors. Most of what people need from a database they never have to write SQL for — but the queries that genuinely help are here as well.

How many databases can I create?

It depends on your plan, and the number is shown in your control panel rather than fixed across every account.

FAQ Databases 4 min
How to back up a database on a schedule

A scheduled export you never have to remember to run is worth more than the best manual backup habit.

Guide Databases 8 min
How to change a database character set or collation

Changing the database default does not touch existing tables, which is the part that catches people out.

FAQ Databases 5 min
How to check how big your database is

Your control panel and phpMyAdmin both show it directly, and a short query breaks it down table by table.

FAQ Databases 4 min
How to connect an application to MySQL

Every MySQL connection, in any language, comes down to the same four values — here is where to find them and how to use them.

Guide Databases 8 min
How to create a MySQL database and user

Every application needs a database, a user, and that user attached to the database — here is the order to do it in.

Guide Databases 6 min
How to delete a database without breaking a site

Three checks before you delete a database, because there is nothing to undo it with afterwards.

FAQ Databases 4 min
How to export a database

Turn a live database into a single portable SQL file, ready to back up, move, or hand to a developer.

Guide Databases 6 min
How to find the query slowing your site down

A slow site is usually a slow query wearing a disguise — here is how to catch it in the act.

Guide Databases 8 min
How to fix "unknown database" errors

The database name your application is asking for does not exist, at least not under that exact name, on that server.

Guide Databases 7 min
How to fix a "too many connections" error

The database has a limit on simultaneous connections, and something is holding on to more of them than it should.

Guide Databases 7 min
How to grant a user access to a database

A database user with no privileges cannot do anything, and one with too many is a risk you do not need to take.

Guide Databases 7 min
How to import a database too large for phpMyAdmin

A file too big for a browser upload still has three practical ways in — compression, splitting, or the command line.

Guide Databases 8 min
How to import a database with phpMyAdmin

Point phpMyAdmin at a SQL file and it rebuilds the database from it — provided the file is small enough for a single upload.

Guide Databases 7 min
How to move a database to a new server

An export, a transfer, an import, and a small set of connection details to update once it lands.

Guide Databases 8 min
How to optimise a MySQL database

OPTIMIZE TABLE reclaims space and refreshes statistics — but it behaves differently depending on the storage engine underneath.

Guide Databases 7 min
How to repair a corrupted MySQL table

A corrupted table has a specific fix, and it is different depending on whether the table is MyISAM or InnoDB.

Guide Databases 7 min
How to reset a database user password

Resetting the password is the easy part — updating every application that still has the old one saved is the part people forget.

Guide Databases 5 min
How to search and replace inside a database

A plain find-and-replace can silently corrupt serialized data — here is how to do it without breaking the site.

Guide Databases 8 min
MySQL and MariaDB: what is the difference?

Two databases that speak the same SQL and the same connection protocol, with a history and a licensing model that pulled them apart.

Article Databases 8 min
What is a database table prefix?

A short string in front of every table name, mainly so more than one application can share the same database.

FAQ Databases 4 min
What is utf8mb4 and why does it matter?

MySQL called something utf8 that was not quite real UTF-8, and utf8mb4 is the character set that actually is.

FAQ Databases 4 min
What SQL injection is, and how sites get hit

A decades-old vulnerability that still appears in new code, and the small set of habits that reliably prevent it.

Article Databases 9 min
Why is my database host "localhost"?

It means "this same machine" — not a placeholder, and not something to change unless you actually need to.

FAQ Databases 4 min

Other topics

Hosting with support that answers

Free SSL, free migration and a 30-day money-back guarantee.
See Hosting Plans