Unix Technical Forum

Accessing remote machine (Ubuntu) from Window

This is a discussion on Accessing remote machine (Ubuntu) from Window within the MySQL General forum forums, part of the MySQL category; --> I have a Ubuntu 8.04 Server VM set up that I'm using for replication for a WS2003 machine (which ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-18-2008, 09:48 AM
Jesse
 
Posts: n/a
Default Accessing remote machine (Ubuntu) from Window

I have a Ubuntu 8.04 Server VM set up that I'm using for replication for a
WS2003 machine (which is the master).I have used a checksum utility that
someone recommended to check if the tables are in sync, but I don't have a
GUI installed on Ubuntu, so trying to interpret the selected columns that
wrap in the text mysql command prompt is nearly impossible. So, what I'd
like to do is connect to the Ubuntu server from one of my other windows
machines where I do have a GUI, and can get much better output.

So, that being the case, I've made a couple changes to try to get this
working.

First, I've changed the bind-address setting to refer to the ip address of
the machine, not 127.0.0.1.

Second, I've done a "GRANT ALL ON * TO root@ANCHORMAN identified by
'mypassword';

When I try to connect via the mysql command utility in windows, I'm told
"ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.1.128'
(10061)"

The firewall should be an issue in this case, because I'm connecting
directly to the machine, and not going through a firewall. To my knowledge,
there is not a firewall installed on the Ubuntu server, because I have it
connecting to my server for replication, and that appears to be working
fine.

Are there some additional steps I need to take to make this work?

Thanks,
Jesse


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-18-2008, 09:48 AM
Jesse
 
Posts: n/a
Default Re: Accessing remote machine (Ubuntu) from Window

> Obvious question: Did you restart MySQL? netstat -l should show you
> what's listening for connections. you'll want to see if its listening on
> port 3306.


Yes. When that didn't work, I re-started the whole server.
netstat -l tells me that 192.168.1.128:mysql is listening. It lists a
foreign address of "*.*"
When I re-issue the command with "-n", I can seee that it is, indeed,
listening on port 3306.

Can you think of any other reasons why the connection would fail?

Jesse

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 09:48 AM
Curtis Maurand
 
Posts: n/a
Default Re: Accessing remote machine (Ubuntu) from Window


I cannot. Are you trying to connect via the localhost. It may still be
trying to connect to localhost.

You might try changing the bind-address statement to

bind-address = 0.0.0.0 so that it also listens to localhost as well.

Also if you're trying to connect to an ip address instead of a named
host, I've found that you have to code your grant statement to have an
ip address instead of a hostname.



Curtis

Jesse wrote:
>> Obvious question: Did you restart MySQL? netstat -l should show you
>> what's listening for connections. you'll want to see if its
>> listening on port 3306.

>
> Yes. When that didn't work, I re-started the whole server.
> netstat -l tells me that 192.168.1.128:mysql is listening. It lists a
> foreign address of "*.*"
> When I re-issue the command with "-n", I can seee that it is, indeed,
> listening on port 3306.
>
> Can you think of any other reasons why the connection would fail?
>
> Jesse


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 09:48 AM
Jesse
 
Posts: n/a
Default Re: Accessing remote machine (Ubuntu) from Window

I was wondering how I get it to listed on all ports. When I try 0.0.0.0,
and try to restart, the restart fails, and when it tries to start again, I
get the error, /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using
password:YES)' This has been happening for a day or so, and I don't know if
it's related to my problem or not.

After changing the grant to use an IP address, I still cannot log in.

Jesse

----- Original Message -----
From: "Curtis Maurand" <curtis@maurand.com>
To: "Jesse" <jc@msdlg.com>
Cc: "MySQL List" <mysql@lists.mysql.com>
Sent: Thursday, July 17, 2008 4:31 PM
Subject: Re: Accessing remote machine (Ubuntu) from Window


>
> I cannot. Are you trying to connect via the localhost. It may still be
> trying to connect to localhost.
>
> You might try changing the bind-address statement to
>
> bind-address = 0.0.0.0 so that it also listens to localhost as well.
>
> Also if you're trying to connect to an ip address instead of a named host,
> I've found that you have to code your grant statement to have an ip
> address instead of a hostname.
>
>
>
> Curtis
>
> Jesse wrote:
>>> Obvious question: Did you restart MySQL? netstat -l should show you
>>> what's listening for connections. you'll want to see if its listening
>>> on port 3306.

>>
>> Yes. When that didn't work, I re-started the whole server.
>> netstat -l tells me that 192.168.1.128:mysql is listening. It lists a
>> foreign address of "*.*"
>> When I re-issue the command with "-n", I can seee that it is, indeed,
>> listening on port 3306.
>>
>> Can you think of any other reasons why the connection would fail?
>>
>> Jesse

>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com