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

공지사항

인기 글

태그

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

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
modric

dev log

DEV/Linux

[CentOS 7] Mariadb 원격접속허용

2017. 8. 24. 15:47
# 에러
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

    티스토리툴바