Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To You can keep your historical performance data and migrate your Uptime Infrastructure Monitor datastore from a MySQL database to SQL Server, please complete the following steps: .

To migrate from MySQL to SQL Server 

  1. Stop the up.time Data Collector:
    Code Block
    languagesql
    Unix: #/etc/init.d/uptime_core stop

...

  1. 
    Windows: > net stop "up.time data collector"

...

  1. Dump the database:
    Code Block
    languagesql
    > /scripts/fulldatabasedump

...

  1. Set up the SQL Server database.

...

  1. Edit

...

  1. the <uptime_dir>\uptime.conf and <uptime_dir>\controller\resources\uptime_controller.conf file to point to the new database by commenting out the MySQL lines and uncommenting the SQL Server lines.
    Code Block
    languagesql
    #dbDriver=com.mysql.jdbc.Driver
    #dbType=mysql
    #dbHostname=localhost
    #dbPort=3308

...

  1. 
    #dbName=uptime
    #dbUsername=uptime
    #dbPassword=uptime

...

  1. 
    
    #example SQL Server configuration
    dbDriver=net.sourceforge.jtds.jdbc.Driver
    dbType=mssql

...

  1. 
    dbHostname=localhost
    dbPort=1433
    dbName=uptime
    dbUsername=user
    dbPassword=password

...


  1. Stop the MySQL database:
    Code Block
    languagesql
    Unix: # /etc/init.d/uptime_datastore stop
    Windows: > net stop "up.time data store"

...

  1. Initialize the database:
    Code Block
    languagesql
    > /resetdb --nodata really

...

  1. Import the database to SQL Server:
    Code Block
    languagesql
    > /scripts/fulldatabaseimport

...

  1. Start the data collector:
    Code Block
    languagesql
    Unix: # /etc/init.d/uptime_core start
    Windows: > net start "up.time data collector"