LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-18-2004, 04: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, 06:30 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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



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

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

All times are GMT -5. The time now is 10:52 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