MySQL setting to approve access from other client


(Server)

mysql>use mysql

mysql>INSERT INTO user (Host, User, Password) VALUES ('localhost','new_id',password('passwd'));

mysql>INSERT INTO user (Host, User, Password) VALUES ('%','new_id',password('hadoop'));

mysql> create database hadoop;

mysql> grant all privileges on hadoop.* to new_id@localhost identified by 'passwd';

mysql> grant all privileges on hadoop.* to new_id@'%' identified by 'passwd';

mysql> flush privileges;

done!!!

(Client)
# mysql -h server_ip -u new_id -p

Now you should be able to access to MySQL server.


댓글

이 블로그의 인기 게시물

구어체 표현 85가지

Debian Lenny install-including wireless