Solved

Freebsd adjust firewall

Posted on 2010-08-24
2
567 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

766 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