Problem starting linux server with mysql
#1

Hello,

I have been inactive on this forum for a few years now but I've come back to start working on a server, my problem is, I'm having trouble getting my server running on my dedicated host server (linux).

It works perfectly on my local server (windows), but on the linux server I constantly am getting the error message:

Код:
Run time error 19: "File or function is not found"
I've tried searching, I've updated all my mysql files to the latest version (r34) including the .inc, it's really driving me insane, this is what the server log looks like with nativechecker installed.

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

SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[22:58:20] filterscripts = ""  (string)
[22:58:20] 
[22:58:20] Server Plugins
[22:58:20] --------------
[22:58:20]  Loading plugin: mysql.so
[22:58:20]   Failed (plugins/mysql.so: symbol __cxa_pure_virtual, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference)
[22:58:20]  Loading plugin: sscanf.so
[22:58:20]   Loaded.
[22:58:20]  Loading plugin: nativechecker.so
[22:58:20]   Loaded.
[22:58:20]  Loading plugin: crashdetect.so
[22:58:20]   crashdetect v4.8.5 is OK.
[22:58:20]   Loaded.
[22:58:20]  Loaded 3 plugins.

[22:58:20] 
[22:58:20] Filterscripts
[22:58:20] ---------------
[22:58:20]   Loaded 0 filterscripts.

[22:58:20]    Error: Function not registered: 'mysql_connect'
[22:58:20]    Error: Function not registered: 'mysql_tquery'
[22:58:20]    Error: Function not registered: 'cache_get_data'
[22:58:20]    Error: Function not registered: 'cache_get_field_content'
[22:58:20]    Error: Function not registered: 'mysql_errno'
[22:58:20] [debug] Run time error 19: "File or function is not found"
[22:58:20] [debug]  mysql_connect
[22:58:20] [debug]  mysql_tquery
[22:58:20] [debug]  cache_get_data
[22:58:20] [debug]  cache_get_field_content
[22:58:20] [debug]  mysql_errno
[22:58:20] Script[gamemodes/LSPTest.amx]: Run time error 19: "File or function is not found"
If anyone could help me I'd appreciate it

Thanks
Reply
#2

That likely means you have the MySQL library (which is required by the MySQL plugin) installed, but it's a 64bit library. You have two options:
1. use the static plugin (mysql_static.so) or
2. install the correct library.
The easiest solution is number one. Just to make sure: what OS (distribution name, version, 32/64bit) do you use?
Reply
#3

My host has told me that the OS that the server is running is Centos 6.5 64 bit, I'll try use the static plugin and then I'll post back here, thanks.

EDIT: thanks alot! its working fine now, you saved me from a long weekend of headaches
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)