Solved

Freebsd adjust firewall

Posted on 2010-08-24
2
570 Views
Last Modified: 2013-12-06
Say in advance im noob in unix

I have a server #1 running on freebsd
and another server #2 running on redhat linux

i need server #2 to have access to mysql databse on server #1

How can i set this up?
0
Comment
Question by:CMDAI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
jodix2002 earned 500 total points
ID: 33519063
In the users table in mysql db, you will see the "host" field, not just username and password. It means that mysql user A may be able to connect locally, but user A may fail to connect from other machine. You need to do

GRANT ALL PRIVILEGES ON *.* TO username@’%’ IDENTIFIED BY ’password’ WITH GRANT OPTION;

If you enable firewall (ipfw or whatever) on server 1, you should also open port 3306 (mysql default) or whatever port you use for mysql. Make it available to trusted hosts only.

You may want to read this article: http://dev.mysql.com/doc/refman/4.1/en/security-guidelines.html
0
 
LVL 1

Author Closing Comment

by:CMDAI
ID: 33529662
Thanks, just got it running
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 171
Invalid password trying to cannect to Unix server 2 104
Wrap Oraccle SQL*Plus executable Command 4 104
awk sed 8 135
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question