ERROR 1049 (42000): Unknown database 'mydatabasename'

后端 未结 12 1375
故里飘歌
故里飘歌 2020-12-14 07:27

I am trying to restore database from .sql file , i have created the database in phpmyadmin and also using the create if not exist command in the .sql file which i am restori

12条回答
  •  忘掉有多难
    2020-12-14 07:33

    La Chi's answer works for me.

    You can view his/her answer in the comment of zessx answer in this page. But I initially have a problem with it if you also do just tweak his/her answer like this: mysql -h localhost -u root -p -D mydatabase < mydatabase.sql.

    Also I would suggest that in the mydatabase.sql portion you include the direct location of it in your computer like "C:\Users\username\desktop".

    Thank you.

提交回复
热议问题