1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug#27783 mysql_install_db should be able to install again, preserving existing files.

- Allow mysql_install_db to be run a second time in the same
   datadir to create and fill any missing system tables
This commit is contained in:
msvensson@pilot.blaudden
2007-04-12 17:48:28 +02:00
parent cd2f78fdd8
commit 74dfba96e7
3 changed files with 20 additions and 18 deletions

View File

@@ -135,17 +135,6 @@ else
fi
fi
# Check that no previous MySQL installation exist
if test -f "$ldata/mysql/db.frm"
then
echo "FATAL ERROR: Found already existing MySQL system tables"
echo "in $ldata."
echo "If you are upgrading from a previous MySQL version you"
echo "should run '$bindir/mysql_upgrade', "
echo "to upgrade all tables for this version of MySQL"
exit 1;
fi
# Find SQL scripts needed for bootstrap
fill_help_tables="fill_help_tables.sql"
create_system_tables="mysql_system_tables.sql"