#20120326-02 :: Debian Linux :: MySQL 외부 접근 설정
개발환경의 DB 정보를 변경했으나 접속 실패
MySQL의 설정에 들어가서
bind-address = 127.0.0.1 항목에 주석 처리
# vi /etc/mysql/my.cnf
>> # bind-address = 127.0.0.1
# /etc/init.d/mysql restart
위와 같이 한 후 서버를 재실행하였으나 실패
그러나 에러 메세지는 바뀌었음
MySQL 콘솔에 접속하여 root 계정이 외부에서 접근 가능하도록 user 정보를 수정한다.
# mysql -u root -p
Enter password:
mysql> show databases;
mysql> use mysql;
mysql> show tables;
mysql> select host, user in user;
mysql> update user set host='%' where user='root' and host='127.0.0.1';
mysql> exit;
# /etc/init.d/mysql restart
'working diary' 카테고리의 다른 글
#20120328-02 :: iOS :: CATransition 효과 (0) | 2012.03.28 |
---|---|
#20120328-01 :: iOS :: 화면전환 딜레이 문제 (0) | 2012.03.28 |
#20120326-01 :: Mac OS X Lion :: MacPorts 업데이트 및 mysql-python 설치 (0) | 2012.03.26 |
Subversion Locale Warning (0) | 2012.01.10 |
#20110422-04 :: Debian Linux :: sudo 명령이 안될 때... (0) | 2011.04.22 |