![]() |
Can't access to ovh database in my local setting ( database.php ) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Can't access to ovh database in my local setting ( database.php ) (/showthread.php?tid=43382) |
Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-09-2011 [eluser]Kikito[/eluser] Hello, my problem is I can't access to ovh database. I make my admin panel in local with online database. So here is my database.php Code: $active_group = 'default'; My error message is : Quote:Unable to connect to your database server using the provided settings. Do you know what's problem ? Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-09-2011 [eluser]John_Betong_002[/eluser] Try this: Append this line to ./application/config/database.php Code: include 'database_DEBUG,php'; Copy and save the following file. file: ./application/config/database_DEBUG.php Code: <?php Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-09-2011 [eluser]adityamenon[/eluser] Awesome idea! One keeps discovering new ways of manipulating CI in these forums every other minute! ![]() Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-10-2011 [eluser]Kikito[/eluser] Code: Unknown MySQL server host 'mysql1-6.perso' (2) I'll try to find the good adress Great DEBUG module. Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-10-2011 [eluser]Kikito[/eluser] I no found , nothing work ![]() Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-10-2011 [eluser]John_Betong_002[/eluser] [quote author="Kikito" date="1310313081"]I no found , nothing work ![]() Try creating a new database on your host and if it is cPanel then it will give you a sample PHP script with your database settings. Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-11-2011 [eluser]Kikito[/eluser] I ask ovh and the answer is simple : OVH does not allow remote connections Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-11-2011 [eluser]John_Betong_002[/eluser] If you can access your online OVH MySql database: 1. export your online OVH database data to your local hard-drive 2. open http://localhost/phpmyadmin/ 3. create a new 'something' database and import the data Use this new setting: ./application/config/database.php Code: if(! defined('LOCALHOST')) You will now be able to run your application from http://localhost/ Can't access to ovh database in my local setting ( database.php ) - El Forum - 07-11-2011 [eluser]Kikito[/eluser] Yes i made that but it's not in real time |