MYSQL problem
#1

I did the simple mysql system from this guide:

http://forum.sa-mp.com/showthread.ph...highlight=User

and when I run my server then in says "Connecting to server ...... Didn't respond"
I checked if I put the plugin in the server.cfg and I did......
someone help?
Reply
#2

Did you assure you entered the valid details of your database?
Quote:
Originally Posted by Tutorial
#define mysql_host "127.0.0.1" //Has to be a string
#define mysql_user "root" //Has to be a string
#define mysql_password "" //There is none for wamp unless you set one.
#define mysql_database "sa-mp" //Has to be a string
If you got those, no surprise it's not working.
Reply
#3

yep I have it.....
what the problem? what should I do?
Reply
#4

ohhh I am stupid XD
I install the 0.3d samp version and my server is 0.3c version....
but I asked my friend try to register and when he goes out from the server the username don't save.....
I cheacked in the PHPMYADMIN if there are some fields created in my database and there are nothing.....
Reply
#5

I don't undestand one thing:
Код:
mysql_connect("host", "user", "database", "password");
user and password of what?
I have a DirectAdmin
and when I create a db I have that:
Код:
Your database has been setup. Use the following values:

Database: yan_mode 
Host: localhost 
Username: yan_mode 
Password: XXXXXXX
this is the username and password what I need? or I need to put the password and username of my FTP user?
Reply
#6

Why would you put the credentials of your FTP server? The tutorial explains it quite simply I'm afraid.
Reply
#7

then what I need to insert there?
I don't understod well the tutorial......
Reply
#8

All you gotta remember is that the username and password is needed for MySQL Connection
Reply
#9

look for post number 5.
this the username and password that I nned?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)