![]() |
|
|
|||
![]() I need a little help with a bash script I am trying to make o backup our databases. What I need is to list all databases from my MySQL server and with that resulting list I can loop through and backup each database directory .I know its easy for the gurus, but I can login to mysql server from my script but its not listing properly to loop thru ![]() TIA |
|
|||
|
Quote:
Code:
DBS=`mysql -u root -pmypassword -e 'show databases' | tail -n +2` |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|