[Lxr-dev] [ lxr-Patches-591193 ] drop database if exists in initdb-mysql
Brought to you by:
ajlittoz
From: <no...@so...> - 2002-08-05 17:06:46
|
Patches item #591193, was opened at 2002-08-05 10:06 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390119&aid=591193&group_id=27350 Category: DB backends Group: Bugfix Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: drop database if exists in initdb-mysql Initial Comment: At least in the version used here (3.23.49), mysql accepts "drop database if exists" (as stated in the mysql documentation), but does not accept "drop if exists database". --- initdb-mysql~ Mon Aug 5 18:40:29 2002 +++ initdb-mysql Mon Aug 5 18:40:29 2002 @@ -1,7 +1,7 @@ /* Read this into mysql with "\. initdb-mysql" when logged in as root to delete the old lxr database and create a new */ -drop if exists database lxr; +drop database if exists lxr; create database lxr; use lxr; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390119&aid=591193&group_id=27350 |