View Single Post
trannygranny
Junior Member
Join Date: Jul 2017
Old 04-20-2018 , 09:52   Re: Sourcebans Unknown MySQL Server Host 'root'
Reply With Quote #3

Quote:
Originally Posted by arne1288 View Post
This error means that you entered "root" as "Server Hostname", and that it obviously don't where "root" is supposed to point to.

Enter the IP address (or hostname) of the server providing the SQL service in that hostname.
I was entering the IP address of where I'm trying to host sourcebans on, and when I try localhost I get the same error:



Code:
Fatal error: mysqli error: [2005: Unknown MySQL server host 'root' (2)] in CONNECT(root, '****', '****', !!@localhost:3306/sourcebans) in /usr/share/nginx/html/sourcebans/includes/adodb/adodb-errorhandler.inc.php on line 77
Warning: mysqli_real_connect(): (HY000/2005): Unknown MySQL server host 'root' (2) in /usr/share/nginx/html/sourcebans/includes/adodb/drivers/adodb-mysqli.inc.php on line 113
I'm doing it the same way everyone else is but for some reason I'm getting an error. I don't know why it's saying it's using the username as the host.
Also, I tried the sourcebans 2.0 alpha version, and it works fine with MySQL.

Last edited by trannygranny; 04-20-2018 at 09:55.
trannygranny is offline