Zip all folders individually to it's own archives
$ for dir in *; do tar -czf ${dir}.tar.gz ${dir}; done
Create databse, user and grant privileges
create database DATABASE_NAME;
grant usage on *.* to DATABASE_USER@localhost identified by 'PASSWORD’;
grant all privileges on DATABASE_NAME.* to DATABASE_USER@localhost ;