Run the migration
There are several ways to run the migration.
Option A: MySQL command line
Open a terminal and connect to MySQL:
bash
mysql -u root -p
sql
USE library_db;
sql
CREATE DATABASE library_db
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
USE library_db;
bash
mysql -u root -p library_db < database/migrations/001_initial_library.sql
bash
mysql -u root -p library_db < "C:\path\to\your-project\database\migrations\001_initial_library.sql"
Option B: phpMyAdmin
If you're using phpMyAdmin:- Open phpMyAdmin.
- Select
library_db. - Open the Import tab.
- Select
001_initial_library.sql. - Start the import.
- Check the database after the import finishes.
Sign in to save your progress permanently.
Progress is saved in your browser session
Step 12 of 19