Delete a database in phpMyAdmin

孤街醉人 提交于 2020-06-24 03:03:10

问题


By mistake, I have created a duplicate database in the phpMyAdmin page of cPanel. I want to delete this database, but I am not able to find any delete button in the UI.

How to delete a database in phpMyAdmin?


回答1:


After successful login to cPanel, near to the phpMyAdmin icon there is another icon MySQL Databases; click on that.

enter image description here

That brings you to the database listing page.

In the action column you can find the delete database option click on that to delete your database!




回答2:


On phpMyAdmin 4.1.9:

database_name > Operations > Remove database

enter image description here




回答3:


Screenshot

  1. Go to phpmyadmin home page.
  2. Click on 'Databases'.
  3. Select the database you want to delete. (put check mark)
  4. Click Drop.



回答4:


Taking a queue from michael's answer above, I was unable to find the DROP Database command on my phpMyAdmin console in the localhost.

Apparantly I was missing a setting. Go to config.inc.php file of the phpMyAdmin folder, and add this:

$cfg['AllowUserDropDatabase'] = true;

Save and restart the local server and the command appears inside the console.




回答5:


You can follow uploaded images

enter image description here

Then select which database you want to delete

enter image description here




回答6:


You can delete the database in Cpanel.

In Cpanel go to databases and there you will see all created databases and you can delete this database.

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/MySQLDatabases#Delete a Database

or other wise on live server if user have privileges you can run command in sql tab of phpmyadmin.

drop database databasename;



回答7:


database_name -> Operations -> Remove database -> click on drop the database (DROP)




回答8:


If you want to delete your database from phpmyAdmin or mySQl. Simply go to SQL command and write command "drop DATABASE databasename;"

Example: drop DATABASE rainbowonlineshopping;

Then click on "Go" Button. Your Database will be deleted and you get information like this




回答9:


There are two ways for delete Database

  1. Run this SQL query -> DROP DATABASE database_name
  2. Click database_name -> Operations ->Remove Database



回答10:


How to delete a database in phpMyAdmin?

From the Operations tab of the database, look for (and click) the text Drop the database (DROP).




回答11:


select database on the left side. Then on the right-central top you can find Operations. In that go for remove database (DROP). That's all.




回答12:


The delete / drop option in operations is not present in my version.

Go to CPanel -> MySQLDatabase (icon next to PhPMyAdmin) -> check the DB to be delete -> delete.




回答13:


Open the Terminal and run

 mysql -u root -p

Password is null or just enter your mysql password

Ater Just Run This Query

 DROP DATABASE DBname;

If you are using phpmyadmin then just run

 DROP DATABASE DBname;



回答14:


Follow the following steps to delete database in PhpMyAdmin.

  1. Select your database.
  2. Choose the "Operations" tab.
  3. On this page under remove database, you will find a "Drop the database (DROP)"

Hope this helps.




回答15:


Go to operations tab for the selected database and click "Drop the database (DROP)" to delete it.




回答16:


1.connect to your localhost. 2.open your favorite browser. 3.make sure your localhost is working. 4.type in url= localhost. 5.scroll down click on phpadmin 6.once phpadmin is open. 7.click on database. 8.mark check the database you want remove. 9.click on drop. •database should be remove•. If this don't work 10.click on database 11.go to operation 12.click drop database.•should be display in red text•.



来源:https://stackoverflow.com/questions/21751868/delete-a-database-in-phpmyadmin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!