MySQLã®rootã¦ã¼ã¶ã¼ã®ãã¹ã¯ã¼ããå¿ è¦ãªã¹ã¯ãªãããæ¸ãå ´åã #!/bin/bash mysqladmin -uroot -ptiger ping ã®ããã«ã¹ã¯ãªããèªä½ã«ãã¹ã¯ã¼ããæ¸ãã®ã§ã¯ãªããrootã®HOMEãã£ã¬ã¯ããªã®.my.cnf(/root/.my.cnf)ã®ä¸ã«ãã¹ã¯ã¼ããæ¸ããrootã¦ã¼ã¶ã«ããèªããªãããã«600ã«ãã¦ããã # cat > /root/.my.cnf [client] user = root password = tiger [mysqladmin] user = root password = tiger # chown root:root /root/.my.cnf # chmod 600 /root/.my.cnf ã¨ãããã¾ã§ã¯ããã®ã ãããã¹ãã¨ãã¦ã $ sudo mysqladmin ping mysqladmin: co
{{#tags}}- {{label}}
{{/tags}}