r8997: add directory
[clsql.git] / db-mysql / mysql-sql.lisp
index 87b78f3f4f5757414c76976d1a0bcc5d0fcef7b4..2a0ba822ba9d17e7a95c6981f12595122502571d 100644 (file)
                 (format nil "database-create failed: ~A" output))
          t))))
 
-(defmethod database-destory (connection-spec (type (eql :mysql)))
+(defmethod database-destroy (connection-spec (type (eql :mysql)))
   (destructuring-bind (host name user password) connection-spec
     (multiple-value-bind (output status)
-       (clsql-base-sys:command-output "mysqladmin drop -u~A -p~A -h~A ~A"
+       (clsql-base-sys:command-output "mysqladmin drop -f -u~A -p~A -h~A ~A"
                                       user password 
                                       (if host host "localhost")
                                       name)