Forum: Typo MySQL database... exists or not?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Hal Fulton (Guest)
on 2006-06-13 00:23
(Received via mailing list)
OK, I did a 'drop database'... it seemed to work.

Should I have dropped all the tables first??

Anyway, if I try to drop it again, it tells me
it can't drop it, it doesn't exist.

If I try to restore my database (which first of all
does a 'create database') it tells me it can't
create it, it already exists.


Any ideas?


[root@www typo]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 32 to server version: 4.1.13-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> drop database typo;
ERROR 1008: Can't drop database 'typo'; database doesn't exist
mysql> commit;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
[root@www typo]# mysql <backup3.out
ERROR 1007 at line 1: Can't create database 'TYPO'; database exists
[root@www typo]#
701a6b92a683ebd0432046c28fef8fa5?d=identicon&s=25 Daejuan J. (daejuanj)
on 2006-06-13 01:29
(Received via mailing list)
It looks like you didn't drop anything. Linux & Unix software (unless
it's written to be case-insensitive) is always case sensitive. So typo
and TYPO are not the same.

You want to 'drop database TYPO'.
This topic is locked and can not be replied to.