Posts: 8
Threads: 1
Joined: Aug 2009
Reputation:
0
When trying to run my server i get those errors:
Error in mysql_query: MySQL server has gone away.
Error in mysql_store_result: MySQL server has gone away.
Posts: 8
Threads: 1
Joined: Aug 2009
Reputation:
0
And what can i do to connect it ? I dont know much about scripting and mySQL.
Posts: 810
Threads: 34
Joined: Nov 2007
Reputation:
0
mysql_connect("localhost", "root", "root");
mysql_select_db("database");
Fill in with your own info @ main() or ongamemodeinit
Posts: 8
Threads: 1
Joined: Aug 2009
Reputation:
0
Okay i got it, but now when i try to run my server it just says ''MySQL: Trying to connect to the server'', and stays like that. I think the problem is the MYSQL_HOST, what should go under it ( my database is in phpmyadmin ) ?
Posts: 8
Threads: 1
Joined: Aug 2009
Reputation:
0
Yes i do, i bought a server with MySQL included, althought about the tables... No idea. Or do you mean the ''player'' ''ban'' ''login'' stuff ?
But what do i have to put under #define MYSQL_HOST '' '' in the script ?