-- Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License, version 2.0, -- as published by the Free Software Foundation. -- -- This program is also distributed with certain software (including -- but not limited to OpenSSL) that is licensed under separate terms, -- as designated in a particular file or component or in included license -- documentation. The authors of MySQL hereby grant you an additional -- permission to link the program and your derivative works with the -- separately licensed software that they have included with MySQL. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License, version 2.0, for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -- -- The inital data for system tables of MySQL Server -- -- When setting up a "cross bootstrap" database (e.g., creating data on a Unix -- host which will later be included in a Windows zip file), any lines -- containing "@current_hostname" are filtered out by mysql_install_db. -- Get the hostname, if the hostname has any wildcard character like "_" or "%" -- add escape character in front of wildcard character to convert "_" or "%" to -- a plain character SELECT LOWER( REPLACE((SELECT REPLACE(@@hostname,'_','\_')),'%','\%') )INTO @current_hostname; -- Fill "db" table with default grants for anyone to -- access database 'test' and 'test_%' if "db" table didn't exist CREATE TEMPORARY TABLE tmp_db LIKE db; INSERT INTO tmp_db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y'); INSERT INTO tmp_db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y'); INSERT INTO db SELECT * FROM tmp_db WHERE @had_db_table=0; DROP TABLE tmp_db; -- Fill "user" table with default users allowing root access -- from local machine if "user" table didn't exist before CREATE TEMPORARY TABLE tmp_user LIKE user; INSERT INTO tmp_user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'mysql_native_password','','N'); REPLACE INTO tmp_user SELECT @current_hostname,'root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'mysql_native_password','','N' FROM dual WHERE @current_hostname != 'localhost'; REPLACE INTO tmp_user VALUES ('127.0.0.1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'mysql_native_password','','N'); REPLACE INTO tmp_user VALUES ('::1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'mysql_native_password','','N'); INSERT INTO tmp_user (host,user) VALUES ('localhost',''); INSERT INTO tmp_user (host,user) SELECT @current_hostname,'' FROM dual WHERE @current_hostname != 'localhost'; INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0; DROP TABLE tmp_user; CREATE TEMPORARY TABLE tmp_proxies_priv LIKE proxies_priv; INSERT INTO tmp_proxies_priv VALUES ('localhost', 'root', '', '', TRUE, '', now()); REPLACE INTO tmp_proxies_priv SELECT @current_hostname, 'root', '', '', TRUE, '', now() FROM DUAL WHERE LOWER (@current_hostname) != 'localhost'; INSERT INTO proxies_priv SELECT * FROM tmp_proxies_priv WHERE @had_proxies_priv_table=0; DROP TABLE tmp_proxies_priv;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
SELinux | Folder | 0755 |
|
|
bulgarian | Folder | 0755 |
|
|
charsets | Folder | 0755 |
|
|
czech | Folder | 0755 |
|
|
danish | Folder | 0755 |
|
|
dutch | Folder | 0755 |
|
|
english | Folder | 0755 |
|
|
estonian | Folder | 0755 |
|
|
french | Folder | 0755 |
|
|
german | Folder | 0755 |
|
|
greek | Folder | 0755 |
|
|
hungarian | Folder | 0755 |
|
|
italian | Folder | 0755 |
|
|
japanese | Folder | 0755 |
|
|
korean | Folder | 0755 |
|
|
norwegian | Folder | 0755 |
|
|
norwegian-ny | Folder | 0755 |
|
|
polish | Folder | 0755 |
|
|
portuguese | Folder | 0755 |
|
|
romanian | Folder | 0755 |
|
|
russian | Folder | 0755 |
|
|
serbian | Folder | 0755 |
|
|
slovak | Folder | 0755 |
|
|
spanish | Folder | 0755 |
|
|
swedish | Folder | 0755 |
|
|
ukrainian | Folder | 0755 |
|
|
binary-configure | File | 1.13 KB | 0755 |
|
dictionary.txt | File | 24.98 KB | 0755 |
|
errmsg-utf8.txt | File | 495 KB | 0755 |
|
fill_help_tables.sql | File | 875.74 KB | 0755 |
|
innodb_memcached_config.sql | File | 3.87 KB | 0755 |
|
magic | File | 773 B | 0755 |
|
my-default.cnf | File | 1.1 KB | 0755 |
|
mysql-log-rotate | File | 844 B | 0755 |
|
mysql.server | File | 10.84 KB | 0755 |
|
mysql_security_commands.sql | File | 2.07 KB | 0755 |
|
mysql_system_tables.sql | File | 91.47 KB | 0755 |
|
mysql_system_tables_data.sql | File | 3.88 KB | 0755 |
|
mysql_test_data_timezone.sql | File | 10.58 KB | 0755 |
|
mysqld_multi.server | File | 1.04 KB | 0755 |
|