I am trying to connect to a mySQL database using mysql_connect but I get this error:
ERROR: Unable to connect to mysql: (1045) Access denied for user 'Drakath'@'ip-77-221-80-117.zard.lt' (using password: YES)
Why does it output my IP? I am sure I wrote the right hostname and port because I retrieved them using SHOW VARIABLES query. I used the username and password I specified when creating my database. What's the problem here?
Question
Drakath
I am trying to connect to a mySQL database using mysql_connect but I get this error:
ERROR: Unable to connect to mysql: (1045) Access denied for user 'Drakath'@'ip-77-221-80-117.zard.lt' (using password: YES)
Why does it output my IP? I am sure I wrote the right hostname and port because I retrieved them using SHOW VARIABLES query. I used the username and password I specified when creating my database. What's the problem here?
Link to comment
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now