#4 Improvement to deleting instance. Add 'if exists' to SQL

closed
nobody
None
5
2008-11-19
2008-11-14
Kasper
No

When trying to delete an instance that was not successfully created I got this output in the typo3start.log file:

09:31:35 [Command] - C:\TYPO3_4.2.3\MySQL\bin\mysql.exe "--defaults-file=C:\TYPO3_4.2.3\MySQL\my.ini" --port=8501 -u root --password="" -e "drop database GQuiz"
09:31:35 [Error] - ERROR 1008 (HY000) at line 1: Can't drop database 'gquiz'; database doesn't exist

The error can be turned into a 'note' by using SQL 'drop database if exists ...' (instead of just 'drop database ...'), confer http://dev.mysql.com/doc/refman/5.0/en/drop-table.html

Discussion

    • status: open --> closed
     
  • Bug is fixed with new version of 4.2.3 and 4.3.0alpha1