Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2004, 04:32 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default Error: #2002 - my.cnf causing my head to ache.

Ok, I'm back to Emu after an absence of about 1 year. I'm still on Linux, running FC2. I compiled, setup my db, my world is almost perfect.

Here is /etc/my.cnf:
Code:
[client]
port=3306
socket=/var/lib/mysql/mysql.sock

[mysqld]
port=3306
socket=/var/lib/mysql/mysql.sock
key_buffer_size=16M
max_allowed_packet=8M
log-error=/var/log/mysql.log

[mysqldump]
quick
For some strange reason, world uses the right location for socket, but zone doesn't. I have no ~/.my.cnf so it's not fetching elsewhere. I can't find any other cnf files on my system for mysql.

Here is what zone gives me on startup.

Code:
[Error] Failed to connect to database: Error: #2002: Can't connect to local MySQ
L server through socket '/tmp/mysql.sock' (2)
[Status] Starting Log: logs/eqemu_zone.log
[Status] CURRENT_ZONE_VERSION: EQEMu 0.6.0-DR1
[Status] Loading Variables
Any tidbit of info to at least give me a hint would be appreciated.[/b]
Reply With Quote
  #2  
Old 11-10-2004, 04:52 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

in your my.cnf, replace /var/lib/mysql/mysql.sock by /tmp/mysql.sock
for the client and the mysqld options. /var/lib is the default option when you compile/install it yourself. it's easier to have it in /tmp since most softwares using mysql search it in /tmp .

Once you modified your my.cnf, don't forget to kill and spawn again mysqld (mysql_safe... etc)
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
  #3  
Old 11-10-2004, 06:02 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

I did try this. However, the result gets reversed. world becomes the one that complains about /var/lib/mysql/mysql.sock missing.

I know it's gotta be something stupid I'm overlooking.

P.S. Wow, I've not seen Calimero since I was a kid...many moons ago!
Reply With Quote
  #4  
Old 11-10-2004, 08:47 AM
wize_one
Dragon
 
Join Date: Jan 2004
Location: LasShithole, NV
Posts: 520
Default

hmm what about doing a symlink
__________________
Perfect quote from another site: it's immature pricks who refuse to read the numerous stickies in every forum pointing out what to do and what not to do that get flamed. Grow up and learn to do your fucking homework before opening your cake hole, junior. EQEmu doesn't like you anymore, and that's why you're getting errors. So go away.
__________________
Reply With Quote
  #5  
Old 11-12-2004, 08:03 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

I was hoping to avoid doing a symlink, cause I wanted to figure out why it wasn't working right. But in the meantime, symlink does the job.

Thanks
__________________
Elrach
Raven City Server
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 04:57 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3