Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2008, 07:56 PM
FlitTastic
Sarnak
 
Join Date: Oct 2007
Posts: 34
Default Mysql error

Lets try again....

Here is my config file contents:

<?xml version="1.0">
<server>
<world>
<shortname>Oasis</shortname>
<longname>Oasis Revisited</longname>

<!-- Only specify these two if you really think you need to. (read: You don't) -->
<!-- <address>10.1.1.40</address> -->
<!-- <localaddress>127.0.0.1</localaddress> -->

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

<!-- Server status. Default is unlocked -->
<!--<locked/>-->
<!-- <unlocked/> -->

<!-- Sets the ip/port for the tcp connections. Both zones and console (if enabled). Defaults are shown -->
<tcp ip="localhost" port="9000" telnet="disable"/>

<!-- 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. Defaults are shown -->
<http port="9080" enabled="false" mimefile="mime.types" />
</world>

<!-- Chatserver (channels) information. Defaults shown -->
<chatserver>
<host>channels.eqemulator.net</host>
<port>7778</port>
</chatserver>

<!-- Mailserver (in-game mail) information. Defaults shown -->
<mailserver>
<host>channels.eqemulator.net</host>
<port>7779</port>
</mailserver>

<zones>
<defaultstatus>20</defaultstatus>

<!-- Sets port range for world to use to auto configure zones -->
<ports low="7000" high="7100"/>
</zones>

<!-- Database configuration, replaces db.ini. Defaults shown -->
<database>
<host>localhost</host>
<port>3306</port>
<username>root</username>
<password>********</password>
<db>peq</db>
</database>

<!-- Launcher Configuration -->
<launcher>
<!-- <logprefix>logs/zone-</logprefix> -->
<!-- <logsuffix>.log</logsuffix> -->
<!-- <exe>zone.exe or ./zone</exe> -->
<!-- <timers restart="10000" reterminate="10000"> -->
</launcher>

<!-- File locations. Defaults shown -->
<files>
<!-- <spells>spells_us.txt</spells> -->
<!-- <opcodes>opcodes.conf</opcodes> -->
<!-- <logsettings>log.ini</logsettings> -->
<!-- <eqtime>eqtime.cfg</eqtime> -->
</files>
<!-- Directory locations. Defaults shown -->
<directories>
<!-- <maps>Maps</maps> -->
<!-- <quests>quests</quests> -->
<!-- <plugins>plugins</plugins> -->
</directories>
</server>

I was having trouble and completely un-installed and re-installed everything. Anyway, I click on the Start.bat and a couple windows flash so fast that I cant see them. Here are the error logs:

---------------------------------------------
[08.22. - 16:39:08] Starting Log: logs/eqemu_error_world_3516.log
[08.22. - 16:39:08] Failed to connect to database: Error: #1045: Access denied for user 'eq'@'localhost' (using password: YES)

So then I also used the cmd line to try to get world.exe to start that way, after reading about the thousandth+ post on here....



Any idea's what's going on?

Last edited by trevius; 08-23-2008 at 10:00 AM..
Reply With Quote
  #2  
Old 08-22-2008, 08:08 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Looks like you didn't grant yourself access to the database. Try this
Code:
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
I think that's right... you can look it up if t isn't
root and password can be changed to your username and password for mysql
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #3  
Old 08-22-2008, 08:33 PM
FlitTastic
Sarnak
 
Join Date: Oct 2007
Posts: 34
Default

Ok, tried that, with and without the quotes on the first on root@localhost. Still does the same thing with the same error messages

Reply With Quote
  #4  
Old 08-22-2008, 08:49 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

You have your config file using eq as the user name? Change it to root. Or I guess you could grant privileges to the eq user...

Access denied for user 'eq'@'localhost' (using password: YES)


... oh yeah, be careful who you show that password too
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #5  
Old 08-22-2008, 09:06 PM
FlitTastic
Sarnak
 
Join Date: Oct 2007
Posts: 34
Default

no, my user name isnt eq, its root. i even used the find function to see where every reference to eq was, and it isnt in any of the places that would cause an error, as far as i can tell.

The password is unique and will be changed. password is the least of my worries.
Reply With Quote
  #6  
Old 08-22-2008, 09:09 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

This is the place I was talking about, in the config file

Code:
<!-- Database configuration, replaces db.ini.  Defaults shown -->
	<database>
		<host>localhost</host>
		<port>3306</port>
		<username>root</username>
		<password>******</password>
		<db>peq</db>
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #7  
Old 08-22-2008, 09:18 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Ok, I see you have that set right... it's obvious a database connection... did you try a reboot after installing mysql? I know... sorry, im an IT guy

Just go over all the database stuff again, you must have missed a step.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #8  
Old 08-22-2008, 10:31 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

I just noticed that you also looked for help in the minilogin forum... you won't be able to easily switch between the two login types... you need to set it up one way or the other.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #9  
Old 08-23-2008, 01:27 AM
FlitTastic
Sarnak
 
Join Date: Oct 2007
Posts: 34
Default

Someone moved my post to the mini-login forum. I dont know why.

Also, I was trying to set it up on a LAN at first, but after i un-installed and re-installed everything, I decided to do the public servers first, like the guide said to do. Also, ive re-installed Mysql a few times, trying different versions because ive read a few posts in these forums about downgrading seeming to help some people. Ive tried a few different versions, and install all of them while going over the guide. And yes, I always restart after I install or un-install everything to clean out memory.
Reply With Quote
  #10  
Old 08-23-2008, 02:13 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

My guess is that the config file you are using is the one that ends in "xml.full". You need to remove the .full from there for it to work. Which also means you either have to delete the short version config file or rename it first.

You definitely have the account portion setup incorrectly somewhere, since it is reporting that it is trying to use eq as the login ID instead of root. You may want to just try configuring the short version of the config file. It has much less in it, but basically the same functionality.

If you are planning to setup a public server, I highly recommend that you change your mysql password ASAP. You don't want people hacking your database and ruining your server... I removed it from your first post of your config, but I see you have a screenshot with it as well. So, just change it.

Another thing you might want to know is that you should change this:
Code:
<defaultstatus>20</defaultstatus>
To this:
Code:
<defaultstatus>0</defaultstatus>
This is where you set the default account status for new players. Most server use 0 for default.

I am the one that moved your post on trying to setup Mini-Login to the mini-login section. That is what that section is there for. There are some pretty common issues when setting it up and the people that read that section often are more likely to be able to help out with mini-login problems.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #11  
Old 08-23-2008, 06:06 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Your Mini-Login set up is not right, read here to set it up.
Also, if you installed MySql in windows as root, it defaults to 'no password'. If you use a password, it will give you the 'wrong password' error. try root with no password.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:10 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3