Skip to content

Commit 2f0e8a3

Browse files
author
msvensson@pilot.mysql.com
committed
Merge pilot.mysql.com:/data/msvensson/mysql/bug31167/my50-bug31167
into pilot.mysql.com:/data/msvensson/mysql/bug31167/my51-bug31167
2 parents f26d69e + e068e99 commit 2f0e8a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/mysql_system_tables_data.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ DROP TABLE tmp_db;
1414
-- Fill "users" table with default users allowing root access
1515
-- from local machine if "users" table didn't exist before
1616
CREATE TEMPORARY TABLE tmp_user LIKE user;
17+
set @hostname= @@hostname;
1718
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);
18-
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);
19+
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);
1920
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);
2021
INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0;
2122
DROP TABLE tmp_user;

0 commit comments

Comments
 (0)