[CentOS 7] Mariadb 원격접속허용

2017. 8. 24. 15:47·DEV/Linux
# 에러
Host 'xxx.xxx.xxx.xxx' is not allowed to connect to this MariaDB server

# iptable 추가

vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
service iptables restart
# Mariadb 접속
/usr/local/mysql/bin/mysql -u root -p
INSERT INTO mysql.user (host,user,password) VALUES ('xxx.xxx.xxx.xxx','root',password('패스워드'));
GRANT ALL PRIVILEGES ON *.* TO 'root'@'xxx.xxx.xxx.xxx';
FLUSH PRIVILEGES;
# ssl_cipher, x509_issuer, x509_subject, authentication_string 에러시
INSERT INTO mysql.user (host,user,password,ssl_cipher, x509_issuer, x509_subject, authentication_string) VALUES ('xxx.xxx.xxx.xxx','root',password('패스워드'),'','','','');
GRANT ALL PRIVILEGES ON *.* TO 'root'@'111.222.33.44';
FLUSH PRIVILEGES;
# error 1045
ERROR 1045 (28000): Access denied for user 'testuser'@'xxx.xxx.xxx.xxx' (using password: YES)
비밀번호 확인할 것
저작자표시 비영리 변경금지 (새창열림)

'DEV > Linux' 카테고리의 다른 글

[CentOS 7] Maven 컴파일  (0) 2017.08.29
Linux war import  (0) 2017.08.24
[CentOS 7] Tomcat8 컴파일  (0) 2017.08.23
[CentOS 7] PHP 컴파일  (0) 2017.08.22
[CentOS 7] Apache 컴파일  (0) 2017.08.22
'DEV/Linux' 카테고리의 다른 글
  • [CentOS 7] Maven 컴파일
  • Linux war import
  • [CentOS 7] Tomcat8 컴파일
  • [CentOS 7] PHP 컴파일
modric
modric
  • modric
    dev log
    modric
  • 전체
    오늘
    어제
    • 분류 전체보기 (70)
      • DEV (58)
        • Linux (12)
        • JavaScript (5)
        • PHP (4)
        • MySql (4)
        • HTML (7)
        • CSS (9)
        • Spring (13)
        • flutter (1)
        • 오류 (2)
        • devOps (1)
      • 기타 (5)
      • 트렌드 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
    • HTML
    • CSS
    • PHP
    • JavaScript
    • Spring
    • Linux
  • 링크

    • 공부하는 소담아빠
    • 타올이
  • 공지사항

  • 인기 글

  • 태그

    팩토리얼
    linux
    제거
    update
    터치
    클릭
    js
    Android
    테두리
    exist
    iframe
    mariadb10
    mariadb 10
    Destination
    height
    factorial
    Safari
    centos7
    MYSQL
    크롬
    넘침
    lastinsertid
    centos 7
    ios
    php
    파란색
    100!
    build
    메타버스
    컴파일
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
modric
[CentOS 7] Mariadb 원격접속허용
상단으로

티스토리툴바