[eluser]keld[/eluser]
Hello,
I've been working on this site for a while locally using WAMP 2.0 and my database is hosted live with my current web host. Everything works fine when today to test some functionalities I decided to create a subdomain for testing and deploy my site there but I get a cannot connect to database error. I looked at the log files and here is the error:
ERROR - 2011-04-01 14:12:34 --> Severity: Warning --> mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) /home/content/23/7680523/html/dev/system/database/drivers/mysql/mysql_driver.php 88
ERROR - 2011-04-01 14:12:34 --> Unable to connect to the database
I don't understand because I tested the connection by uploading a simple
Code:
mysql_connect($hostname,$username, $password) OR DIE();
with a query and it returned the results fine.
Is there something to do in codeginiter when pushing live?
Thanks a lot in advance I'm really stuck.