{"action":"created","issue":{"url":"https://api.github.com/repos/mroonga/mroonga/issues/57","labels_url":"https://api.github.com/repos/mroonga/mroonga/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/mroonga/mroonga/issues/57/comments","events_url":"https://api.github.com/repos/mroonga/mroonga/issues/57/events","html_url":"https://github.com/mroonga/mroonga/issues/57","id":83334171,"number":57,"title":"install.sql fails when mysqld is not running within rpm-installation","user":{"login":"yoku0825","id":2383478,"avatar_url":"https://avatars.githubusercontent.com/u/2383478?v=3","gravatar_id":"","url":"https://api.github.com/users/yoku0825","html_url":"https://github.com/yoku0825","followers_url":"https://api.github.com/users/yoku0825/followers","following_url":"https://api.github.com/users/yoku0825/following{/other_user}","gists_url":"https://api.github.com/users/yoku0825/gists{/gist_id}","starred_url":"https://api.github.com/users/yoku0825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoku0825/subscriptions","organizations_url":"https://api.github.com/users/yoku0825/orgs","repos_url":"https://api.github.com/users/yoku0825/repos","events_url":"https://api.github.com/users/yoku0825/events{/privacy}","received_events_url":"https://api.github.com/users/yoku0825/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-01T06:01:31Z","updated_at":"2015-06-02T13:22:57Z","closed_at":"2015-06-02T11:40:17Z","body":"Installing mysql-community-mroonga and percona-server-56-mroonga when mysqld is not running, install.sql fails because of preinstall-script doesn't decide mysqld is running or not.\r\n\r\n```\r\n# ps auxww | grep mysqld\r\nroot       134  0.0  0.0 103240   856 pts/2    S+   11:36   0:00 grep mysqld\r\n\r\n# rpm -qa | grep mysql\r\nmysql-connector-python-2.0.4-1.el6.noarch\r\nmysql-community-release-el6-5.noarch\r\nmysql-utilities-1.5.4-1.el6.noarch\r\n\r\n# yum install mysql-community-mroonga\r\n..\r\nRunning Transaction\r\n  Installing : mysql-community-common-5.6.24-3.el6.x86_64                                                                 1/7\r\n  Installing : groonga-libs-5.0.4-1.el6.x86_64                                                                            2/7\r\n  Installing : groonga-normalizer-mysql-1.1.0-1.el6.x86_64                                                                3/7\r\n  Installing : mysql-community-libs-5.6.24-3.el6.x86_64                                                                   4/7\r\n  Installing : mysql-community-client-5.6.24-3.el6.x86_64                                                                 5/7\r\n  Installing : mysql-community-server-5.6.24-3.el6.x86_64                                                                 6/7\r\n  Installing : mysql-community-mroonga-5.03-1.el6.x86_64                                                                  7/7\r\nEnter password:\r\nERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)\r\nERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)\r\n/usr/bin/mysql -u root -p < /usr/share/mroonga/install.sql\r\nERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)\r\nrun the following command to register Mroonga:\r\n  /usr/bin/mysql -u root -p < /usr/share/mroonga/install.sql\r\n  Verifying  : groonga-normalizer-mysql-1.1.0-1.el6.x86_64                                                                1/7\r\n...\r\n```\r\n\r\nI can reproduce it in fresh-installed CentOS 6.5 and hit following commands.\r\n\r\n```\r\n$ sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm https://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm\r\n$ sudo yum install -y mysql-community-mroonga\r\n```"},"comment":{"url":"https://api.github.com/repos/mroonga/mroonga/issues/comments/107951939","html_url":"https://github.com/mroonga/mroonga/issues/57#issuecomment-107951939","issue_url":"https://api.github.com/repos/mroonga/mroonga/issues/57","id":107951939,"user":{"login":"yoku0825","id":2383478,"avatar_url":"https://avatars.githubusercontent.com/u/2383478?v=3","gravatar_id":"","url":"https://api.github.com/users/yoku0825","html_url":"https://github.com/yoku0825","followers_url":"https://api.github.com/users/yoku0825/followers","following_url":"https://api.github.com/users/yoku0825/following{/other_user}","gists_url":"https://api.github.com/users/yoku0825/gists{/gist_id}","starred_url":"https://api.github.com/users/yoku0825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoku0825/subscriptions","organizations_url":"https://api.github.com/users/yoku0825/orgs","repos_url":"https://api.github.com/users/yoku0825/repos","events_url":"https://api.github.com/users/yoku0825/events{/privacy}","received_events_url":"https://api.github.com/users/yoku0825/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T13:22:57Z","updated_at":"2015-06-02T13:22:57Z","body":"Thank you!"}}