MySQL Forums
Forum List  »  PHP

Re: Access denied for user
Posted by: Peter Brawley
Date: January 12, 2019 08:18PM

> MySQL Version 5.1.73-cll

Obsolete. Why are you using it?

> PHP Version 5.3.29

Old version. Why?

> Warning: mysql_connect()

The mysql api is deprecated, alrady removed from recent PHP releases. Do not use it. Use the mysqli api instead.

Is this shared hosting or your own server?

Cpanel says user ratter_dbuser has access to the target db? The script is running on that server?

Once you switch to mysqli, let's see the php connection code.

Options: ReplyQuote


Subject
Written By
Posted
January 12, 2019 07:24PM
Re: Access denied for user
January 12, 2019 08:18PM
January 12, 2019 08:23PM
January 13, 2019 02:44AM
March 04, 2019 02:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.