2

I have a database. All I want to do is dump ALL the existing data in every table to I can then use it to simply import the SQL to my new database?

Im presuming the dump will be a bunch of MySQL INSERT statements

2 Answers 2

4

You can also use mysqldump, native mysql tool for this purpose.

Sign up to request clarification or add additional context in comments.

2 Comments

Example: mysqldump -u username -p db_name > dump.sql
-p stands for password :) without a space :).
1

You can use a tool such as mysql workbench or phpmyadmin to create the dump. It will be a bunch of inserts as well as all the other data in it (such as procedures).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.