SA-MP Forums Archive
mysql issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: mysql issue (/showthread.php?tid=161172)



mysql issue - [RVRP]Tyler - 19.07.2010

I have added mysql to my script, compiled, and everything is all fine and dandy.

I have the a_mysql include in pawno includes when I compiled.

I have the "mysql.dll" file in my "plugins" folder on my server, and of course I have the file in game modes.

I added "plugins mysql" to my server.cfg.

When I run my server, it is on "unknown script". In the log, it says:

Код:
SA-MP Dedicated Server
----------------------
v0.3a R8, ©2005-2010 SA-MP Team

[23:02:23] mapname = "San Andreas"  (string)
[23:02:23] filterscripts = ""  (string)
[23:02:23] 
[23:02:23] Server Plugins
[23:02:23] --------------
[23:02:23]  Loading plugin: mysql
[23:02:23]   Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[23:02:23]  Loaded 0 plugins.

[23:02:23] 
[23:02:23] Ban list
[23:02:23] --------
[23:02:23]  Loaded: samp.ban
[23:02:23] 
[23:02:23] 
[23:02:23] Filter Scripts
[23:02:23] ---------------
[23:02:23]   Loaded 0 filter scripts.

[23:02:23] Script[gamemodes/RevolutionaryRoleplay.amx]: Run time error 19: "File or function is not found"
[23:02:23] Number of vehicle models: 0



Re: mysql issue - gr8michel - 19.07.2010

I have same problem


Re: mysql issue - nemesis- - 19.07.2010

Your server.cfg should have this:

plugins mysql.dll


Re: mysql issue - [RVRP]Tyler - 19.07.2010

It's a windows server. It should just be "mysql".

EDIT: Yep, doesn't fix it.


Re: mysql issue - Agent Smith - 19.07.2010

Have you put libmysql.dll in your main server directory?


Re: mysql issue - Scenario - 19.07.2010

Quote:
Originally Posted by nemesis-
Посмотреть сообщение
Your server.cfg should have this:

plugins mysql.dll
Correct.

Quote:
Originally Posted by [RVRP]Tyler
Посмотреть сообщение
It's a windows server. It should just be "mysql".

EDIT: Yep, doesn't fix it.
It doesn't matter if you have .dll or not, as long as it isn't a Linux server, your good. If it was, you would need to replace .dll with .so, I found that out the hard way, haha!


Re: mysql issue - [HiC]TheKiller - 19.07.2010

OK, make a folder in your server directory called plugins. Put the MySQL.dll in there and add "plugins mysql" to your server.cfg. Download libmysql.dll from the same place and put it in your server directory.


Re: mysql issue - [RVRP]Tyler - 19.07.2010

I have mysql.dll in my plugins (I do indeed have a windows server). I placed the libmySQL.dll file in the main server directory, and still the script is showing up as "unknown" with the same error in server_log.


Re: mysql issue - Agent Smith - 19.07.2010

Does it still show:
Код:
Failed (plugins/mysql: cannot open shared object file: No such file or directory)



Re: mysql issue - [RVRP]Tyler - 19.07.2010

I just checked the logs, and yes it does Samdudes.