mysql - 'RROR 1102 (42000): Incorrect database name 'database name -


i have sh script following:

#!/bin/sh mysqldump -hmy.host.com --user=p387829 --password=pwd -- all-databases > /backup/mysqlall-`/bin/date +\%y\%m\%d\%h\%i\%s`.sql  mysqldump -u p387829 -hmy.host.com --password=pwd --add- drop-table --no-data usr_p387829_1 | grep ^drop | mysql -up387829 - ppwd -hmy.host.com usr_p387829_1  mysqldump -u p387829 -hmy.host.com --password=pwd  usr_p387829_2 | mysql -u p387829 -ppwd -hmy.host.com  usr_p387829_1 

when execute each command individually in shell, works. when execute sh script.sh

warning: using password on command line interface can insecure. warning: using password on command line interface can insecure. warning: using password on command line interface can insecure. 'rror 1102 (42000): incorrect database name 'usr_p387829_1 warning: using password on command line interface can insecure. warning: using password on command line interface can insecure. 'rror 1102 (42000): incorrect database name 'usr_p387829_1 mysqldump: got errno 32 on write 


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -