To keep your historical performance data and migrate your MySQL database to SQL Server, please complete the following steps:
Stop the up.time data collector:
...
Code Block language text Unix: # /etc/init.d/uptime_core
...
stop Windows: > net stop "up.time data collector"
...
- Dump the database: > / scripts / fulldatabasedump
- Set up the SQL Server database.
Edit the uptime.conf file to point to the new database by commenting out the MySQL lines and uncommenting the SQL Server lines.
Code Block language text #dbDriver=com.mysql.jdbc.Driver Driver #dbType=mysql mysql #dbHostname=localhost localhost #dbPort=3308 3308 #dbName=uptime uptime #dbUsername=uptime uptime #dbPassword=uptime uptime #example SQL Server configuration configuration dbDriver=net.sourceforge.jtds.jdbc.Driver Driver dbType=mssql mssql dbHostname=localhost localhost dbPort=1433 1433 dbName=uptime uptime dbUsername=user user dbPassword=password
Stop the MySQL database:
Code Block noformatlanguage text Unix: # /etc/init.d/uptime_datastore stop Windows: > net stop "up.time data store"
Initialize the database:
Code Block language text > / resetdb --nodata really
Import the database to SQL Server:
Code Block language text > / scripts / fulldatabaseimport
Start the data collector:
Code Block noformatlanguage text Unix: # /etc/init.d/uptime_core start Windows: > net start "up.time data collector"