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%는 무슨 뜻이지?
아~이건 몰랐던 건데..좋은 정보 감사합니다.^^
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
18년 전 조회 1,768
18년 전 조회 2,774
18년 전 조회 1,816
18년 전 조회 1,678
18년 전 조회 4,866
18년 전 조회 1,913
18년 전 조회 1,964
18년 전 조회 1,967
18년 전 조회 2,092
18년 전 조회 3,756
18년 전 조회 1,772
18년 전 조회 1,650
18년 전 조회 1,481
18년 전 조회 1,983
18년 전 조회 2,020
18년 전 조회 3,787
18년 전 조회 2,123
18년 전 조회 3,258
18년 전 조회 4,876
18년 전 조회 3,009
18년 전 조회 8,178
18년 전 조회 4,193
18년 전 조회 2,879
18년 전 조회 1,656
18년 전 조회 2,766
18년 전 조회 5,167
18년 전 조회 5,346
18년 전 조회 2,213
18년 전 조회 4,485
18년 전 조회 4,227
18년 전 조회 4,285
18년 전 조회 2,404
18년 전 조회 4,329
18년 전 조회 2,312
18년 전 조회 3,418
18년 전 조회 5,061
18년 전 조회 2,080
18년 전 조회 3,539
18년 전 조회 1,775
18년 전 조회 2,867
18년 전 조회 1,813
18년 전 조회 2,850
18년 전 조회 2,684
18년 전 조회 1,701
18년 전 조회 1,637
18년 전 조회 1,883
18년 전 조회 2,391
18년 전 조회 2,164
18년 전 조회 2,504
18년 전 조회 5,038
18년 전 조회 1,947
18년 전 조회 1,380
18년 전 조회 1,503
18년 전 조회 1,476
18년 전 조회 1,201
18년 전 조회 1,206
18년 전 조회 1,543
18년 전 조회 1,495
18년 전 조회 2,490
18년 전 조회 1,362
18년 전 조회 1,745
18년 전 조회 2,215
18년 전 조회 1,406
18년 전 조회 2,969
18년 전 조회 1,412
18년 전 조회 1,785
18년 전 조회 1,627
18년 전 조회 1,577
18년 전 조회 1,368
18년 전 조회 1,195
18년 전 조회 1,796
18년 전 조회 1,233
18년 전 조회 3,745
18년 전 조회 1,858
18년 전 조회 1,930
18년 전 조회 1,251
18년 전 조회 1,992
18년 전 조회 1,232
18년 전 조회 1,305
18년 전 조회 1,151
18년 전 조회 1,135
18년 전 조회 1,219
18년 전 조회 2,710
18년 전 조회 1,673
18년 전 조회 1,767
18년 전 조회 1,318
18년 전 조회 1,994
18년 전 조회 1,634
18년 전 조회 1,611
18년 전 조회 1,827
18년 전 조회 1,122
18년 전 조회 1,543
18년 전 조회 2,381
18년 전 조회 1,263
18년 전 조회 1,435
18년 전 조회 1,697
18년 전 조회 1,319
18년 전 조회 1,111
18년 전 조회 1,321
18년 전 조회 1,651