Jump to content

DB Connectivity issues using PHP 5.5


stualk

Recommended Posts

Hi,

I'm having problems connecting to databases since I upgraded my server. I used to use PHP version 4.something and now suddenly i'm on version 5.5 and can't connect to any databases using the same connection code as before. Here's the code i'm using:

[code]
<?
mysql_connect("www.url-here.co.uk", username, password);
mysql_select_db(db_name_here);
?>
[/code]

And here's the error i'm getting:

"Warning: mysql_connect() [function.mysql-connect]: Access denied for user: '[email protected]' (Using password: YES) in /home/vhost/net-strategy.co.uk/html/psl/news/database.php on line 2"

Can anyone see what could be wrong with my code?
Link to comment
https://forums.phpfreaks.com/topic/34231-db-connectivity-issues-using-php-55/
Share on other sites

I'm not sure how to login to the database via SSH to be honest. However I have managed to login to the actual server using SSH and turn global variables on by editing the php.ini file. Is there anything else maybe I could edit in the php.ini file that would solve my connectivity issues? My host tells me that the permissions are set correctly for me to connect from my new server.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.