What's new

World/Authserver.exe Can't Open Auth.conf/World.conf

bloodthunder69

Trial Member
4
2016
0
Hello!
I recently compiled my own trinity core, and have everything functioning except for the two most crucial functions, the worldserver.exe and authserver.exe.
Every time i try to open them, they immediately close, generate no logs (even though i have a log directory set) and reset. After spamming them a few times, i made out what it was saying. "Error in config file. Cannot open auth.conf (C:/(directory)" even though i haven't even changed anything on them. I have all of my databases in heidisql setup, and updated. I have all of the freshly extracted map files in my data directory, yet neither of them still won't open, and give the same error every time! I have tried every single last method i could think of, recompiling, resetting, deleting the entire set-up and redoing it, but it still does not function. I am in dire need of assistance. Thank you all!
 

ExO

Admin
5,119
2014
1,648
Hm, sounds a bit odd. First of all, you can always open cmd, CD to your directory path, and type worldserver so that you can see the error without it closing. And are the config files, actual .conf files, and not .dist files? It can have a big impact.
 

bloodthunder69

Trial Member
4
2016
0
Thanks but i figured it out... pretty strange considering this is the first time it has happened to me after several successful compiles.
For any who might also run into this error, the way i solved it was:
create a new blank text document
copy and paste the entire (auth/worldserver).conf text into the blank document
rename the document (authserver/worldserver).conf <---- make sure you have change file ending enabled so you can convert it from a text document to a .conf file
place them in the folder with your auth/worldserver.exe
??
profit.
 

bloodthunder69

Trial Member
4
2016
0
i do as you say, but still the same, whenever i run wordlserver.exe it closed immediately. please check the image. i got that error using cmd to open worldserver.exe

http://i.imgur.com/P2U4mYi.png

Looks like you have an incorrectly named database. You should only have a "world", "auth", and "characters" database along with the baseline MYSQL "infomation_schema", "mysql", "performance_schema" and "test"
 

BradleyS

Verified Member
7
2018
0
First, you rock and thank you! I am having an issue with my authserver.exe in version 7. I had version 6 running fine fyi. I run the MySQL.bat with no errors, then when I try to run the authserver.exe it opens and closes real fast. I have been reading on here for two days and have tried everything, I do mean everything '-). I did manage to get a screen shot of the error and this is what it read.

Using configuration file authserver.conf.
OpenSSL 1.0.1u 22 Sep 2016 (library: OpenSSL 1.0.1h 5 Jun 2014)
Could not connect to MySQL database at 127.0.0.1: Unknown database 'emucoach-auth'

DatabasePool emucoach-auth NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to database

Any help you could give me would be wonderful, thank you in advance.
 

Mr. Satan

Admiral Squatbar
Mythical User
Head Moderator
Gold Supporter
MoP Premium
Superior Member
1,012
2016
197
Location
World Martial Arts Championships
First, you rock and thank you! I am having an issue with my authserver.exe in version 7. I had version 6 running fine fyi. I run the MySQL.bat with no errors, then when I try to run the authserver.exe it opens and closes real fast. I have been reading on here for two days and have tried everything, I do mean everything '-). I did manage to get a screen shot of the error and this is what it read.

Using configuration file authserver.conf.
OpenSSL 1.0.1u 22 Sep 2016 (library: OpenSSL 1.0.1h 5 Jun 2014)
Could not connect to MySQL database at 127.0.0.1: Unknown database 'emucoach-auth'

DatabasePool emucoach-auth NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to database

Any help you could give me would be wonderful, thank you in advance.

Are you opening MySQL.bat before you open the authserver.exe? Are you opening both MySQL and authserver.exe as Admin?
Make sure your MySQL is allowed through your firewall. I think the firewall can still block it, even with connections on the same computer, but I doubt it. Wanted to cover anything I think could be causing it.
Maybe an anti-virus is blocking it?
Also, did you download everything new? Or are you trying to use the same database from v6 or same core files? Everything must be newly downloaded specifically for v7.
Check all the IP's in your database, and the authserver/worldserver.conf to make sure they are all 127.0.0.1

If you've tried everything suggested in this thread, and everything I've suggested, and it still hasn't worked, make a post here in your own thread:
https://www.emucoach.com/forumdisplay.php/23-Support
This helps your post to be seen, and get better help as it's more organized. And make sure to include the error logs.

Either way, good job on managing to get a screenshot of the error. I had an error recently and I kept trying to get a shot, but it closed too fast. Made it really hard to figure out what the problem was.
 

eyerobot

Gold Supporter
Superior Member
916
2015
24
Location
Barryton Michigan USA
First, you rock and thank you! I am having an issue with my authserver.exe in version 7. I had version 6 running fine fyi. I run the MySQL.bat with no errors, then when I try to run the authserver.exe it opens and closes real fast. I have been reading on here for two days and have tried everything, I do mean everything '-). I did manage to get a screen shot of the error and this is what it read.

Using configuration file authserver.conf.
OpenSSL 1.0.1u 22 Sep 2016 (library: OpenSSL 1.0.1h 5 Jun 2014)
Could not connect to MySQL database at 127.0.0.1: Unknown database 'emucoach-auth'

DatabasePool emucoach-auth NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to database

Any help you could give me would be wonderful, thank you in advance.

Make sure that you download and install openssl 101u non lite version, And copy ssleay32.dll from syswow64 or system32 into your repack release folder. Also install vcredistx86 and vcredist64 depending on wether your system is 32 or 64 bit. If your unsure, right click my computer and go to properties, It will show your os on that page.
 
Top