Skip to content

Commit 2cf0353

Browse files
committed
Bug #18415196 MYSQL_UPGRADE DUPLICATE KEY ERROR FOR MYSQL.USER FOR 5.5.35+, 5.6.15+, 5.7.3+
Merging from mysql-5.5 to mysql-5.6
2 parents b31759c + 7d90427 commit 2cf0353

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

scripts/mysql_system_tables_fix.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,7 @@ DROP PROCEDURE IF EXISTS mysql.count_duplicate_host_names;
634634
DELIMITER //
635635
CREATE PROCEDURE mysql.count_duplicate_host_names()
636636
BEGIN
637-
SET @duplicate_hosts=0;
638637
SET @duplicate_hosts=(SELECT count(*) FROM mysql.user GROUP BY user, lower(host) HAVING count(*) > 1 LIMIT 1);
639-
select @duplicate_hosts;
640638
IF @duplicate_hosts > 1 THEN
641639
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Multiple accounts exist for @user_name, @host_name that differ only in Host lettercase; remove all except one of them';
642640
END IF;

0 commit comments

Comments
 (0)