1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Add mtr database

This commit is contained in:
msvensson@pilot.mysql.com
2008-04-02 10:06:36 +02:00
parent 201ce48d5d
commit d4eecb9677
10 changed files with 20 additions and 2 deletions

View File

@ -2041,7 +2041,7 @@ sub mysql_install_db {
my $bootstrap_sql_file= "$opt_vardir/tmp/bootstrap.sql";
# Use the mysql database for system tables
mtr_tofile($bootstrap_sql_file, "use mysql");
mtr_tofile($bootstrap_sql_file, "use mysql\n");
# Add the offical mysql system tables
# for a production system
@ -2067,7 +2067,11 @@ sub mysql_install_db {
# Remove anonymous users
mtr_tofile($bootstrap_sql_file,
"DELETE FROM mysql.user where user= '';");
"DELETE FROM mysql.user where user= '';\n");
# Create mtr database
mtr_tofile($bootstrap_sql_file,
"CREATE DATABASE mtr;\n");
# Log bootstrap command
my $path_bootstrap_log= "$opt_vardir/log/bootstrap.log";