Cant connect in mysql
#1

i have read this topic: https://sampforum.blast.hk/showthread.php?tid=391920
and did everything whats listed here. but when i put MYSQL_CONNECT to Ongamemodeinit, it says "undefined symbol"
so what to do? can anyone help me to set mysql?
can someone explain me?

ALSO: Loading plugin: mysql
Failed.
Reply
#2

PHP код:
mysql_connect(your hostyour user nameyour db nameyour password); 
Can you show related code? im not gonna guess what you've done...
Reply
#3

but why this?! Its a like LOADING PLUGIN MYSQL....
FAILED.

i have it in server.cfg and in plugins, what's wrong?

btw do mysql save/load player money?

can i use dini to save others money? if yes, how?
Reply
#4

anyone please?
Reply
#5

24 hour bumps only. Show your server.log for a startup.

Changing plugin/method won't help you at all, as you're not addressing the issue that you don't know what you're doing.

MySQL is a language, the plugin provides option to use this.

It doesn't save anything unless it connects to a database, which I don't think you've been thinking of when you've been starting out.



Fix the MySQL plugins issue, and get yourself a SQL server setup as well.


Start with posting that server.log and maybe even the plugins line out from your server.cfg.
Reply
#6

Код:
plugins streamer sscanf mysql
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[12:15:01] 
[12:15:01] Server Plugins
[12:15:01] --------------
[12:15:01]  Loading plugin: streamer
[12:15:01] 

*** Streamer Plugin v2.7.8 by Incognito loaded ***

[12:15:01]   Loaded.
[12:15:01]  Loading plugin: sscanf
[12:15:01] 

[12:15:01]  ===============================

[12:15:01]       sscanf plugin loaded.     

[12:15:01]          Version:  2.8.1        

[12:15:01]    © 2012 Alex "******" Cole  

[12:15:01]  ===============================

[12:15:01]   Loaded.
[12:15:01]  Loading plugin: MySQL
[12:15:01]   Failed.
[12:15:01]  Loaded 2 plugins.

[12:15:09]   Loaded 0 filterscripts.

[12:15:09] Number of vehicle models: 0
Reply
#7

It's a high chance that if it's on a windows machine, you are simply missing the runtimes required by the MySQL plugin.

If it's a Linux server, check the case of the plugins line against the filename, as Linux is case sensitive. This link below will not apply unless you are on Windows, Linux has other things to install.

https://sampforum.blast.hk/showthread.php?tid=606849

Check what the MySQL plugin needs, and install the runtimes you are missing. If you have 64 bit windows, you'll need to install the 32 bit, and 64 bit versions of the runtimes.
Reply
#8

If mysql fail load, I cant even set database?
Btw if I set database and mysql load too, it save player money?
And which other files save player monei in game?
Reply
#9

First off.... Your first issue, and ONLY real issue, is the plugin...


You don't need the plugin to make or maintain the database.


If you don't understand how to setup a server, or a MySQL server, then you need to resolve that yourself.


The issue you have, which is what you asked about, and what I've told you about is that your MySQL plugin isn't loading.

Fix the plugin, and then you'll be able to move on to fixing the database issue. After all, if you don't have the runtimes for the MySQL, simply installing them is the fix, and even though there are a lot of them, and that's likely made you not want to try (And lets face it, that's just plain stupid) it's a known fix, and a common issue for MANY people, who don't read instructions, or don't have patience to read things.



Fix it, stop avoiding it.;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)