LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-17-2006, 01:09 AM   #1
kafnir
Member
 
Registered: Oct 2002
Location: USA
Distribution: Fedora and Ubuntu
Posts: 137

Rep: Reputation: 15
mysql and postgresql question


Hello Friends!
Would anyone please tell me howto delete databases from both mysql and postgresql.
after login on mysql and I execute SHOW DATABASES, I see a few databases that I create, but I don't need them anymore.
I use command such as: DELETE FROM User WHERE User='xxx';
I receive error messages.

thank you
 
Old 06-17-2006, 01:19 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
What error messages? I also assume that you've chosen a database first (use <database name>).

EDIT: If you want to delete an entire database, use the drop command (drop <database name>) << if my memory is not failing me again...

Last edited by Mega Man X; 06-17-2006 at 01:22 AM.
 
Old 06-17-2006, 02:18 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
dropdb <database name>
for PostgreSQL (note: you need to be a) the owner of the DB
or b) the postgres system user).


Cheers,
Tink

P.S.: You never mentioned what problem you had with PG.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL x PostgreSQL Thakowbbery Linux - Enterprise 5 09-06-2005 09:30 AM
PHP with MySQL and PostgreSQL ? Boby Linux - Software 2 05-25-2005 05:11 AM
MySQL,PostgreSQL and dbm. cranium2004 Linux - Software 1 03-10-2005 03:48 PM
PostgreSQL vs. MySQL mikeshn Programming 1 07-08-2002 12:23 PM
MySQL of PostgreSQL that is the question? Noerr Linux - Software 17 06-02-2002 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration