summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2005-02-01 17:13:44 +0400
committerunknown <ram@gw.mysql.r18.ru>2005-02-01 17:13:44 +0400
commite729760daf7f05fefa9c570790f99c8c129c5778 (patch)
tree631d42d2862d0202bb9b49363ea03a076588f0e1 /scripts
parent0451add30115790949ec658dd1d4be89f5eabd23 (diff)
parenta701afe24e1275ac1d4b0b24e919c91be3756dd6 (diff)
downloadmariadb-git-e729760daf7f05fefa9c570790f99c8c129c5778.tar.gz
after merge fix up:
we should use REPLACE for $hostaname queries to avoid problems when $hostname=localhost.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysql_install_db.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh
index e35fcb80282..0b3742638f5 100644
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -281,10 +281,10 @@ then
INSERT INTO user (host,user) values ('localhost','');"
else
i_u="INSERT INTO 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','','','','',0,0,0);
- INSERT INTO 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','','','','',0,0,0);
+ REPLACE INTO 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','','','','',0,0,0);
INSERT INTO user (host,user) values ('localhost','');
- INSERT INTO user (host,user) values ('$hostname','');"
- fi
+ REPLACE INTO user (host,user) values ('$hostname','');"
+ fi
fi
if test ! -f $mdata/func.frm