bubble_chart StackLab

Database Migration

19 steps · pending Not started · person_outline Guest
arrow_back Back

Create the database

Let's start by creating the database that will hold our tables. Open your preferred MySQL/MariaDB tool:

    1. phpMyAdmin
    2. MySQL command line
    3. MariaDB command line
    4. a database tool provided by your hosting service
Run:
code sql
CREATE DATABASE library_db
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
Now select the database:
code sql
USE library_db;
You can confirm that MySQL is using the correct database:
code sql
SELECT DATABASE();
You should see:
code text
library_db

Checkpoint

At this point, you should have an empty database named library_db.

login Sign in to save your progress permanently. info Progress is saved in your browser session
format_list_numbered Step 3 of 19