How to migrate/move the PHPKB database to new server?
To migrate/move PHPKB database to a new server, first of all, you would need to know the database type i.e. whether you have been using PHPKB Edition that works with MySQL / MariaDB or Microsoft SQL Server.
Note: In case you have no idea which one you have been using, you can simply log in to Administrator Control Panel as Superuser and go to Tools > Manage Settings > General tab > Product Details section and find (MySQL / Microsoft SQL Server) information there.
Step-by-Step Instructions for Microsoft SQL Server:
- Generate the database backup of your existing PHPKB through Microsoft SQL Server Management Studio (SSMS).
- Move the backed up database copy to the new server and restore it using SSMS.
- Log in to Administrator Control Panel as Superuser.
- Go to Tools > Manage Settings > General tab and scroll down to Database Settings section.
- Update the new database settings i.e. DSN, Username and Password details.
- At last, double-check the database settings and then save your changes. If everything goes right then you should be logged out from PHPKB automatically and that is completely normal because we have updated the settings.
Step-by-Step Instructions for MySQL / MariaDB:
- Generate the database backup of your existing PHPKB through either MySQL Workbench / phpMyAdmin / any other tool that is available.
- Move the backed up database copy to the new server and restore it using either MySQL Workbench / phpMyAdmin / etc.
- Log in to Administrator Control Panel as Superuser.
- Go to Tools > Manage Settings > General tab and scroll down to Database Settings section.
- Update the new database settings i.e. Hostname, Username, Password and Database Name.
- At last, double-check the database settings and then save your changes. If everything goes right then you should be logged out from PHPKB automatically and that is completely normal because we have updated the settings.
That’s all!
Article ID: 262
Created: January 20, 2021
Last Updated: January 29, 2021
Author: Palwinder Singh [singh@phpkb.com]
Online URL: https://www.phpkb.com/kb/article/how-to-migrate-move-the-phpkb-database-to-new-server-262.html