DduDduDduDdu
close
프로필 배경
프로필 로고

DduDduDduDdu

  • 분류 전체보기 (45)
    • Linux (17)
      • web server (3)
      • DB (2)
    • Git (4)
    • Docker (1)
    • Kubernetes (2)
      • chaos engineering (1)
    • CI&CD (9)
    • 문제해결 (8)
    • IaC (0)
    • 오픈소스 (2)
  • 홈
  • 태그
  • 방명록

MySQL 데이터베이스 백업 및 복원

[원격 to 로컬]AWS EC2 DB 원격 접속하여 백업 후 로컬 서버 복원1.백업mysqldump --column-statistics=0 -h 8.8.8.8 -u test -p test > dev.sql2.DB 생성create database bak_test;3.복원mysql -h 127.0.0.1 -u root -p bak_test [로컬 to 원격]기존에 생성한 백업 파일을 기반으로 해당 작업을 수행했다. 로컬 환경과 동일하게 DB를 생성해준다.1.DB 생성creata database bak;1.복원mysql -h 8.8.8.8 -u test -p bak MySQL 자동 백업 및 삭제1.sudo mkdir /root/db_backup2.sudo chmod 755 /root/db_backup3.sud..

  • format_list_bulleted Linux/DB
  • · 2024. 6. 21.
  • textsms

MariaDB Encoding 설정

데이터를 한글로 저장하려는 순간 다음 에러가 발생하였다. 영어로 저장할 때는 저장이 되다가 발생한 문제였기에 DB나 SpringBoot에서 CharacterSet에 대한 설정을 안해줘서 발생한 문제로 보인다.java.sql.SQLSyntaxErrorException: (conn=3031) Incorrect string value: '\xEC\x95\x84\xEC\x95\x84...' for column 'content' at row 1맨 아래에 해당 텍스트를 추가한다.1.vi /etc/my.cnf[client]default-character-set = utf8mb4[mysql]default-character-set = utf8mb4[mysqld]character-set-client-handshake = ..

  • format_list_bulleted Linux/DB
  • · 2024. 6. 8.
  • textsms
  • navigate_before
  • 1
  • navigate_next
전체 카테고리
  • 분류 전체보기 (45)
    • Linux (17)
      • web server (3)
      • DB (2)
    • Git (4)
    • Docker (1)
    • Kubernetes (2)
      • chaos engineering (1)
    • CI&CD (9)
    • 문제해결 (8)
    • IaC (0)
    • 오픈소스 (2)
최근 글
인기 글
최근 댓글
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바