MySQLã®ã¹ã¬ã¼ãå´ã§ãshow slave status \Gãã¨ãã£ã¦ãä¸è¨ã®ç®æãYesã§ããã°ã¹ã¬ã¼ãã®ã¬ããªã±ã¼ã·ã§ã³ãæ£å¸¸ã«è¡ããã¦ããã確èªã§ãã¾ãã Slave_IO_Running: Yes Slave_SQL_Running: Yes ä¸è¨ã®ãããªãã³ãã³ãã©ã¤ã³ããå®è¡ãã¦Yes以å¤ã§ããã確èªããã·ã§ã«ã¹ã¯ãªãããcronã§ã¾ããã°ãåé¡ãªããã°cronã¡ã¼ã«ãé£ãã§ããªãã¦ãåé¡ãããã°åºåãããæ å ±ãcronã¡ã¼ã«ã§é£ãã§ãã¾ãã(ä¾ãã°Slave_IO_Running: Noã¨ã) ãã¹ã¯ã¼ãã¨æ¸ãã¦ããã¨ããã¯ãmysqlã®rootãã¹ã¯ã¼ããè¨å ¥ããå¿ è¦ãããã¾ãã #!/bin/sh /usr/local/mysql/bin/mysql -u root -pãã¹ã¯ã¼ã -e "show slave status \G" | grep Running |
{{#tags}}- {{label}}
{{/tags}}