https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html
MySQL :: MySQL 8.0 Reference Manual :: 4.5.4 mysqldump — A Database Backup Program
4.5.4 mysqldump — A Database Backup Program The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original database object definitions and table data. It dumps one or more MySQL da
dev.mysql.com
Mysqldump
mysqldump 클라이언트 유틸리티는 논리적 백업을 수행하여 원본 데이터베이스 개체 정의 및 테이블
데이터를 재생성하기 위해 실행할 수 있는 일련의 SQL 문을 생성합니다.
백업 또는 다른 SQL 서버로의 전송을 위해 하나 이상의 MySQL 데이터베이스를 덤프합니다.
mysqldump 명령 은 CSV, 기타 구분된 텍스트 또는 XML 형식으로 출력을 생성할 수도 있습니다.
wordpress 백업/복원하기
백업시
mysqldump -u 유저 -p > 아웃풋.sql이 기본이고
특정 테이블을 하고싶으면 특정 테이블을 적어주시면 됩니다.
mysqldump -u root -p wordpress > 0316word.sql
복원시
mysql -u root -p wordpress < 0315.sql
'Programming' 카테고리의 다른 글
Bat 파일 현재위치 확인하는 방법 (0) | 2023.04.03 |
---|---|
powershell로 입력받은 값 csv DB에서 찾기 (0) | 2023.03.19 |
Iexpress 활용해서 ps1 파일 exe 만들기 (0) | 2023.03.15 |
Target CNF (stable/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:60 에러 (0) | 2023.03.13 |
Crontab으로 오래된 파일 일괄 삭제하기 (0) | 2023.02.21 |