![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
show databases; .... |
#2
| |||
| |||
|
|
I have a database in MYSQL that has a semicolon on the end. ie: show databases; ... db1 db2 mytestdb; db3 ... I can't seem to drop this database, since the semicolon is part of the name. I've tried escaping it and passing the database name as a quoted string, neither of which worked. Does anyone know the syntax I'd need to drop this database? |
#3
| |||
| |||
|
|
I have a database in MYSQL that has a semicolon on the end. ie: show databases; ... db1 db2 mytestdb; db3 ... I can't seem to drop this database, since the semicolon is part of the name. I've tried escaping it and passing the database name as a quoted string, neither of which worked. Does anyone know the syntax I'd need to drop this database? Thanks! b |
#4
| |||
| |||
|
|
On Mon, 07 Jan 2008 15:42:11 +0100, Reacher <brandon.g.jo... (AT) gmail (DOT) com> * wrote: I have a database in MYSQL that has a semicolon on the end. *ie: show databases; ... db1 db2 mytestdb; db3 ... I can't seem to drop this database, since the semicolon is part of the name. *I've tried escaping it and passing the database name as a quoted string, neither of which worked. *Does anyone know the syntax I'd need to drop this database? DROP DATABASE `mytestdb;`; Notice the backticks (`) instead of single quotes ('). -- Rik Wasmus |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |