개발자료/SQL

mysql 원격접속 권한주기

구룡포과메기 2013. 10. 18. 17:50

mysql.exe 실행시 아래 오류가 뜰 경우 

Error 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)

대신 아래와 같이 실행

mysql -uroot -p

mysql> use mysql;

mysql> grant all privileges on *.* to 'account'@'%' identified by 'password';

mysql> flush privileges;