nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Ubuntu server allow tcp Mysql connection from remote system

This is a discussion on Ubuntu server allow tcp Mysql connection from remote system within the Databases servers forums, part of the Mastering Servers category; Hey how do i allow Ubuntu Linux Mysql server to talk over tcp connection from remote system TIA...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Linux answers from nixCraft.


Databases servers Discussions of databases of all types - especially MySQL.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2007, 03:12 AM
raj's Avatar
raj raj is offline
Senior Member
User
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 307
Thanks: 42
Thanked 8 Times in 8 Posts
Rep Power: 6
raj will become famous soon enough raj will become famous soon enough
Default Ubuntu server allow tcp Mysql connection from remote system

Hey

how do i allow Ubuntu Linux Mysql server to talk over tcp connection from remote system

TIA
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #2 (permalink)  
Old 01-25-2007, 03:22 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,680
Thanks: 11
Thanked 241 Times in 181 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

open /etc/mysql/my.cnf file
Code:
sudo vi /etc/mysql/my.cnf
Make sure bind-address set to your server IP address (not to 127.0.0.1)
Code:
bind-address = 192.158.5.1
Also make sure line skip-networking is removed or commented out
Code:
# skip-networking
Save and close the file; Restart mysql
Code:
sudo /etc/init.d/mysql restart
Let us assume that you are always making connection from remote IP called 202.54.10.20 for database called webdb for user webadmin then you need to grant access to this IP address. At mysql> prompt type following command for existing database:
Code:
update db set Host='202.54.10.20' where Db='webdb';
update user set Host='202.54.10.20' where user='webadmin';
See My tip How Do I Enable remote access to MySQL database server?
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 06-11-2007, 10:30 PM
mei mei is offline
Junior Member
User
 
Join Date: Jun 2007
OS: RHEL
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mei is on a distinguished road
Default Client machine requirements?

Hi,
I have a remote machine that has the mysql server. but my clinet machine is different. I read you tip on how to get remote access to MySQL server. DO I need to have any MySQL software on the client machine. There is no mention of that in the tip. If so is there any way around it? My problem is that I cannot install anything on the client machine.
Reply With Quote
  #4 (permalink)  
Old 06-11-2007, 11:06 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,680
Thanks: 11
Thanked 241 Times in 181 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need mysql client or programming language that support MySQL api like Perl, C, Php, Python etc. Type mysql and see if you get any output.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
/etc/my.cnf , linux , mysql , networking , ubuntu linux


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

 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Setting up RAID 1 mirroring on a running remote Linux system sweta Getting started tutorials 9 09-22-2008 05:04 PM
problem with System + MySQL backup script massoo Shell scripting 1 08-20-2007 09:50 PM
MySQL remote server access howto raj Databases servers 0 07-29-2007 05:32 AM
Ubuntu: Issue accessing any System applications hightech Linux software 4 01-29-2007 09:56 AM
install and configure vmware server on Ubuntu Linux server raj Linux software 1 07-17-2006 11:21 PM


All times are GMT +5.5. The time now is 08:49 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38