Log in

View Full Version : start.bat problem


Julesx
09-26-2008, 02:21 PM
I've followed the guide to the tee i've check the forums reapeatedly and i'm getting frustrated so forgive my ignorance if this is a simple fix but i'm stuck.
Everytime i use my start.bat extention to patch to world servers the first screen pops up and is gone in flash and i get the second window that says...
Wait for world to finish loading... Press enter when done.
Press any key to continue...
When i do i get a blank dos screen and thats it i've waited 3 hours still not connecting. I've checked and rechecked everything and still can't patch to world server i assume. Others on forum have had same problem but i can't seem to figure out how they solved it from all the posts on forums maybe i'm stupid or some but its just got me stumped. If anyone could give me a step by step way to fix this i would greatly appericate it.
Oh yea i check my logs and i get
--------------------------------------------
[09.26. - 13:54:49] Starting Log: logs/eqemu_debug_world_2760.log
[09.26. - 13:54:49] [WORLD__INIT] Loading server configuration..
[09.26. - 13:54:49] [WORLD__INIT] Log settings loaded from log.ini
[09.26. - 13:54:49] [WORLD__INIT] CURRENT_WORLD_VERSION:EQEMu 0.7.0
[09.26. - 13:54:49] [WORLD__INIT] Connecting to MySQL...
[09.26. - 13:54:49] [WORLD__INIT_ERR] Cannot continue without a database connection.
---------------------------------------------
[09.26. - 13:13:42] Starting Log: logs/eqemu_error_world_0960.log
[09.26. - 13:13:42] Failed to connect to database: Error: #1045: Access denied for user 'eq'@'localhost' (using password: YES)

Julesx
09-26-2008, 02:48 PM
i forgot to post these to help narrow problem down for anyone that can help
<?xml version="1.0">
<server>
<world>
<shortname>Chewy</shortname>
<longname>Chewy</longname>

<!-- Only specify these two if you really think you need to. -->
<!--<address>Serving Machines IP</address>-->
<!--<localaddress>127.0.0.1</localaddress>-->

<!-- Loginserver information. -->
<loginserver>
<host>eqemulator.net</host>
<port>5998</port>
<account></account>
<password></password>
</loginserver>

<!-- Sets the shared key used by zone/launcher to connect to world -->
<key>some long random string</key>

<!-- Enable and set the port for the HTTP service. -->
<http port="9080" enabled="true" mimefile="mime.types" />
</world>

<!-- Database configuration, replaces db.ini. -->
<database>
<host>localhost</host>
<port>3306</port>
<username>root</username>
<password>xxxxxx</password>
<db>peq</db>
</database>
</server>
saved in .xml format
and
@echo off
start world.exe
cls
echo Wait for World to finish loading... Press Enter when done.
pause
start eqlaunch.exe zone
exit
my start.bat
anything wrong that would cause the screens to flicker and and not allow me to load up?

Xenezie
09-26-2008, 03:01 PM
Error: #1045: Access denied for user 'eq'@'localhost' (using password: YES)

your username is 'root' not 'eq' as stated in the error.

Julesx
09-26-2008, 04:39 PM
Ok but how would i change my username.. everywhere i've looked it says my username is root as it supposed to be..

Xenezie
09-26-2008, 05:22 PM
You need to run cmd and get into your database directory

Once you're in C:\peq_db
Type in this command:
mysql -u root -p and hit enter

Enter in the password you used in the instance configuration wizard.
You'll get a welcome screen, and a mysql> prompt, then you need to enter the following:

set password for 'root'@'localhost' = OLD_PASSWORD('newpwd');

In the newpwd field I would use the same password you used to log in, just hit enter and you should get a response. That may fix the problem.

Julesx
09-26-2008, 05:34 PM
sorry tried that step repeatedly and didnt work any other suggestions..

Julesx
09-26-2008, 07:07 PM
ok tracked down this error but cant find the file where it would list this as a username..

[Error] Failed to connect to database: Error: #1045: Access denied for user 'eq'@'localhost' (using password: YES)

any info on where or how to change the user 'eq' to 'root' would be great.. i think that would fix my problem but like i said.. i can't find anything in any of my documents that says eq in it.

Sylaei
09-26-2008, 09:40 PM
The only place to put that is in your eqemu_config.xml file. Since you posted your eqemu_config.xml file and it seems fine, make sure that it is in the same folder as your start.bat and world.exe files. World.exe is looking at the eqemu_config.xml file, and it has eq as the username. Assuming that world.exe can't mistake that then you have to look at paths and other files. You might also open a command window and change into the folder with world.exe and type: dir. This will list the files, if you find one called eqemu_config.xml, type: 'edit eqemu_config.xml' (without the quotes) and see what it says. I have had a command window tell me something different than windows explorer. Don't know what caused it but it happened.

HTH