How to connect MySQL server to site
#1

Hello.
I have a problem, i can't connect my MySQL server to a website with statistics. I completed db, user, etc but don't work, i get
Код:
1045: Access denied for user 'domain_baza'@'localhost' (using password: YES)
I have write the password and don't work ...
Reply
#2

Are your SA-MP server and website on the same box?
Reply
#3

No, for domain i have a webhost and databes is from server host provider...
Reply
#4

Well then, evidently it won't work. You need to specify the IP of your server. In this case 'localhost' refers to the webserver, not your SA-MP server.
Reply
#5

Don't work ... i set like that :

Код:
$hostname = '46.102.253.130';        // Your MySQL hostname. Usualy named as 'localhost', so you're NOT necessary to change this even this script has already online on the internet.
$dbname   = 'host_baza'; // Your database name.
$username = 'host_baza';             // Your database username.
$password = 'password';                 // Your database password. If your database has no password, leave it empty.
at hostname i put the ip of webhost and "host_baza" is database from hosting provider ...
Reply
#6

No one know ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)