Commit af18865e authored by unknown's avatar unknown
Browse files

A fix (bug #6000 No "@%"-accounts after install).


scripts/mysql_install_db.sh:
  A fix (bug #6000 No "@%"-accounts after install).
    Why do we need those REPLACE queries?
    Removed $hostname queries for windows builds.
parent ec8779e9
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -275,15 +275,17 @@ then
  c_u="$c_u )"
  c_u="$c_u comment='Users and global privileges';"

  if test "$windows" = 1
  then
    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 (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 ('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);
  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    
fi

if test ! -f $mdata/func.frm
then