Add mtr database
This commit is contained in:
parent
bd02573610
commit
b832654089
@ -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";
|
||||
|
@ -1,6 +1,7 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
show tables in mysql;
|
||||
|
@ -47,6 +47,7 @@ create database mysqltest;
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
mysqltest
|
||||
test
|
||||
@ -58,6 +59,7 @@ drop database mysqltest;
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
drop database mysqltest;
|
||||
|
@ -9,11 +9,13 @@ create user mysqltest_3@localhost;
|
||||
create user mysqltest_3;
|
||||
select * from information_schema.SCHEMATA where schema_name > 'm';
|
||||
CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
|
||||
NULL mtr latin1 latin1_swedish_ci NULL
|
||||
NULL mysql latin1 latin1_swedish_ci NULL
|
||||
NULL test latin1 latin1_swedish_ci NULL
|
||||
select schema_name from information_schema.schemata;
|
||||
schema_name
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
show databases like 't%';
|
||||
@ -22,6 +24,7 @@ test
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
show databases where `database` = 't%';
|
||||
@ -351,6 +354,7 @@ create view v0 (c) as select schema_name from information_schema.schemata;
|
||||
select * from v0;
|
||||
c
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
explain select * from v0;
|
||||
|
@ -259,6 +259,7 @@ prepare stmt4 from ' show databases ';
|
||||
execute stmt4;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
prepare stmt4 from ' show tables from test like ''t2%'' ';
|
||||
|
@ -7,6 +7,7 @@ show schemas;
|
||||
Database
|
||||
information_schema
|
||||
foo
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
drop schema foo;
|
||||
|
@ -140,6 +140,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
|
||||
def SCHEMATA SCHEMA_NAME Database 253 64 18 N 1 0 8
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
show databases like "test%";
|
||||
|
@ -52,5 +52,6 @@ master-bin.000001 # Query # # drop database testing_1
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
|
@ -21,6 +21,7 @@ COUNT(*)
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
mysqltest
|
||||
test
|
||||
|
@ -9,6 +9,7 @@ CREATE DATABASE test_ignore;
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
test_ignore
|
||||
@ -33,6 +34,7 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
USE test;
|
||||
|
Loading…
x
Reference in New Issue
Block a user