nixCraft Linux Forum

nixCraft

Linux 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...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-18-2007, 03:12 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 146
Rep Power: 4
raj is on a distinguished road
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
Sponsored Links
  #2 (permalink)  
Old 01-25-2007, 03:22 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 06-11-2007, 10:30 PM
mei mei is offline
Junior Member
User
 
Join Date: Jun 2007
My distro: RHEL
Posts: 1
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
My distro: Any distro with shell
Posts: 910
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks

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 On

Similar Threads

Thread Thread Starter Forum Replies Last Post
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
Setting up RAID 1 mirroring on a running remote Linux system sweta Getting started tutorials 8 06-22-2006 11:48 AM


All times are GMT +5.5. The time now is 05:09 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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