10

I have few sql dump files like the tables taken from other db. Now i want to update the tables into my server using the sqlyog. So can anyone help me out in importing .sql files into the SQLyog ??? Thank u in advance

Php Geek
  • 1,107
  • 1
  • 15
  • 36

6 Answers6

8

In SQLyog there is an option - Tools -> Execute SQL script. You can use this to run SQL scripts.

Jan S
  • 1,831
  • 15
  • 21
4

In order to make it clear please refer the screenshot:

enter image description here

Sathish D
  • 4,854
  • 31
  • 44
3

Why use SQLYog, mysqldump is already an available command with server.

mysqldump --opt --user=username --password database > dumbfile.sql

where dumbfile will be your sql file.

MYSQLDump command I have used it a lot to get databases export and is highly reliable.

And mysql command to import the same:

mysql -u root -p[root_password] [database_name] < dumpfilename.sql
Himanshu Bhardwaj
  • 4,038
  • 3
  • 17
  • 36
2

In SQLyog there is an option - Tools -> Execute SQL script. If there are some Errors it will give you a pop up, then click on the "Open Error File button", it will give you error in the sql file.

Nalaka526
  • 11,278
  • 21
  • 82
  • 116
Pinkesh Sharma
  • 2,428
  • 20
  • 16
0

I think you can open your SQL file in Query window, and just run it in SQLYog. Have a look at this documentation page - Executing SQL Queries.

Also, you can use mysql — The MySQL Command-Line Tool, or dbForge Studio for MySQL (free express edition) to execute SQL files against the MySQL database.

Devart
  • 119,203
  • 23
  • 166
  • 186
0

In SQLyog v7.14, run DB -> Restore from SQL Dump..., or just press Ctrl+Shift+Q.