MySQL
How to import a MySQL (.SQL) file to your database ?
Copying the SQL script
- On your computer, navigate to the .sql file you intend to import to your database.
- Open the .sql file in a regular text editor such as Notepad or TextEdit.
- Select all the content by pressing Ctrl (Cmd) + A.
- Copy the content by pressing Ctrl (Cmd) + C.
- Close your text editor application.
Executing the script
- In phpMyAdmin, choose the database you intend to work with from the Database menu list.
- Choose the SQL tab.
- Paste the SQL script you copied by pressing Ctrl (Cmd) + V
- Choose Go.
- Confirm that your new table has been imported by clicking the Structure tab.