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,821
18년 전 조회 2,826
18년 전 조회 1,864
18년 전 조회 1,738
18년 전 조회 4,930
18년 전 조회 1,974
18년 전 조회 2,016
18년 전 조회 2,028
18년 전 조회 2,153
18년 전 조회 3,812
18년 전 조회 1,832
18년 전 조회 1,706
18년 전 조회 1,533
18년 전 조회 2,037
18년 전 조회 2,075
18년 전 조회 3,847
18년 전 조회 2,178
18년 전 조회 3,320
18년 전 조회 4,934
18년 전 조회 3,066
18년 전 조회 8,236
18년 전 조회 4,255
18년 전 조회 2,947
18년 전 조회 1,710
18년 전 조회 2,820
18년 전 조회 5,233
18년 전 조회 5,406
18년 전 조회 2,281
18년 전 조회 4,540
18년 전 조회 4,287
18년 전 조회 4,329
18년 전 조회 2,459
18년 전 조회 4,387
18년 전 조회 2,370
18년 전 조회 3,473
18년 전 조회 5,121
18년 전 조회 2,137
18년 전 조회 3,597
18년 전 조회 1,826
18년 전 조회 2,922
18년 전 조회 1,875
18년 전 조회 2,915
18년 전 조회 2,741
18년 전 조회 1,760
18년 전 조회 1,696
18년 전 조회 1,945
18년 전 조회 2,447
18년 전 조회 2,232
18년 전 조회 2,576
18년 전 조회 5,097
18년 전 조회 1,999
18년 전 조회 1,433
18년 전 조회 1,557
18년 전 조회 1,530
18년 전 조회 1,251
18년 전 조회 1,252
18년 전 조회 1,597
18년 전 조회 1,546
18년 전 조회 2,543
18년 전 조회 1,420
18년 전 조회 1,799
18년 전 조회 2,276
18년 전 조회 1,461
18년 전 조회 3,026
18년 전 조회 1,464
18년 전 조회 1,833
18년 전 조회 1,682
18년 전 조회 1,631
18년 전 조회 1,422
18년 전 조회 1,242
18년 전 조회 1,856
18년 전 조회 1,289
18년 전 조회 3,809
18년 전 조회 1,910
18년 전 조회 1,987
18년 전 조회 1,307
18년 전 조회 2,054
18년 전 조회 1,289
18년 전 조회 1,360
18년 전 조회 1,200
18년 전 조회 1,185
18년 전 조회 1,271
18년 전 조회 2,771
18년 전 조회 1,733
18년 전 조회 1,817
18년 전 조회 1,372
18년 전 조회 2,042
18년 전 조회 1,684
18년 전 조회 1,667
18년 전 조회 1,885
18년 전 조회 1,180
18년 전 조회 1,606
18년 전 조회 2,426
18년 전 조회 1,318
18년 전 조회 1,490
18년 전 조회 1,753
18년 전 조회 1,364
18년 전 조회 1,168
18년 전 조회 1,386
18년 전 조회 1,713