07.03.2016, 04:42
hello everyone,
I have an old and awesome MySQL GM which is pretty beat up at the moment!
It uses MySQL version edited by the original owner. but it doesn't have any "mysql_connect" or "mysql_close" queries anywhere on the server! this is the only part of MySQL under Ongamemodeinit
also instead of typing the MySQL db configuration in the .pwn it has a MySQL.cfg in the samp-server.exe folder! but I was unable to find any part that reads the config from that cfg file!
I don't plan on updating it to the latest MySQL yet I just want to make it work!
Here's the mysql.cfg
The above provided MySQL config is working but it is not connecting to the MySQL database!
I'll be waiting for your help!
cheers
I have an old and awesome MySQL GM which is pretty beat up at the moment!
It uses MySQL version edited by the original owner. but it doesn't have any "mysql_connect" or "mysql_close" queries anywhere on the server! this is the only part of MySQL under Ongamemodeinit
Код:
// Connect to MySQL if(mysql_ping() != 0) { printf("================ [ERROR] ================"); printf("Connection to MySQL failed."); SendRconCommand("exit"); return 1; }
I don't plan on updating it to the latest MySQL yet I just want to make it work!
Here's the mysql.cfg
Код:
www.db4free.net tayyabnakar pewpew uogdb 3306
I'll be waiting for your help!
cheers