mysql issue
#1

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
Reply
#2

I have same problem
Reply
#3

Your server.cfg should have this:

plugins mysql.dll
Reply
#4

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

EDIT: Yep, doesn't fix it.
Reply
#5

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

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!
Reply
#7

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.
Reply
#8

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.
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)