Let’s assume you are importing a SQL backup file for a website called exampleblog.com.ng.
π§Ύ Step-by-step Commands:
π This moves you into the folder where your .sql.gz file is stored.
π This command unzips exampleblog_dbbackup.sql.gz into a usable SQL file: exampleblog_dbbackup.sql.
π This imports the uncompressed SQL file into the MySQL database named exampleblog_db.
π Note: Youβll be prompted to enter the MySQL root password before the import begins.
β Summary of Variables Used:
| Variable | Example Used | Explanation |
|---|---|---|
| Domain | exampleblog.com.ng | The websiteβs domain name |
| SQL Backup File | exampleblog_dbbackup.sql.gz | Compressed database file |
| MySQL Database Name | exampleblog_db | The database into which youβre importing |
| MySQL Username | root | Administrative MySQL user |