create_tables: Fix MySQL commands for when the apidb DB is not present

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-13 16:18:28 +02:00
parent 658056bd91
commit d7bcdc23ec

View File

@@ -5,7 +5,7 @@ echo NOTE: It is ok for this to fail if the user already exists
echo there does not appear to be a way to create a user only echo there does not appear to be a way to create a user only
echo if they do not exist so we have to live with a potential echo if they do not exist so we have to live with a potential
echo error after we try. echo error after we try.
mysql -p -u root apidb < create_user.sql mysql -p -u root < create_user.sql
echo Create the apidb database, and tables echo Create the apidb database, and tables
cat create_apidb_base.sql appdb_tables.sql \ cat create_apidb_base.sql appdb_tables.sql \
@@ -13,4 +13,4 @@ cat create_apidb_base.sql appdb_tables.sql \
user_privs.sql app_category.sql \ user_privs.sql app_category.sql \
maintainers.sql buglinks.sql monitors.sql \ maintainers.sql buglinks.sql monitors.sql \
error_log.sql distributions.sql testResults.sql \ error_log.sql distributions.sql testResults.sql \
| mysql -p -u root apidb | mysql -p -u root