简体   繁体   中英

MysqlDump does not work in space seperated path

mysqldump cannot create sql file if there is an space in path provided like

K:/My Folder/backup.sql

while if i create in any folder where there is no space, it easily creates it like

K:/MyFolder/HisFolder/HerFolder/backup.sql

I tried to find an answer but all in vein. I tried to replace spaces with %20 but not worked. I am using MysqlDump with Java to create backup. Both Java and Command Prompt replies same as

Got Error 1049: Unknown Database 'Folder/backup.sql' when selecting the database.

I also tried to put path in inverted commas etc but no use. My command is

C:/xampp/mysql/bin/mysqldump --add-drop-database -u root -pabc --routines --database db_abc -r K:/my folder/backup.sql

只需添加“围绕它们

"K:/My Folder/backup.sql"

You need to quote your path. "K:/My Folder/backup.sql"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM