When mariadb SQL is imported to mysql, an error is returned.

Source: Internet
Author: User
My server A (linux) uses the mariadb database, and server B (linux) uses the mysql database. Now I move all databases of A to B. On A, use the command mysqldump to back up all databases and generate SQL files. Use the source command on B to restore the database. The problem is sou...

My server A (linux) uses the mariadb database, and server B (linux) uses the mysql database.
Now I move all databases of A to B.
On A, use the command mysqldump to back up all databases and generate SQL files.
Use the source command on B to restore the database.
The problem is that the source execution reports an error.
Mariadb uses the innodb Storage engine.

Reply content:

My server A (linux) uses the mariadb database, and server B (linux) uses the mysql database.
Now I move all databases of A to B.
On A, use the command mysqldump to back up all databases and generate SQL files.
Use the source command on B to restore the database.
The problem is that the source execution reports an error.
Mariadb uses the innodb Storage engine.

Paste the mysqldump command you executed on mariadb to check it out.
Are you sure you want to export all the databases below?

Mysqldump-u DB username-p DB password -- all-databases> all. SQL

You should paste your dump statement. This error may be caused by no related database.

SetMysqldumpPaste the command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.