简体   繁体   English

如何在phpmyadmin中删除或替换数据库上的mySQL转储文件?

[英]How can I delete or replace a mySQL dump file on a database in phpmyadmin?

I have just imported a mySQL dump file on a database from another database. 我刚刚在另一个数据库的数据库中导入了mySQL转储文件。

The reason for this is that I am following these steps to transfer a website from one server to another one. 这样做的原因是我按照这些步骤将网站从一个服务器转移到另一个服务器。 I don't think I did it right as I am not getting what I should get on step 8: in a web browser go to: http://www.yourNewDomain.com/wp-change-domain.php . 我不认为我做得对,因为我没有得到第8步我应该得到的东西: in a web browser go to: http://www.yourNewDomain.com/wp-change-domain.php

How can I delete or replace a mySQL dump file on a database in phpmyadmin? 如何在phpmyadmin中删除或替换数据库上的mySQL转储文件? I will try to import my database again to see if step 8 works. 我将再次尝试导入我的数据库以查看步骤8是否有效。

Since you are not providing any data it's hard to tell what's wrong with step 8 of your tutorial. 由于您没有提供任何数据,因此很难说出教程的第8步有什么问题。 However, to answer your question, I suppose you have imported the entire wordpress database: if the dump was not correct and you want to import it again, you should delete it first with: 但是,为了回答你的问题,我想你已经导入了整个wordpress数据库:如果转储不正确并且你想再次导入它,你应该先删除它:

DROP DATABASE db_name;

and then reimport it. 然后重新导入它。 Be very careful, don't do that if you aren't sure what you are doing, you could lose data! 要非常小心,如果你不确定自己在做什么,不要这样做,你可能会丢失数据!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM