写了一个自动备份数据的脚本。但是我的数据库密码有字符 %
mysqldump 语句就出错了。mysqldump -uroot -p%120请问有办法吗?

解决方案 »

  1.   

    Tell us your scripts content.Here is my test.
    [root@localhost david_yeung]# mysql -uadmin -p%ilove -S/tmp/mysql_3310.sock
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 42
    Server version: 5.0.45-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> exit
    Bye