mysql default setting(Mysql 디폴트 설정)

 

mysql 을 처음 설치하면 기본으로 root passwd 는 엔터이고
유저명이 없는 아이디도 존재한다.

보안상 user 명이 없는 유저는 삭제하고 root에도 비밀번호를 걸어줘야한다..

필요하다면 사용자를 추가해줘도 되고^^

~]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.? Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 5.0.26-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> \u mysql
Database changed
mysql> update user set Password=password(<a href="mailto:'rlaalsgur!@#'">'root비밀번호'</a>) where User ='root';
mysql> delete from user where User ='';
mysql> flush privileges;

 

This entry was posted in Database and tagged , , , , , , . Bookmark the permalink.

댓글 남기기