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
In SQLyog there is an option - Tools -> Execute SQL script
. You can use this to run SQL scripts.
In order to make it clear please refer the screenshot:
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
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.
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.
在SQLyog v7.14中,运行DB - >从SQL转储还原...,或者只需按Ctrl + Shift + Q.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.