removido
(usa Nenhuma)
Enviado em 05/11/2013 - 11:17h
Obrigado... but no success...
Parece que nao esta reconhecendo o root e senha...
# for db in $(mysql -u root -p12345 -e 'show databases' -s --skip-column-names); do mysqldump $db | gzip > "/mysql_bk/mysqldump-$(hostname)-$db-$(date +%Y-%m-%d-%H.%M.%S).gz"; done
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
-bash: /mysql_bk/mysqldump-debian-information_schema-2013-11-05-11.17.36.gz: No such file or directory
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
-bash: /mysql_bk/mysqldump-debian-banco_dados-2013-11-05-11.17.36.gz: No such file or directory
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
-bash: /mysql_bk/mysqldump-debian-mysql-2013-11-05-11.17.36.gz: No such file or directory
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
-bash: /mysql_bk/mysqldump-debian-performance_schema-2013-11-05-11.17.36.gz: No such file or directory
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
-bash: /mysql_bk/mysqldump-debian-phpmyadmin-2013-11-05-11.17.36.gz: No such file or directory
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
-bash: /mysql_bk/mysqldump-debian-test-2013-11-05-11.17.36.gz: No such file or directory