Moving Firewall Analyzer's database to different directory in the same server


To move the Firewall Analyzer's Indexes to a different drive/directory on the same server

 

How to move MySQL data to another drive in the same physical machine? 

Follow the steps given below to move the database to a different drive:

 

Moving MSSQL Database

  1. Stop the Firewall Analyzer Server/Service.
  2. Login to SQL Server database with system administrator permissions.
  3. Find the current location of the data file and log file for the database firewall by using the following commands:

use firewall
go
sp_helpfile
go

  1. Detach the database by using the following commands:

use  master
go
sp_detach_db 'firewall'
go

  1. Copy the data file and log file from the current location (<MSSQL Home>\data\firewall.mdf and <MSSQL Home>\data\firewall_log.LDF)
    to the new location (<New location>\firewall.mdf and <New Location>\firewall_log.LDF).
  2. Re-attach the database and point to the new location by using the following commands:

use  master
go
sp_attach_db 'firewall' , '<New Location>\firewall.mdf' , '<New Location>\firewall_log.LDF'
go

  1. Verify the changed location by using the following commands:

use firewall
go
sp_helpfile
go

  1. Start the Firewall Analyzer Server/Service.

 

 

 

Copyright © 2011, ZOHO Corp. All Rights Reserved.
ManageEngine