Ok, I've followed all the guides for using cmake and it is no problem creating the .sln from there. I use VC2010 and select the compilers for that, and then I load and run the solution with no problems. I use all the defaults plus tick on "bots" but I'm not sure what the "install prefix" is for. I assume it's where you have Eqemu running from.
I run VC2010 and compile the binaries, I've never had a problem building before and my new builds have always worked but now I get a "cannot connect to MYsql Database" error when running world.exe, zone.exe, etc from serverstat.bat or individually. I seem to be missing something here but don't know what.
Now when the build is finished compiling, it says 8 succeeded, 0 failed, 1 skipped. I checked and saw that "ALL BUILD" wasn't checked off so I tried it with that on and I still get the same error. With 9 succeeded, 0 failed, etc.
I go into the "Bin" folder where the new binaries were placed and they are all there. What exactly do I need to move/copy to my Eqemu server folder? Just the binaries and the mem.dll? Do I need any other files other than what's in the "Bin" folder now?
I've tried compiling set for "Release", "Debug", and "RelWithDebInfo" and the same error occurs, the exes launch, then shut down with the "cannot connect to database" error. Nothing else, had been changed.
If I go back to a previously archived build of 2395 that I have and use that, everything launches and works fine.
Do I need some kind of new MySql, I'm still using 5.1.59 and it's running, I can connect to it with Heidi or command line. Is there a new config file or changes to eqemu_config.xml?
I'm pulling my hair out, since no one else is having this problem.
Code:
---------------------------------------------
[01.22. - 17:45:01] Starting Log: logs/eqemu_debug_world_4272.log
[01.22. - 17:45:01] [WORLD__INIT] Loading server configuration..
[01.22. - 17:45:01] [WORLD__INIT] Log settings loaded from log.ini
[01.22. - 17:45:01] [WORLD__INIT] CURRENT_WORLD_VERSION:EQEmulator 0.8.0
[01.22. - 17:45:01] [WORLD__INIT] Added loginserver eqemulator.net:5998
[01.22. - 17:45:01] [WORLD__INIT] Connecting to MySQL...
[01.22. - 17:45:02] [WORLD__INIT_ERR] Cannot continue without a database connection.
---------------------------------------------
[01.22. - 17:45:02] Starting Log: logs/eqemu_error_world_4272.log
[01.22. - 17:45:02] Failed to connect to database: Error: #2003: Can't connect to MySQL server on 'localhost' (10061)