MySQL Forums
Forum List  »  PHP

Re: Can't connect to MYSQL server on ... (13)
Posted by: kenneth watanabe
Date: February 10, 2017 02:51PM

I figured out the problem.
SELINUX was blocking the MySQL connection.
When I turned off SELINUX, I was able to connect to the remote database.

To fix the problem, the following SELINUX booleans were turned on via the "setsebool" command. When I turned on the "httpd_can_network_connect" on, everything started working.

mysql_connect_any --> on
postgresql_can_rsync --> on
postgresql_selinux_transmit_client_label --> on
postgresql_selinux_unconfined_dbadm --> on
postgresql_selinux_users_ddl --> on
selinuxuser_mysql_connect_enabled --> on
selinuxuser_postgresql_connect_enabled --> on
httpd_can_network_connect = on

Thanks,
Ken

Options: ReplyQuote


Subject
Written By
Posted
Re: Can't connect to MYSQL server on ... (13)
February 10, 2017 02:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.