Table of Contents
Tutorial: Import SQL File to MySQL Database in PHP MySQL
Getting Started
This tutorial is how to import SQL File to MySQL Database.
Related Tutorials: Fetch Data from MySQL Database using Vuejs in PHP, CRUD Operation using PHP MySQLi with DataTable and PDF Generator using TCPDF
Step 1
Make sure to start your localhost Server (XAMPP, WAMP, etc).
Step 2
Open phpMyAdmin in your browser and input necessary credentials to access MySQL Database.
Step 3
Create a new database and name this newly created database.
Step 4
Import the .sql file into our created database by clicking Import Tab, selecting the file and clicking the Go button below.
Step 5
Lastly, you will see this messages if the import is successful. That ends this tutorial. Happy Coding 🙂