0

When you try to import the database, the following message occurs: db error image

help me.

kunj
3,7092 gold badges11 silver badges26 bronze badges
1
  • please mark answer if useful so others get solution on issue Commented Jun 12, 2018 at 3:52

2 Answers 2

0

Import database use command line. By using this method full database will import without error.

Replace

  • username with your Database Username.
    databsase_name with your Database Name

    Paste this command with your credentional
    mysql -u username -p database_name> database.sql

    then paste password. ......

answered Jun 12, 2018 at 3:21
1
  • Hello, Mark my answer Commented Jun 13, 2018 at 2:58
0

I think your exported database backup is corrupted. Have you checked the DB backup file by opening in any text editor?

Sometimes, while exporting the database from phpMyAdmin, you get wrong format of file and it contains HTML tags.

In order to get correct database backup, you need to first export it using command line. Use the following command to export the database from origin server:

mysqldump -u username -p databasename > dumpfilename.sql

then provide the database login password when prompted.

To import the database using command line, use the following command:

cd [path to database backup file]

mysql -u username -p databasename < dumpfilename.sql

then provide the database login password when prompted.

answered Jun 12, 2018 at 7:39
1
  • @VandersondeCastro, please upvote my answer if it helped, so that it can build trust for other users that answer is correct. Commented Jun 13, 2018 at 5:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.