MySQLãã¼ã¿ãã¼ã¹ã®èªåããã¯ã¢ãããè¡ãªãã ããã§ã¯ãMySQLå ¨ãã¼ã¿ãã¼ã¹ããµã¼ãã¼å ã®å¥ãã£ã¬ã¯ããªã¸ããã¯ã¢ããããã [root@fedora ~]# vi mysql-backup.shãâãMySQLãã¼ã¿ãã¼ã¹ããã¯ã¢ããã¹ã¯ãªããä½æ #!/bin/bash PATH=/usr/local/sbin:/usr/bin:/bin # ããã¯ã¢ããå ãã£ã¬ã¯ã㪠BACKDIR=/backup/mysql # MySQLrootãã¹ã¯ã¼ã ROOTPASS=Mysqlrootãã¹ã¯ã¼ã # ããã¯ã¢ããå ãã£ã¬ã¯ããªåä½æ rm -rf $BACKDIR mkdir -p $BACKDIR # ãã¼ã¿ãã¼ã¹ååå¾ DBLIST=`ls -p /var/lib/mysql | grep / | tr -d /` # ãã¼ã¿ãã¼ã¹ãã¨ã«ããã¯ã¢ãã for dbname
{{#tags}}- {{label}}
{{/tags}}