Musql + Mariadb
[백업]
mysqldump -u 사용자명 -p 데이터베이스명 > 경로/데이터베이스명.sql
[복구]
musql -u 사용자명 -p 데이터베이스명 < 경로/데이터베이스명.sql
C:\>Program Files>cd MySQL
액세스가 거부되었습니다.
C:\>cd "Program Files"
C:\Program Files>cd MySQL
C:\Program Files\MySQL>cd "MySQL Server 8.0"
C:\Program Files\MySQL\MySQL Server 8.0>cd bin
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqldump -u apink -p shop > shop.sql
액세스가 거부되었습니다.
C:\Program Files\MySQL\MySQL Server 8.0\bin>./mysqldump -u apink -p shop > c:\shop.sql
액세스가 거부되었습니다.
C:\Program Files\MySQL\MySQL Server 8.0\bin>./mysqldump -u apink -p shop > c:\backup\shop.sql
'.'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqldump -u apink -p shop > c:\backup\shop.sql
Enter password: *******
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -u apink -p shop <c:\backup\shop.sql
Enter password: *******
backup폴더 (모든권한 허용해야함)
728x90
'Database > MySQL' 카테고리의 다른 글
[Mysql] 데이터 join, sum 예제 (0) | 2022.07.07 |
---|---|
[Mysql] 데이터 합계, 내림차순, 오름차순 정렬 등 (0) | 2022.07.05 |
[Mysql] 테이블 생성하기 / select count(*) (0) | 2022.07.04 |
[MySql] alter table 테이블명 modify 추가할 필드명 text not null; (0) | 2022.07.04 |
[Mysql] 데이터 수정하기 update (0) | 2022.07.04 |
댓글