Page 1 of 1

MySQL Can't connect, please help me

Posted: Sun Sep 01, 2002 6:25 pm
by pleo
Every time i try to connect to my MySQL database via a php script I get this error:


Warning: Access denied for user: 'weston@localhost' (Using password: YES) in /var/net-x/sql/dataman.php on line 71

Warning: MySQL Connection Failed: Access denied for user: 'weston@localhost' (Using password: YES) in /var/net-x/sql/dataman.php on line 71


Can anyone direct me on how to fix this?

I am running Redhat 7.3 with the newest versions of Php and MySQL.

-thanks

Posted: Sun Sep 01, 2002 7:21 pm
by volka
wrong user/password-combination for mysql_connect

Posted: Tue Sep 03, 2002 10:07 am
by gite_ashish
for debugging, befor trying into php, you can try to connect to mysql server from command line, something like:

Code: Select all

mysql -u <username> -p

and see even if this works or not !?!?

Posted: Wed Sep 04, 2002 11:44 am
by Tzicha
User weston does not have permission to login. This may be for a variety of reasons:
1. No permission granted to login from the host
2. No permission to access the database specified
3. No permission to access the MySQL server.

Read the MySQL manual on security and user permissions
http://www.mysql.com/doc/

Posted: Thu Sep 05, 2002 4:17 am
by twigletmac
It is also possible that weston has not been added as a user.

Mac

Posted: Thu Sep 05, 2002 2:00 pm
by phice
gite_ashish wrote:for debugging, befor trying into php, you can try to connect to mysql server from command line, something like:

Code: Select all

mysql -u <username> -p

and see even if this works or not !?!?
Do you use those type of actions in a Command prompt environment? Because I've seen that type of commands everywhere.