Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 22nd, 2003, 10:23 AM
Rentz Rentz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 Rentz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Connection refused

Sorry for my totally green question:
I'm trying to connect to my MySQL database from another host but it fails, so I thought i'd see if MySQL is responding at all:

$ telnet my_mysql_host 3306
Trying xxx.xxx.xxx.xxx...
telnet: Unable to connect to remote host: Connection refused

Ok, so I've disabled telnet connections, which is a good thing

So how do I open this port for specific hosts?

Reply With Quote
  #2  
Old April 22nd, 2003, 03:49 PM
robotnix robotnix is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: aaaaaa
Posts: 26 robotnix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 12 sec
Reputation Power: 0
that's because you're trying to connect to your mysql db from another host.


on your mysql server do

mysql -u root

then add a row for root with hostname = to %

% means from anywhere so now you can log from anywhere and not only localhost

Reply With Quote
  #3  
Old April 24th, 2003, 06:20 AM
Rentz Rentz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 Rentz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I must be a total idiot, i can't get this thing to work.

Ok, MySQL is listening and anwering now!
But i can't connect! All I get is:
Host '213.114.155.18' is not allowed to connect to this MySQL server

Here's what i did:
GRANT ALL PRIVILEGES ON medter.* TO 'sekreren'@'213.114.155.%' IDENTIFIED BY PASSWORD '********';
FLUSH PRIVILEGES;

What is wrong?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > Connection refused


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT