The shell script above works fine.$ mysqldump -u root -p testDB > testDB1.sql
I like to make it in a directory "myBackup".
So I did the following shell script
But it says "Permission denied" like the above.$ mysqldump -u root -p testDB > myBackup/testDB1.sql
bash: myBackup/testDB.sql: Permission denied
What is the problems?
How can I put "testDB.sql" into "myBackup" directory?