1. Home
  2. Docs
  3. UniREST Solution 3.5
  4. Support
  5. Move into new Server

Move into new Server

If you need to change Server and move the UniREST Server into the new system, you have to follow some steps in order to transfer all your data and APIs.

1. Install UniREST Server application

In your new Server, install a fresh copy of the UniREST Server application into WordPress. Once installed, launch the application, so as to execute the System Check, and click the [START] button to finalize the UniREST Server plugin installation. Now, your UniREST Server application is ready to be used, but without your data, database tables, APIs and other related staff.

2. Move the old Server database tables to the new one

All your data is stored in some tables of the database used by WordPress. So you have to move that tables from the old Server database into the new Server database. There are many ways to do it. For example, you can use phpMyAdmin.

Export tables with phpMyAdmin

In phpMyAdmin, access to your old Database and click the Export button on the top menu.

Choose the Custom option as Export method, SQL as Format and in Tables select only:

  • the tfdb_config table, that contains some application settings;
  • all the tables with the name starting with the tfur_ prefix.

Then click the [GO] button (at the end of the page) and save the generated SQL file into your Desktop (or other location).

Import tables with phpMyAdmin

In phpMyAdmin, access to your new Database. Before importing your tables, select the tfdb_config and the tfur_users tables (created by the new UniREST Server installation) and delete (Drop) them.

Now, click the Import button on the top menu, select the previously exported SQL file as File to import and click the [GO] button. All the tables from the old Database should be recreated, with their data, into your new Database.

3. UniREST Settings check

Re-launch the UniREST Server application. In the Database Manager area you should see all your tables (instead, the APIs are not still imported). Open the UniREST Settings panel and check:

1. that the WordPress Tables Prefix is correct;

2. that the Server Url is your new Server URL.

4. Import APIs and other data

With a file manager or FTP, enter your old Server hosting and go into the folder where WordPress was installed. There, you will find a folder named UNIREST:

What you have to do now is to download that UNIREST folder and transfer it into your new Server, into the folder where your new WordPress is installed. In the new Server, you will find a UNIREST folder, that has been created when you installed the fresh version of the UniREST Server application. Delete it, because you need instead the UNIREST folder from your old Server.

5. Final check

Once you have moved the UNIREST folder from the old Server into the new Server, your APIs (and other related staff) are now available. Just check in the API Manager that your APIs are correctly imported.

The last thing to do is to click the [CREATE CLIENT CONFIG] button and copy the generated C# code (updated with your new Server url) into the UniRESTClientConfig.cs file of your Unity project.