[QUESTION]MYSQL - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [QUESTION]MYSQL (
/showthread.php?tid=643067)
[QUESTION]MYSQL -
Kraeror - 12.10.2017
Hello guys, I decided to change my database to MYSQL, so I'm using Linux host and my PC's operation system is Windows! My question is: What xaampp I have to download for the server, the Linux version or the Windows version?
Thank you, +1 REP!
Re: [QUESTION]MYSQL -
Kyle - 12.10.2017
https://www.digitalocean.com/communi...n-ubuntu-14-04
Re: [QUESTION]MYSQL -
Kraeror - 12.10.2017
I'm not asking how to install MYSQL on Linux, I'm just asking, wich version I have to install of xaampp to run the server, WINDOWS OR LINUX, because my PC is using Windows and the host is on Linux?
Re: [QUESTION]MYSQL -
Escobabe - 12.10.2017
Afaik, windows.
Re: [QUESTION]MYSQL -
Kraeror - 12.10.2017
One of you said Windows, one of you said Linux?
What the f*** I have to download

:X
Re: [QUESTION]MYSQL -
Kyle - 12.10.2017
Do not use xampp on a live server.
You should install the MySQL library yourself, along with PHP and apache.
Re: [QUESTION]MYSQL -
Kraeror - 13.10.2017
My hosters wants .sql file, so how can I get it?
Re: [QUESTION]MYSQL -
AndreiWow - 13.10.2017
You get XAMPP for windows if you use it on your computer, when you upload the server to the host use the linux plugins, xampp has nothing to do with your host if I understood your question good.
The .sql file is the database which can be imported, go to phpmyadmin, click on the database and then Export to get a .sql file.
Re: [QUESTION]MYSQL -
Kraeror - 13.10.2017
Thanks you guys, I will try!
+1 REP to all!
Re: [QUESTION]MYSQL -
Kraeror - 13.10.2017
I don't need .sql file, but why when I try to start the server, it shut downs?
When I remove the connection to MySQL from my script, it works perfect, here is my code:
PHP код:
new MySQLOpt: option_id = mysql_init_options();
Database = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE, option_id);
if(Database == MYSQL_INVALID_HANDLE || mysql_errno(Database) != 0)
{
print("The server couldn't connect to MYSQL database.!");
return 1;
}
There is nothing in my server.log!
BTW I'm using this tutorial:
http://forum.sa-mp.com/showthread.ph...ighlight=mysql