소스 검색

Update mysql5.5.sh

MoeClub 2 년 전
부모
커밋
0a69473e09
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mysql5.5.sh

+ 1 - 0
mysql5.5.sh

@@ -37,6 +37,7 @@ sed -i 's/\[mysqld\]/\[mysqld\]\nbind-address = 127.0.0.1/' /etc/my.cnf
 sleep 10
 
 "$MySQLRoot/bin/mysqladmin" -u root password ""
+"$MySQLRoot/bin/mysql" -uroot -Dmysql -e 'DELETE FROM user WHERE Host<>"localhost" OR User=""; FLUSH privileges;'
 
 ln -sf "$MySQLRoot/bin/mysql" /usr/local/bin/mysql