Skip to content

2009.02.07 17:16

mysql 외부접속

조회 수 8859 추천 수 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. mysqli 컴파일중 re2c 에러발생!

    Date2009.03.17 ByADMINPLAY Views9481
    Read More
  2. mysqli 동적모듈 추가

    Date2009.11.01 ByADMINPLAY Views9508
    Read More
  3. mysqld: Sort aborted ( mysqld-nt : Sort aborted )

    Date2009.08.31 ByADMINPLAY Views10027
    Read More
  4. mysqladmin 사용하기 DB연결수 및 세부정보 알아내기

    Date2009.06.25 ByADMINPLAY Views6943
    Read More
  5. mysql5.0 계정 생성시 ssl_cipher 에러

    Date2009.03.03 ByADMINPLAY Views9668
    Read More
  6. MySQL 특정 테이블만 백업하기

    Date2014.01.06 ByADMINPLAY Views8887
    Read More
  7. MySQL 튜닝 값을 탐지해주는 유용한 툴

    Date2012.02.23 ByADMINPLAY Views22495
    Read More
  8. MySQL 튜닝 query cache 설정

    Date2011.04.09 ByADMINPLAY Views19538
    Read More
  9. mysql 테이블이 손상된 경우 myisamchk

    Date2008.10.30 ByADMINPLAY Views7781
    Read More
  10. MySQL 테이블명 대소문자 구분안하기

    Date2013.01.21 Byl2zeo Views11127
    Read More
  11. MySQL 테이블 복구하기 (쉴 프롬프트에서..)

    Date2008.11.11 ByADMINPLAY Views7591
    Read More
  12. MySQL 클러스터

    Date2009.11.19 ByADMINPLAY Views10049
    Read More
  13. mysql 쿼리문 모음

    Date2009.06.02 ByADMINPLAY Views13507
    Read More
  14. MySQL 최대성능 올리기

    Date2009.07.19 ByADMINPLAY Views8012
    Read More
  15. mysql 초간단 설치

    Date2009.10.15 ByADMINPLAY Views6799
    Read More
  16. mysql 자주쓰는 명령어 정리

    Date2008.10.30 ByADMINPLAY Views7266
    Read More
  17. mysql 자세한 복구 방법 #2

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

    Date2008.11.11 ByADMINPLAY Views6864
    Read More
  19. mysql 외부접속

    Date2009.02.07 ByADMINPLAY Views8859
    Read More
  20. MySQL 외부접속

    Date2009.06.11 ByADMINPLAY Views14836
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234