Small error with MySQL.
#1

Hey guys..I just set up "nativechecker" plugin in my server to detect the errors..
Here:
Code:
[04:59:59]    Error: Function not registered: 'mysql_real_escape_string'
[04:59:59]    Error: Function not registered: 'mysql_store_result'
[04:59:59]    Error: Function not registered: 'mysql_num_rows'
[04:59:59]    Error: Function not registered: 'mysql_fetch_row'
[04:59:59]    Error: Function not registered: 'mysql_free_result'
[04:59:59]    Error: Function not registered: 'mysql_fetch_field'
[04:59:59]    Error: Function not registered: 'mysql_init'
[04:59:59]    Error: Function not registered: 'mysql_ping'
Should I update mysql or something?
Reply
#2

Is there any scripting problem?

By the way..

server-log
Code:
----------
Loaded log file: "server_log.txt".
----------

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

[05:14:00] filterscripts = ""  (string)
[05:14:00] weburl = "www.sa-mp.com"  (string)
[05:14:00] 
[05:14:00] Server Plugins
[05:14:00] --------------
[05:14:00]  Loading plugin: sscanf
[05:14:00] 

[05:14:00]  ===============================

[05:14:00]       sscanf plugin loaded.     

[05:14:00]          Version:  2.8.1        

[05:14:00]    © 2012 Alex "******" Cole  

[05:14:00]  ===============================

[05:14:00]   Loaded.
[05:14:00]  Loading plugin: streamer
[05:14:00]   Loaded.
[05:14:00]  Loading plugin: Whirlpool
[05:14:00]  
[05:14:00]  ==================
[05:14:00]  
[05:14:00]   Whirlpool loaded
[05:14:00]  
[05:14:00]  ==================
[05:14:00]  
[05:14:00]   Loaded.
[05:14:00]  Loading plugin: mysql
[05:14:00]  >> plugin.mysql: R39-2 successfully loaded.
[05:14:00]   Loaded.
[05:14:00]  Loading plugin: nativechecker
[05:14:00]   Loaded.
[05:14:00]  Loaded 5 plugins.

[05:14:00] 
[05:14:00] Filterscripts
[05:14:00] ---------------
[05:14:00]   Loaded 0 filterscripts.

[05:14:00]    Error: Function not registered: 'mysql_real_escape_string'
[05:14:00]    Error: Function not registered: 'mysql_store_result'
[05:14:00]    Error: Function not registered: 'mysql_num_rows'
[05:14:00]    Error: Function not registered: 'mysql_fetch_row'
[05:14:00]    Error: Function not registered: 'mysql_free_result'
[05:14:00]    Error: Function not registered: 'mysql_fetch_field'
[05:14:00]    Error: Function not registered: 'mysql_init'
[05:14:00]    Error: Function not registered: 'mysql_ping'
[05:14:00] Script[gamemodes/gamemode_2.2.4.amx]: Run time error 19: "File or function is not found"
[05:14:00] Number of vehicle models: 0
Reply
#3

I believe you are using a version of the MySQL plugin which is too new for your script, I know that mysql_real_escape_string was in R7, so try somewhere around there.
Reply
#4

I suggest you to simply update both MySQL include and plugin, so that you won't have any hassle anymore.
Reply
#5

Your not using the right mysql plugin for your script.
Check which version your using

and dont update your plugin only. Because there is different script for different update.
Reply
#6

Thanks guys! I am going to try all of your ideas!
Reply
#7

Which version is this?:
Code:
[17:05:44]    Error: Function not registered: 'mysql_query'
[17:05:44]    Error: Function not registered: 'mysql_fetch_row'
[17:05:44]    Error: Function not registered: 'mysql_init'
Reply
#8

Ahh..Anyone?
Reply
#9

maybe you are using a newer version of MySQL on which these function do not exist... check the wiki
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)