{"id":109,"date":"2008-07-02T05:25:42","date_gmt":"2008-07-02T10:25:42","guid":{"rendered":"http:\/\/installingcats.com\/?p=109"},"modified":"2008-07-02T05:25:42","modified_gmt":"2008-07-02T10:25:42","slug":"not-allowed-to-connect-to-this-mysql-server","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2008\/07\/02\/not-allowed-to-connect-to-this-mysql-server\/","title":{"rendered":"Not allowed to connect to this MySQL server"},"content":{"rendered":"

When connecting to a remote mysql server, the login\/user must have rights to connect to the mysql server from outside of the local server, i.e. localhost. You need to edit the user record within the mysql.user table or add a new record for this user, giving it access to connect to the mysql server from a host other than localhost.<\/p>\n

Login to the mysql server add run the following command:
\ngrant all privileges on *.* to 'user'@'192.168.25.1' identified by 'password' with GRANT OPTION;<\/code>
\nReplace “user” and “password” and “192.168.25.1” with your mysql username, password, and the IP address of your computer that you’re connecting (to the mysql server) from.<\/p>\n

Remember that your mysql server must also allow connections from remote hosts<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

When connecting to a remote mysql server, the login\/user must have rights to connect to the mysql server from outside of the local server, i.e. localhost. You need to edit the user record within the mysql.user table or add a new record for this user, giving it access to connect to the mysql server from […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,2],"tags":[165,166],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/109"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}