diff options
author | unknown <msvensson@pilot.mysql.com> | 2007-10-03 11:46:55 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.mysql.com> | 2007-10-03 11:46:55 +0200 |
commit | 2807084702e77a1d0c10816dfd8493f4f20bcf52 (patch) | |
tree | 4deeafff139292ceda8c415b8ca38fa28e9d2eec /scripts | |
parent | d8aad9e15203d4d68259597979a17d64554fb80b (diff) | |
parent | ad295bcb034b192e59edd23ad25c0f4ad6519ceb (diff) | |
download | mariadb-git-2807084702e77a1d0c10816dfd8493f4f20bcf52.tar.gz |
Merge pilot.mysql.com:/data/msvensson/mysql/bug31167/my51-bug31167
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-new-maint
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_system_tables_data.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mysql_system_tables_data.sql b/scripts/mysql_system_tables_data.sql index 07aa932cda2..13cff13f48d 100644 --- a/scripts/mysql_system_tables_data.sql +++ b/scripts/mysql_system_tables_data.sql @@ -14,8 +14,9 @@ DROP TABLE tmp_db; -- Fill "users" table with default users allowing root access -- from local machine if "users" table didn't exist before CREATE TEMPORARY TABLE tmp_user LIKE user; +set @hostname= @@hostname; 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','','','','',0,0,0,0); -REPLACE INTO tmp_user VALUES (@@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','','','','',0,0,0,0); +REPLACE INTO tmp_user VALUES (@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','','','','',0,0,0,0); 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','','','','',0,0,0,0); INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0; DROP TABLE tmp_user; |