<分区>
将我的代码移动到我的主机服务器后,我在连接到 MySQL 时获得了连接。错误是:
PHP Warning: mysqli_connect(): (HY000/2002): Permission denied in
/hermes/bosoraweb112/b883/ipg.iancramergraphicscom/newdev/getContent.php
on line 15
这是我的代码:
$server = '127.0.0.1';
$username = 'admin_user_1';
$password = '********';
$dataBase = 'db_content';
$conn = mysqli_connect($server, $username, $password, $dataBase);
我发现其他一些遇到此问题的人已通过更改 SELinux 设置解决了该问题,但我什至不确定如何尝试。
如果是 SELinux,我如何访问它进行编辑?