LinuxQuestions.org
Review your favorite Linux distribution.
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 05-18-2004, 05:13 AM   #1
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
mysql syntax question


Hi all,

Ive got this database "test.12", but i can't drop it because it contains a "."
Anyone knows how to do this?

ERROR 1064: You have an error in your SQL syntax near '.1' at line 1
 
Old 05-18-2004, 07:30 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
You've tried with single quotes as well?

mysql > DROP 'test.12'

If that doesn't work, you can always manually remove the database from /var/lib/mysql but that's not recommended.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 syntax problem Hydrap Linux - Software 1 08-11-2005 11:49 PM
Can't get pass this mysql syntax error Neruocomp Programming 5 07-24-2005 06:25 PM
Syntax question satimis Linux - Newbie 9 09-23-2004 08:47 AM
MySQL syntax issue michedlp Linux - Software 0 07-17-2004 11:04 AM
A Simple MySQL Query Question (I have Bad Syntax) bpk General 1 12-02-2003 10:04 PM


All times are GMT -5. The time now is 09:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration