What's new

a problem with fusioncms !

maurizio1961

Verified Member
7
2015
0
A PHP Error was encountered

Severity: Warning

Message: mysqli_error() expects parameter 1 to be mysqli, boolean given

Filename: mysqli/mysqli_driver.php

Line Number: 458


And the only mistake that I mentioned, certainly! and annoying and I would like to eliminate even this, I hope you can help me.
 

maurizio1961

Verified Member
7
2015
0
Ok thanks.
Warning: mysql_connect(): Access denied for user 'mangos'@'212.91.82.247' (using password: YES) in C:\xampp\htdocs\debug.php on line 67


I do not understand this ip is not mine, nor that of my vps, so I wonder from where come out, and then before you install everything in vps first I tried every
thing in my pc and gave no mistake!


http://sferica.homepc.it:84/
I added modules and themes, but in my computer everything was perfect.
 
Last edited:

ExO

Admin
5,119
2014
1,639
Ok thanks.
Warning: mysql_connect(): Access denied for user 'mangos'@'212.91.82.247' (using password: YES) in C:\xampp\htdocs\debug.php on line 67


I do not understand this ip is not mine, nor that of my vps, so I wonder from where come out, and then before you install everything in vps first I tried every
thing in my pc and gave no mistake!



I added modules and themes, but in my computer everything was perfect.

I see, well in your folder:
application\config, open the file called database.php, and then edit the hostname, username & password to your connection.
 

maurizio1961

Verified Member
7
2015
0
I will try to give the most information possible to help you understand what the error but certainly that ip is definitely not Italian and not sure my
 

maurizio1961

Verified Member
7
2015
0
<?php
$active_group = "cms";
$active_record = TRUE;

$db["cms"]["hostname"] = "178.239.176.35";
$db["cms"]["username"] = "mangos";
$db["cms"]["password"] = "mangos";
$db["cms"]["database"] = "fusioncs";
$db["cms"]["dbdriver"] = "mysqli";
$db["cms"]["dbprefix"] = "";
$db["cms"]["pconnect"] = TRUE;
$db["cms"]["db_debug"] = TRUE;
$db["cms"]["cache_on"] = FALSE;
$db["cms"]["cachedir"] = "";
$db["cms"]["char_set"] = "utf8";
$db["cms"]["dbcollat"] = "utf8_general_ci";
$db["cms"]["swap_pre"] = "";
$db["cms"]["autoinit"] = TRUE;
$db["cms"]["stricton"] = FALSE;

$db["account"]["hostname"] = "178.239.176.35";
$db["account"]["username"] = "mangos";
$db["account"]["password"] = "mangos";
$db["account"]["database"] = "realmd";
$db["account"]["dbdriver"] = "mysqli";
$db["account"]["dbprefix"] = "";
$db["account"]["pconnect"] = TRUE;
$db["account"]["db_debug"] = TRUE;
$db["account"]["cache_on"] = FALSE;
$db["account"]["cachedir"] = "";
$db["account"]["char_set"] = "utf8";
$db["account"]["dbcollat"] = "utf8_general_ci";
$db["account"]["swap_pre"] = "";
$db["account"]["autoinit"] = FALSE;

this is the ip for my vps


$db["account"]["stricton"] = FALSE;



ra I corrected the database php, but this and the answer




Unable to connect to your database server using the provided settings.

Filename: C:\xampp\htdocs\system\database\DB_driver.php

Line Number: 124

but the answer and this
 
Last edited:

ExO

Admin
5,119
2014
1,639
Assuming it's a VPS only - not a webhost?

Just to make sure,
fusioncs is your fusioncms database, while mangos is your username & password, is that correct?

You also use port 3306 to connect to MySQL, is that correct?

Just gotta make sure about this information and we can proceed.
 

maurizio1961

Verified Member
7
2015
0
Then everything and installed by vps XAMMP I set the Apache server on port 84 for the web site and then 3306 port mysql and mangos mangos and user password and the master database that contains the data of Mangos Mangos 3:35 4:34 all compiled from me data I have entered I have mpm repack.
this and the ilcollegamento site where you can see the error by yourself with static ip ip otherwise statuses do not accept it,sferica.homepc.it:84
 
Last edited:

Larsen

Verified Member
Hi man, try this:
$db["cms"]["hostname"] = "127.0.0.1";
$db["cms"]["username"] = "mangos";
$db["cms"]["password"] = "mangos";
$db["cms"]["port"] = "3306";
$db["cms"]["database"] = "fusioncs";
$db["cms"]["dbdriver"] = "mysqli";
$db["cms"]["dbprefix"] = "";
$db["cms"]["pconnect"] = TRUE;
$db["cms"]["db_debug"] = TRUE;
$db["cms"]["cache_on"] = FALSE;
$db["cms"]["cachedir"] = "";
$db["cms"]["char_set"] = "utf8";
$db["cms"]["dbcollat"] = "utf8_general_ci";
$db["cms"]["swap_pre"] = "";
$db["cms"]["autoinit"] = TRUE;
$db["cms"]["stricton"] = FALSE;

$db["account"]["hostname"] = "127.0.0.1";
$db["account"]["username"] = "mangos";
$db["account"]["password"] = "mangos";
$db["account"]["port"] = "3306";
$db["account"]["database"] = "realmd";
$db["account"]["dbdriver"] = "mysqli";
$db["account"]["dbprefix"] = "";
$db["account"]["pconnect"] = TRUE;
$db["account"]["db_debug"] = TRUE;
$db["account"]["cache_on"] = FALSE;
$db["account"]["cachedir"] = "";
$db["account"]["char_set"] = "utf8";
$db["account"]["dbcollat"] = "utf8_general_ci";
$db["account"]["swap_pre"] = "";
$db["account"]["autoinit"] = FALSE;
 

maurizio1961

Verified Member
7
2015
0
I added the door 3306 I restart mysql and apache but this still the same error.
Sorry and hostname local 127.0.0.1

A PHP Error was encountered

Severity: Warning

Message: mysqli_error () Expects parameter 1 to be mysqli, boolean given

Filename: mysqli / mysqli_driver.php

Line Number: 458

but thanks for the suggestion!




also known this particular, are online with a character gmlevel 0 but the status says there are 0 players, and something wrong
 
Last edited:

michaeltoole92

Senior User
Veteran Member
38
2015
4
If you're hosting your own server. Your default MySQL login info is: Root/Ascent.


Oh and if you're using Xampp, that means you're hosting on your computer. The hostname/IP need's to be 127.0.0.1. As you are trying to access your database locally.
 
Last edited:
Top