Solved

Freebsd adjust firewall

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now