푸

mysql 원격접속방법

텔넷으로 접속해서
mysql -uroot
mysql> use mysql;
Here’s an example of the output on my database, which is pretty much the default settings. Note that ubuntuserv is the hostname of my server.
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select host,user from user;
+—————+——————+
| host | user |
+—————+——————+
| ubuntuserv | root |
| localhost | debian-sys-maint |
| localhost | root |
+—————+——————+
3 rows in set (0.00 sec)
Now I’ll update the ubuntuserv host to use the wildcard, and then issue the command to reload the privilege tables. If you are running this command, substitute the hostname of your box for ubuntuserv.

mysql> update user set host='%' where user='디비계정아이디';
(이렇게 하면 200%해킹당함 ㅡㅡ)
mysql> update user set host='아이피나 localhost' where user='디비계정아이디';
(이렇게해야함)
 
mysql> flush privileges;
mysql> quit;
 
끝입니다
 
도움주신 불당님께 감사드립니다. ^^
[이 게시물은 관리자님에 의해 2011-10-31 17:27:00 MySQL에서 이동 됨]

댓글 7개

해킹 당하기 딱 좋네요. -_-;
그러면 200% 해킹 됩니다. host='접속하려는 ip 또는 hostname'이 들어가야 합니다.
아 알겠습니다 ㅎㅎ 생큐생큐 ^^
원격접속방법..멋집니다..
음.. 제가 지금꺼 하게 해킹을 유도했네요 ㅡㅡ;;;
100%는 완벽하다는 말인데
200%는 무슨 뜻이지?
아~이건 몰랐던 건데..좋은 정보 감사합니다.^^
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,187건
+
제목 글쓴이 날짜 조회
09-10-03 조회 3,180
08-02-03 조회 3,481
08-02-03 조회 3,419
08-01-30 조회 4,932
08-01-29 조회 2,804
08-01-27 조회 3,941
08-01-27 조회 2,875
08-01-27 조회 3,149
08-01-26 조회 8,702
08-01-26 조회 3,254
08-01-24 조회 5,307
08-01-23 조회 3,649
08-01-21 조회 3,692
08-01-21 조회 3,438
08-01-21 조회 3,460
08-01-18 조회 3,969
08-01-18 조회 4,605
08-01-18 조회 6,766
08-01-18 조회 4,046
08-01-17 조회 4,035
08-01-17 조회 3,856
08-01-16 조회 3,118
08-01-15 조회 3,498
08-01-14 조회 6,752
08-01-12 조회 4,349
08-01-12 조회 3,915
08-01-12 조회 4,627
08-01-12 조회 3,868
08-01-12 조회 4,162
08-01-11 조회 7,192
08-01-10 조회 3,936
08-01-08 조회 3,469
08-01-08 조회 3,949
08-01-06 조회 2,736
08-01-04 조회 1.1만
08-01-02 조회 5,816
07-12-28 조회 4,751
07-12-24 조회 3,170
07-12-21 조회 4,869
07-12-17 조회 3,651
07-12-14 조회 5,023
07-12-13 조회 6,458
07-12-10 조회 5,100
07-12-10 조회 3,973
07-12-10 조회 4,371
07-12-08 조회 3,733
07-12-07 조회 4,067
07-12-07 조회 3,197
07-12-06 조회 4,941
07-12-04 조회 3,523
07-12-04 조회 3,663
07-12-03 조회 3,430
07-12-03 조회 4,455
07-12-02 조회 3,286
07-11-30 조회 4,027
07-11-30 조회 5,258
07-11-30 조회 5,853
07-11-29 조회 3,707
07-11-27 조회 4,164
07-11-27 조회 5,938
07-11-27 조회 4,038
07-11-26 조회 3,160
07-11-23 조회 4,618
07-11-23 조회 4,349
07-11-22 조회 5,252
07-11-21 조회 3,473
07-11-21 조회 3,599
07-11-21 조회 1.2만
07-11-20 조회 4,980
07-11-16 조회 4,835
07-11-13 조회 4,500
07-11-12 조회 4,222
07-11-10 조회 5,602
07-11-08 조회 6,765
07-11-08 조회 5,092
07-11-07 조회 4,560
07-11-07 조회 5,011
07-11-06 조회 3,559
07-11-06 조회 3,922
07-11-05 조회 5,257
07-11-02 조회 4,138
07-11-01 조회 5,604
07-10-31 조회 3,294
07-10-30 조회 3,761
07-10-29 조회 3,750
07-10-26 조회 5,071
07-10-25 조회 5,156
07-10-25 조회 3,936
07-10-24 조회 3,932
07-10-24 조회 4,252
07-10-24 조회 4,109
07-10-24 조회 3,384
07-10-24 조회 3,498
07-10-23 조회 6,140
07-10-23 조회 5,533
07-10-22 조회 4,267
07-10-22 조회 3,642
07-10-22 조회 4,184
07-10-22 조회 3,764
07-10-19 조회 4,821