programing

MariaDB Console로 백업할 수 없음

easyjava 2023. 9. 16. 10:07
반응형

MariaDB Console로 백업할 수 없음

데이터베이스 백업을 시도하고 있습니다.Windows 10에서 MariaDB 클라이언트 콘솔을 열고 root password를 입력한 다음 다음과 같이 입력합니다.

MariaDB [(none)]> mysqldump database_name > backup.sql;

다음 오류를 반환합니다.

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysqldump database_name > backup.sql' at line 1

제가 무엇을 잘못했나요?

사용해보기

mysqldump -u root -p database_name > file.sql

데이터베이스(새 CLI 창)에 로그인하기 전에 입력합니다.이 명령 뒤에 루트 암호를 입력해야 합니다.

컴퓨터에 설치한 방식에 따라 CMD.exe 또는 Git Bash와 같은 CLI에서 이 명령을 실행할 수 있어야 합니다.이게 도움이 됐으면 좋겠습니다.

언급URL : https://stackoverflow.com/questions/37779602/cant-backup-with-mariadb-console

반응형