Can not access mysql , Access denied for user ,...

Got These error when open mysql using php :smile:
“Access denied for user ’ rfgd_093824xx’@‘192.168.0.64’ (using password: YES)”

<?php $server = "sql110.rf.gd"; $username = "rxyz_12345678"; $password = "xxxxxxxxxxxxx"; $database = "rxyz_12345678_xxxx1"; $konek = mysql_connect($server, $username, $password) or die ("gk konak" .mysql_error()); $bukadb = mysql_select_db($database) or die ("Failed open your database" .mysql_error()); ?>

Errors like that are documented here: Common MySQL Connection Errors - Docs - InfinityFree Forum

Please check whether your database name is correct. Also, make sure you use your hosting account password, not the client area password (they are different!).

@Admin said:
Errors like that are documented here: Common MySQL Connection Errors - Docs - InfinityFree Forum

Please check whether your database name is correct. Also, make sure you use your hosting account password, not the client area password (they are different!).

what i done using the same as documented and using this account here


still can’t conected

That’s the password you should be using yes.

I’d like to check the config for myself. Can you tell me where on your account I can see the error and, if you know, in which files your database configuration and connection code are located?

@Admin said:
That’s the password you should be using yes.

I’d like to check the config for myself. Can you tell me where on your account I can see the error and, if you know, in which files your database configuration and connection code are located?

sure, sent me your mail address. I will send the detail

@Admin said:
That’s the password you should be using yes.

I’d like to check the config for myself. Can you tell me where on your account I can see the error and, if you know, in which files your database configuration and connection code are located?

Account : rfgd_20401829
\htdocs\ver1\library\ inc.koneksi.php

@syahjo said:

@Admin said:
That’s the password you should be using yes.

I’d like to check the config for myself. Can you tell me where on your account I can see the error and, if you know, in which files your database configuration and connection code are located?

Account : rfgd_20401829
\htdocs\ver1\library\ inc.koneksi.php

I checked the config file. The username field included an extra space before the username and the username was uppercase (it should be lowercase, usernames are case sensitive). I’ve updated the username and your script seems to work now.

@Admin said:

@syahjo said:

@Admin said:
That’s the password you should be using yes.

I’d like to check the config for myself. Can you tell me where on your account I can see the error and, if you know, in which files your database configuration and connection code are located?

Account : rfgd_20401829
\htdocs\ver1\library\ inc.koneksi.php

I checked the config file. The username field included an extra space before the username and the username was uppercase (it should be lowercase, usernames are case sensitive). I’ve updated the username and your script seems to work now.

That’s odd, just copy paste those user/pass , wonder why… but,

now it works. thanks. you’re the man @Admin