Skip to content

2009.02.07 17:16

mysql 외부접속

조회 수 8764 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
mysql 접속!
mysql>show databases;
+--------------------+
| Database                |
+--------------------+
| information_schema |
| mysql                     |
+--------------------+

최초에 두개의 DB만 존재한다.
(ubuntu 7.10 server, lamp server설치 default상태 다른 환경은 몰러유~)


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

을 실행하여 DB를 선택한다.


mysql>show tables;
+---------------------------+
| Tables_in_mysql                |
+---------------------------+
| columns_priv                     |
| db                                   |
| func                                 |
| help_category                   |
| help_keyword                   |
| help_relation                    |
| help_topic                        |
| host                                |
| proc                                |
| procs_priv                        |
| tables_priv                        |
| time_zone                         |
| time_zone_leap_second      |
| time_zone_name                |
| time_zone_transition           |
| time_zone_transition_type    |
| user                                 |
+---------------------------+

이 table들 중에 user라는 테이블에 접속권한을 가지는 유저들이 등록되어 있다.


mysql>select host, user from user;
+-----------+------------------+
| host          | user                    |
+-----------+------------------+
| 127.0.0.1    | root                     |
| localhost   | debian-sys-maint |
| localhost   | root                     |
| server명    | root                     |
+-----------+------------------+

요렇게 되어 있는 부분중에 127.0.0.1 이 부분의 host를 외부에서 접속할 수있겠금 변경한다.
% <-- 모든 외부접속 허용
000.000.000.000 <-- 특정 아이피 접속허용
000.000.000.%   <-- 특정 아이피 대역 접속허용으로 변경


mysql>update user set host = '원하는 설정값' where user ='root' and host='127.0.0.1';

위명령은 host 에 127.0.0.1 있는경우 적용된다


  1. MySQL 데이터베이스의 생성과 삭제

    Date2008.10.30 ByADMINPLAY Views7667
    Read More
  2. mysql 설치 시 LinuxThreads 에러

    Date2008.10.30 ByADMINPLAY Views6629
    Read More
  3. mysql 테이블이 손상된 경우 myisamchk

    Date2008.10.30 ByADMINPLAY Views7669
    Read More
  4. 초기 mysql root 패스워드 설정 및 비번 변경과 root 비번 잃어 버렸을 경우 변경하는 방법

    Date2008.10.30 ByADMINPLAY Views11290
    Read More
  5. mysql 자주쓰는 명령어 정리

    Date2008.10.30 ByADMINPLAY Views7168
    Read More
  6. mysql data디렉토리 변경

    Date2008.10.30 ByADMINPLAY Views9267
    Read More
  7. Mysql 버전별 케릭터셋 지원여부 (euckr / utf-8)

    Date2008.11.04 ByADMINPLAY Views7834
    Read More
  8. mysql root에 아무권한이 없어 작업이 불가능한 경우

    Date2008.11.11 ByADMINPLAY Views7186
    Read More
  9. Mysql max_connection 늘리기

    Date2008.11.11 ByADMINPLAY Views8259
    Read More
  10. MySQL 테이블 복구하기 (쉴 프롬프트에서..)

    Date2008.11.11 ByADMINPLAY Views7456
    Read More
  11. mysql 자세한 복구 방법 #1

    Date2008.11.11 ByADMINPLAY Views6752
    Read More
  12. mysql 자세한 복구 방법 #2

    Date2008.11.11 ByADMINPLAY Views7385
    Read More
  13. InnoDB 와 MyISAM

    Date2008.12.14 ByADMINPLAY Views8593
    Read More
  14. Mysql 버전확인

    Date2008.12.23 ByADMINPLAY Views9878
    Read More
  15. mysql 외부접속

    Date2009.02.07 ByADMINPLAY Views8764
    Read More
  16. mysql5.0 계정 생성시 ssl_cipher 에러

    Date2009.03.03 ByADMINPLAY Views9563
    Read More
  17. SSL을 이용한 MySQL 연결

    Date2009.03.03 ByADMINPLAY Views10807
    Read More
  18. MySQL max connection 값 변경

    Date2009.03.09 ByADMINPLAY Views9713
    Read More
  19. mysqli 컴파일중 re2c 에러발생!

    Date2009.03.17 ByADMINPLAY Views9408
    Read More
  20. slow Query 조사

    Date2009.03.17 ByADMINPLAY Views9054
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234