Results 1 to 4 of 4
hi ,
I am trying for so many months but could not found the answer
I want to write the shell script which
1)Finds all the databases in mysql
2)create ...
- 11-18-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 15
backup all tables in mysql
hi ,
I am trying for so many months but could not found the answer
I want to write the shell script which
1)Finds all the databases in mysql
2)create the folder who ever is the creater of that database or owner of that database . I think the databse starts with username_ so i think i have to split the database name to get folders name . How to do that?
2)backs up the databases belonging to that user
- 11-19-2009 #2
couldn't you just use phpmyadmin? its way eaiser
- 11-19-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 15
i want to set the cron job as root so that it doest it evryday
- 11-19-2009 #4
use
This will produce an SQL type file which you can then zip for compactness.Code:mysqldump -u YOUR-USER-NAME -p THE-PASSWORD -B YOUR-DATABASE-NAME > target-file-name
doesn't help with creating the folder though.If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.


Reply With Quote