Can't access to ovh database in my local setting ( database.php ) |
[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 ?
[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
[eluser]adityamenon[/eluser]
Awesome idea! One keeps discovering new ways of manipulating CI in these forums every other minute!
[eluser]Kikito[/eluser]
Code: Unknown MySQL server host 'mysql1-6.perso' (2) I'll try to find the good adress Great DEBUG module.
[eluser]John_Betong_002[/eluser]
[quote author="Kikito" date="1310313081"]I no found , nothing work [/quote] 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.
[eluser]Kikito[/eluser]
I ask ovh and the answer is simple : OVH does not allow remote connections
[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/
|
Welcome Guest, Not a member yet? Register Sign In |