mysql_ping and others is not registered
#1

Hi guys. I got a trouble when I upload this to my host (linux 64bit).
In my PC server works, but here I got this:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z-R4, ©2005-2014 SA-MP Team

[23:29:00] 
[23:29:00] Server Plugins
[23:29:00] --------------
[23:29:00]  Loading plugin: mysql_static.so
[23:29:00]  >> plugin.mysql: R39-2 successfully loaded.
[23:29:00]   Loaded.
[23:29:00]  Loading plugin: streamer.so
[23:29:00] 

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

[23:29:00]   Loaded.
[23:29:00]  Loading plugin: sscanf.so
[23:29:00] 

[23:29:00]  ===============================

[23:29:00]       sscanf plugin loaded.     

[23:29:00]          Version:  2.8.1        

[23:29:00]    © 2012 Alex "******" Cole  

[23:29:00]  ===============================

[23:29:00]   Loaded.
[23:29:00]  Loading plugin: whirlpool.so
[23:29:00]  
[23:29:00]  ==================
[23:29:00]  
[23:29:00]   Whirlpool loaded
[23:29:00]  
[23:29:00]  ==================
[23:29:00]  
[23:29:00]   Loaded.
[23:29:00]  Loading plugin: nativechecker.so
[23:29:00]   Loaded.
[23:29:00]  Loaded 5 plugins.

[23:29:00] 
[23:29:00] Filterscripts
[23:29:00] ---------------
[23:29:00]   Loading filterscript 'ProtectServer.amx'...
[23:29:00] **********************************************************

[23:29:00] ** Server Protect Attack v1.1 tocmai a pornit!   **

[23:29:00] ** Bucura-te de protectie de calitate oferita de Dimmi. **

[23:29:00] **********************************************************

[23:29:00]   Loaded 1 filterscripts.

[23:29:00]    Error: Function not registered: 'mysql_ping'
[23:29:00]    Error: Function not registered: 'mysql_function_query'
[23:29:00]    Error: Function not registered: 'mysql_real_escape_string'
[23:29:00]    Error: Function not registered: 'mysql_affected_rows'
[23:29:00]    Error: Function not registered: 'mysql_insert_id'
[23:29:00] Script[gamemodes/roleplay.amx]: Run time error 19: "File or function is not found"
[23:29:00] Number of vehicle models: 0
Anyone knows why?
Reply
#2

Check if your Include file and plugin file are the same.

Also, https://sampforum.blast.hk/showthread.php?tid=249226
Reply
#3

Quote:
Originally Posted by Sime30
Посмотреть сообщение
Check if your Include file and plugin file are the same.

Also, https://sampforum.blast.hk/showthread.php?tid=249226
I updated the include "a_mysql.inc" with the latest, from BlueG's GitHub, and now I get this:

Код:
roleplay.pwn(1689) : error 017: undefined symbol "mysql_ping"
roleplay.pwn(1968) : error 017: undefined symbol "mysql_affected_rows"
roleplay.pwn(1988) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(13412) : error 017: undefined symbol "mysql_affected_rows"
roleplay.pwn(13447) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(13971) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(13978) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(13985) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(13992) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14000) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14007) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14180) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14190) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14202) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14214) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14226) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14240) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14249) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14261) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14273) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14285) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14297) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14311) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14323) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14335) : error 017: undefined symbol "mysql_insert_id"
roleplay.pwn(14344) : error 017: undefined symbol "mysql_insert_id"
Did I wrong the plugin?
I started on PC the server and in server_log.txt it's shown this:
Код:
[23:00:16] Server Plugins
[23:00:16] --------------
[23:00:16]  Loading plugin: mysql
[23:00:16] 

  > MySQL plugin R7 successfully loaded.
Where did I can get the R7 mysql's plugin download link? On GitHub it's only r33 -> r39. I'm confused.
Reply
#4

You're using an older version of mysql.
Try this
Reply
#5

Quote:
Originally Posted by nogh445
Посмотреть сообщение
You're using an older version of mysql.
Try this
Thank you very much, man, but I need it for linux 64 bit. You gave me for windows.
Reply
#6

If you are using the latest MySQL version in your script, then you must use this https://github.com/pBlueG/SA-MP-MySQ...2-linux.tar.gz . Use MySQL static and put that include in your includes and compile.
Reply
#7

Quote:
Originally Posted by TheCartman
Посмотреть сообщение
Thank you very much, man, but I need it for linux 64 bit. You gave me for windows.
Here is the .so

CLICK
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)