Go Back  HTML Forums - Free Webmaster Forums and Help Forums > SERVER ADMINISTRATION > Unix Administration
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-25-2008, 10:01 PM
  #1
athomas
Lord (Level 16)
 
athomas's Avatar
 
Join Date: Dec 2007
Location: Eastern Shore, MD, USA
Posts: 539
iTrader: (0)
athomas is on a distinguished road
MySQL Server Problem

Ok, one of my many linux servers will not allow SQL connections from the outside. I've created another full access user, it gives a 2003 connect error. This only happens on a remote machine. I am trying to connect with MySQL administrator. I am having this issue both within the same subnet, and on an outside network, with the port open, and connecting on port 3306. Telnet does not work within the network or outside.
athomas is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-26-2008, 09:47 AM
  #2
Paul
Super Deity (Level 18)
 
Paul's Avatar
 
Join Date: Mar 2001
Location: 127.0.0.1
Posts: 4,025
iTrader: (0)
Paul has a spectacular aura aboutPaul has a spectacular aura about
You have to make sure that the IP address you are connecting from has permission to access the database. If by any chance you have cPanel this can be found under databases and then hostslist. If you don't have cPanel you can do it through the command line:

http://help.hardhathosting.com/question.php/87
__________________

Pawel Kowalski
Albuquerque Web Design

templatesXchange.com - Free Web Templates - Native American Jewelry
Paul is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-26-2008, 08:13 PM
  #3
Vege
Super Deity (Level 18)
 
Join Date: Sep 2004
Location: Finland
Posts: 3,410
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really nice
if it's a socket connection (as most mysql servers usually are if they are used out of the box), best solution would be tunnel some port of yours to that server port 3306
So you would be connecting to 127.0.0.1 even thou you are connecting to that remote server.

Socket connections can't be accessed from remote servers, but this thing can be changed from my.cnf in folder where mysql configuration file reside.

Last edited by Vege : 09-26-2008 at 08:16 PM.
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-27-2008, 03:21 PM
  #4
athomas
Lord (Level 16)
 
athomas's Avatar
 
Join Date: Dec 2007
Location: Eastern Shore, MD, USA
Posts: 539
iTrader: (0)
athomas is on a distinguished road
Well my.cnf looks ok, it's set to the internal IP, ports are forwarded (which wouldnt make a difference in the network)
athomas is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-27-2008, 04:51 PM
  #5
Vege
Super Deity (Level 18)
 
Join Date: Sep 2004
Location: Finland
Posts: 3,410
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really nice
Are you connecting to "localhost" or to 127.0.0.1 as those are different atleast to mysqlQueryBrowser.
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 12:00 AM
  #6
athomas
Lord (Level 16)
 
athomas's Avatar
 
Join Date: Dec 2007
Location: Eastern Shore, MD, USA
Posts: 539
iTrader: (0)
athomas is on a distinguished road
Like I said already... locally works fine, inside or outside the network from another machine does not.
athomas is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 07:18 AM
  #7
Vege
Super Deity (Level 18)
 
Join Date: Sep 2004
Location: Finland
Posts: 3,410
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really nice
Usually tunnels are connected trough localhost, meaning as I asked were you using a tunnel I tought that you had your 3306 port tunneled to the local host so connecting to localhost would actually connect to the localhost of the remote host. Are you familiar with tunneling in general?

I'm just suggesting it as it seems the easies way if you can allready connect to it from local host of the remote host.

Ssh -L 6666:localhost:3306 user@remoteserver.com would be the Linux command.

Reason I might sound stupid is that I start with the basics as I don't know your 'level'
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 03:23 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.