Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHPMyAdmin ... deleting a database?

     
3:59 pm on Apr 15, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3143
votes: 12


I just want to delete a test database that I made, thats it. There is no upfront obvious way of doing this from my pov so thats why I'm asking.
4:21 pm on Apr 15, 2005 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


doesn't it have a way for entering straight sql command?

DROP DATABASE [dev.mysql.com] <dbname>

6:44 pm on Apr 15, 2005 (gmt 0)

New User

10+ Year Member

joined:Nov 9, 2004
posts:6
votes: 0


in phpMyAdmin:

chose the database you want on the left side.

It should come up in the main area under four tabs that say "Structure, SQL, Export, Search, Query"

Put a check in the checkbox next to the database name.
under that area is a list box that defaults to "With Selected:"

Choose Drop from the list and click the Yes button to confirm.

10:31 pm on Apr 15, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3143
votes: 12


DROP DATABASE <dbname> not allowed...

There is no checkbox ... there is no "list" of databases except in the left frame and it's a dropdown menu.

11:22 pm on Apr 15, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 28, 2001
posts:1380
votes: 0


Do you have root access to the server?
You may not have permission to do this.
11:27 pm on Apr 15, 2005 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 15, 2001
posts:7557
votes: 3


Select the database name from the drop down list... The database will then appear in the main page.

Go to the bottom of the list of tables and you will see a link saying "select all" click this and a tick will appear in the checkbox next to each table. There will be a drop down list at the very botton of the list of tables. From there select drop.

This will then brop all tables from your database. Click reload mysql from th enext page and click home. Now select your dataase from the list (at the left) again. It will again open in the main window, but this time there will be no tables. There should be a link "drop database [databasename]" If you click this your db will be removed. In some versiond of phpmyadmin it will ask you to confirm.

I am assuming you have enough permissions to remove it, because you created it.

Mack.

12:26 am on Apr 16, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3143
votes: 12


Shared hosting, no root access...

Nothing says drop database and I followed your directions exactly.

phpMyAdmin 2.6.1-rc1
MySQL 4.0.23-standard

1:00 am on Apr 16, 2005 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 15, 2001
posts:7557
votes: 3


On that vesion you shoudl have tabs at the top...

When you click on your databae from the left menu you should see...

¦Structure¦ ¦SQL¦ ¦Export¦ ¦Search¦ ¦Query¦ ¦Operations¦ ¦Drop¦

This will appear right above your other options.
Click drop and it will ask you to confirm.

The word drop should appear in red.

Hope this helps.

Mack.

1:37 am on Apr 16, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3143
votes: 12


Drop only shows when I'm inside of a table or deeper. I've also got cpanel 9 and I'm on a shared server if that helps.
2:08 am on Apr 16, 2005 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 15, 2001
posts:7557
votes: 3


It is possible your host may have made modifications to phpmyadmin to disable certain features.

What I find is when I drop the tables.. then go back and view the database again in main window, the drop opron apears as a tab right above the db information area.

Mack.

11:21 pm on Apr 17, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3143
votes: 12


I can create but not delete my own DBs...why do all my hosts have to be amatuers?

Web Design...check.
Web Development ... working on.
Web Hosting ... to do.

>__>

12:31 am on Apr 18, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Mar 18, 2002
posts:309
votes: 0


On my shared hosting in Cpanel under "MySQL databases" is a link called "Manage Mysql"
I can delete databases there.
4:50 am on Apr 18, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3143
votes: 12


This DB I can't delete *ONLY* shows up in PHPMyAdmin.