I am getting a connection when connecting to MySQL after moving my code to my host server. The error is:
PHP Warning: mysqli_connect(): (HY000/2002): Permission denied in
/hermes/bosoraweb112/b883/ipg.iancramergraphicscom/newdev/getContent.php
on line 15
Here's my code:
$server = '127.0.0.1';
$username = 'admin_user_1';
$password = '********';
$dataBase = 'db_content';
$conn = mysqli_connect($server, $username, $password, $dataBase);
I have found some others with this problem that have solved it by changing the SELinux settings, but I am not sure how to even do that to try it.
If it is SELinux, how do I access that to edit?