CodeIgniter Forums
Database connection ERROR - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Database connection ERROR (/showthread.php?tid=68564)



Database connection ERROR - virzillo - 07-28-2017

hello, i'm using a local db and i've no problem , but if i use an external db (phpmyadmin aruba) and use the correct credential i have this error:
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato.
Filename: mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: E:\EasyPHP-DevServer-14.1VC9\data\localweb\twsfm\application\controllers\Pages.php
Line: 5
Function: __construct
File: E:\EasyPHP-DevServer-14.1VC9\data\localweb\twsfm\index.php
Line: 315
Function: require_once


A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: E:/EasyPHP-DevServer-14.1VC9/data/localweb/twsfm/system/database/DB_driver.php
Line Number: 436


I've check infite times the data and they are just fine...i create a file connect_db.php and tested the connection data and works fine.
I think the error is in the ip of the aruba db server : 89.46.111.47
Please somebody help me, i can't use a local db for this site.
again, user password namedb and ipserver db are correct.
Thanks
Hello


RE: Database connection ERROR - natanfelles - 07-28-2017

It may be that access to the database is only allowed on the local network of the hosting company. Then you will not be able to access it from your *home.