Cannot connect to mySQL-Server

Status
Not open for further replies.

ManDay

New Member
Messages
20
Reaction score
0
Points
0
The other topic seems locked so it's just fine I'll open another one. This time I can already make a bit clearer what the problem is.

I am using a ad-free account and created a database manday_default with user manday_manday, which is permitted to query SELECT-statements to the database in phpmyadmin.
I uploaded one of my php-scripts which needs access to the database to load data from one of its tables.

But trying to connect to the database with a mysql_connect command causes an error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'manday_manday'@'localhost' (using password: YES) in /home/manday/public_html/getapprank/apprank.php on line 129

The appropriate command is
Code:
[FONT=Fixedsys]mysql_connect( "localhost","manday_manday",STR_MYSQL_PASS );[/FONT]

What exactly do I have to do to get that working?
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
I think you need to change "STR_MYSQL_PASS"
 

ManDay

New Member
Messages
20
Reaction score
0
Points
0
Is this supposed to be a joke? :hahano:
In case it isn't: The password is correct. I just didn't want to post it here.
Edit:
___________________

UPDATE: I got it fixed. it was because of a not-working passwd. Don't know what the problem was. Probably because I created it with a pw-generator which created to many punctations.
 
Last edited:

moviemania

New Member
Messages
23
Reaction score
0
Points
0
i think in the msql server field you are meant to type in: mysql.x10hosting.com instead of localhost
 
Status
Not open for further replies.
Top