Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2002, 04:52 AM
Malaphus
Fire Beetle
 
Join Date: Jun 2002
Posts: 4
Default Request: Support for MySQL Port

I would like to be able to specify the port my MySQL server is running on, in the db.ini file. Currently my MySQL server is running on a linux box on a port other than the default MySQL port so I am unable to use world.exe.
Reply With Quote
  #2  
Old 06-06-2002, 09:32 AM
bot403
Sarnak
 
Join Date: May 2002
Posts: 52
Default

You could use iptables on the database machine and create a rule that would redirect all pakcets from the standard port to the one you are running on.
Reply With Quote
  #3  
Old 06-06-2002, 11:44 PM
Malaphus
Fire Beetle
 
Join Date: Jun 2002
Posts: 4
Default

The database machine is owned by a hosting provider. I can't make any system changes like that.
Reply With Quote
  #4  
Old 06-06-2002, 11:59 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Haven't looked into it, but if it's using the standard Mysql C++ API, there are several connection methods available.. Probably just need to switch to one that includes the port when making the initial connection then read it out of the env file.


public Connection (const char *db, const char *host = "", const char *user = "", const char *passwd = "", bool te = true)

public Connection (const char *db, const char *host, const char *user, const char *passwd, uint port, my_bool compress = 1, unsigned int connect_timeout = 5, bool te = true, cchar *socket_name = "")
Reply With Quote
  #5  
Old 06-07-2002, 01:05 AM
bot403
Sarnak
 
Join Date: May 2002
Posts: 52
Default

If im right, this might not be possible, but by some chance it might be because i havent loked into it. Use iptables on your eqemu machine to mangle packets with the DNAT option and redirect it to their port. SOmething like

iptables -t nat -A PREROUTING -p tcp --sport 9000 --dport 2326 -j DNAT --to-destination 10.10.10.10:2327

im not sure what the mysql port is so i just faked it and used 2326, that should be replaced with the mysql port.

Basically all packets coming from port 9000 and trying to goto the mysql port on their computer will get re-written beore they leave your machine to go to your hosts computer on the new port.

That line probably wont work, but i think it illustrates the comcept.
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:49 AM.


 

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