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
MySQL Can't connect, please help me
Moderator: General Moderators
- gite_ashish
- Forum Contributor
- Posts: 118
- Joined: Sat Aug 31, 2002 11:38 am
- Location: India
for debugging, befor trying into php, you can try to connect to mysql server from command line, something like:
and see even if this works or not !?!?
Code: Select all
mysql -u <username> -pand see even if this works or not !?!?
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/
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/
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Do you use those type of actions in a Command prompt environment? Because I've seen that type of commands everywhere.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 !?!?
