FredyH / MySQLOO

MySQLOO
GNU Lesser General Public License v2.1
140 stars 55 forks source link

Module won't load #101

Closed bdawg009 closed 2 years ago

bdawg009 commented 2 years ago

I have Prometheus installed on my server, which I have installed on a VPS and it needs MySQL but it always says that the MySQL or tmysql isn't installed, which it is. I have the .dll file in my garrysmod/garrysmod/lua/bin folder, and I do not have libmysql installed. I have contacted my VPS host and they cannot help me. They said to contact the owner of the addon that wont work properly. Maybe I'm doing something stupid or I have one tiny underlying problem but I don't see what it would be. I don't have any console errors either. Everything works smoothly except this.

Kefta commented 2 years ago

What OS/arch are you on and what's the name of the module?

bdawg009 commented 2 years ago

I am on Windows 64 bit and it is just MySQLoo the file name is gmsv_mysqloo_win64.dll

Kefta commented 2 years ago

Is your server on the x86_64 branch or main?

FredyH commented 2 years ago

This is often caused by launching the 32 bit version of srcds on the 64 bit branch, you should always download both 32 and 64 bit versions of the module and place them in your bin folder, just to rule out that mistake.

bdawg009 commented 2 years ago

@FredyH I just tried that and it did not work. Also @Kefta it is the main branch not the x86, also correct me if I'm wrong but isn't x86 actually 32 bit?

FredyH commented 2 years ago

What's the error that is printed in your console? Maybe your prometheus is outdated and does not find the 64 bit version of the module?

bdawg009 commented 2 years ago
[Prometheus error at 12:06:42 - 21/01/2022] Neither MySQLoo or tmysql4 module could be loaded! Please go to http://wiki.prometheusipn.com/index.php?title=Installation:lua_prerequisites and follow the instructions on how to install MySQLoo or tmysql4! Your server is windows OS, so download the files for that OS!
Loading Prometheus
Couldn't load DB module
Add-on will not work

@FredyH

FredyH commented 2 years ago

Try launching the 32 bit version of srcds and see if that works. I have a suspicion that prometheus is really outdated and does not support the 64 bit module.

bdawg009 commented 2 years ago

Do I do this by using "-32bit" in my server console? @FredyH

FredyH commented 2 years ago

Your server has 2 binaries, srcds.exe and srcds_win64.exe. To use the 32 bit version, run srcds.exe rather than srcds_win64.exe.

bdawg009 commented 2 years ago

@FredyH I have srcds.exe and start.bat. Am I looking in the wrong place?

Kefta commented 2 years ago

Main branch doesn't have the x64 SRCDS. Could try using the x86_64 branch and see if the module is recognised then?

FredyH commented 2 years ago

It means that you have a 32 bit version of the server, so you need to download the 32 bit version of the module rather than the 64 bit version.