Import SQL File to MySQL Database in PHP MySQL

By CampCodes Administrator

Published on:

import sql file to mysql

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. import sql file to mysql database

Step 3

Create a new database and name this newly created database. creating a new database in mysql

Step 4

Import the .sql file into our created database by clicking Import Tab, selecting the file and clicking the Go button below. import the sql file

Step 5

Lastly, you will see this messages if the import is successful. import sql file to mysql That ends this tutorial. Happy Coding 🙂

READ ALSO:   How to Download File Using PDO in PHP

Leave a Comment