It is not a good idea to use the root MySQL account to do backups.
So, let’s create a user dedicated exclusively to doing backups.
Log on to MySQL as root:
mysql -u root -p
Then create the new user and grant it the necessary permissions:
CREATE USER 'backup_user_name'@'localhost' IDENTIFIED BY 'my_pass';
GRANT SELECT, SHOW VIEW, RELOAD, EVENT, TRIGGER, LOCK TABLES ON *.* TO 'backup_user_name'@'localhost';
Now that we are all set up, you can do backups with that new dedicated user:
mysqldump -u backup_user_name -pmy_pass db_name | gzip > /home/ddarazha/backups/ninelets/ninelets_`date '+%Y%m%d'`.sql.gz
Set up a MySQL user dedicated to backups
Pingback:get enclomiphene generic from india
Pingback:kamagra fedex sans ordonnance
Pingback:online order androxal generic in united states
Pingback:how to order dutasteride cheap uk
Pingback:buy flexeril cyclobenzaprine generic in usa
Pingback:cheapest buy gabapentin lowest price viagra
Pingback:cash on delivery online prescriptions fildena
Pingback:ordering itraconazole australia over the counter
Pingback:buy cheap staxyn generic online usa
Pingback:online order avodart generic from india
Pingback:cost low rifaximin
Pingback:cheap xifaxan uk over the counter
Pingback:kamagra nejnižší ceny