Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > I want to put mysql database on a different box...

I want to put mysql database on a different box...
Thread Tools
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Nov 4, 2003, 06:38 PM
 
I'm running apache on my main server and I want to run a mysqlserver as my backend database on a different box... what do I have to do in order to get this running... in other words what string handles this in what config file? thx!
     
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 5, 2003, 12:45 PM
 
Use something like (free) CocoaMySQL or PHPMyAdmin to "dump" your DB into a text file (MyDatabase.sql).

Take that file to the box you want it to appear on; make sure MySQL is running. Use CocoaMySQL or PHPMyAdmin on the other box to MyDatabase.sql
TOMBSTONE: "He's trashed his last preferences"
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Nov 5, 2003, 02:16 PM
 
Are you looking at logging Apache to MySQL? Or just using the database from a web app (as in PHP, etc..)? If it is the former.. then I can't really help.

However if it is the latter all you have to do is modify your open statements to point at the new server, and make sure that your permissions in the MySQL database allow that user to come in from the box the app is on (% means all other addresses in the mysql table). If you don't know what I am talking about , then it is time to go look up granting privileges in the MySQL manual...
     
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Nov 5, 2003, 08:51 PM
 
Originally posted by larkost:
Are you looking at logging Apache to MySQL? Or just using the database from a web app (as in PHP, etc..)? If it is the former.. then I can't really help.

However if it is the latter all you have to do is modify your open statements to point at the new server, and make sure that your permissions in the MySQL database allow that user to come in from the box the app is on (% means all other addresses in the mysql table). If you don't know what I am talking about , then it is time to go look up granting privileges in the MySQL manual...
What I really want to do is use the MySQL database as means of logging the output from my IDS, HenWen (snort). The IDS runs on the Apache server... the SQL database will have a private connection to the server and I'll use this to log the output. Using Apache to veiw the output is secondary, but I would like to get it going. But is not reeeaalllly need... but would nice to get going. As that Cernel Sanders fellow said in the 2nd Matrix: "There are levels of surivaly we are willing to accept..."
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Nov 6, 2003, 10:16 AM
 
For what you want Apache is not going to have anything to do with it. You will simply need to setup snort properly. Never having done it, I can't really be of any assistance. I also don't know if the Henwen (gotta love Lloyd Alexander references) does this for you, or if you have to dive into the config files yourself.

A couple of notes: you will have to setup the MySQL grant tables like I mentioned before, and make sure that you can connect from one box to the other (ie there are no interfering firewalls between them), and you might have to have the MySQL client libraries installed on the box you are monitoring.


Oh.. and shouldn't that be Kernel Sanders, or Colonel Sanders? I would prefer the first.
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 02:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2