Difference between revisions of "Template:VALT Server Migration"

From IVS Wiki
Jump to: navigation, search
(On the Old Server)
(On the Old Server)
Line 7: Line 7:
 
# Type in the following, then press Enter: <pre>mysqldump -uivsadmin -p valt > valt.sql</pre>
 
# Type in the following, then press Enter: <pre>mysqldump -uivsadmin -p valt > valt.sql</pre>
 
#Enter mysql password
 
#Enter mysql password
#:{{img | file = ValtMigrationMysqlDump.jpg}}
+
#:{{img | file = VALT_Migration_MySQLdump.png}}
 
# Type in the following, then press Enter: <pre>scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/</pre>
 
# Type in the following, then press Enter: <pre>scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/</pre>
 
# Enter password for ivsadmin.
 
# Enter password for ivsadmin.
#:{{img | file = ValtMigrationScpCommand.jpg}}
+
#:{{img | file = SCP_MySQLdump.png}}
  
 
=On the New Server=
 
=On the New Server=

Revision as of 07:55, 2 August 2022

Note: Change IP's in the below commands to match the IP's of the new and old server

On the Old Server

It is beneficial to stop the apache service on the old server to prevent further recording of videos on it

  1. Type in the following, then press Enter:
    sudo chmod 777 -R /usr/local/WowzaStreamingEngine/content/
  2. Type in the following, then press Enter:
    mysqldump -uivsadmin -p valt > valt.sql
  3. Enter mysql password
    VALT Migration MySQLdump.png
  4. Type in the following, then press Enter:
    scp valt.sql ivsadmin@NewServerIP:/home/ivsadmin/
  5. Enter password for ivsadmin.
    SCP MySQLdump.png

On the New Server

  1. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysql -uroot -p v3
  2. Type in the password to MySQL.
    ValtMigrationMysqlLogin.jpg
  3. Type:
    DROP database v3;
    ValtMigrationDropDb.jpg
  4. Type:
    CREATE database v3;
    ValtMigrationCreateDb.jpg
  5. Type in the following, then press Enter:
    exit 
  6. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysql -uroot -p v3 < v3.sql
  7. Enter the password for MySQL.
    ValtMigrationMysqlV3.jpg
  8. Type in the following, then press Enter (Since Ubuntu 18.04 ivsadmin is the MySQL login user):
    mysql -uroot -p v3 -e "UPDATE wowza SET address = 'NewServerIP'"
  9. Enter the password for MySQL.
    ValtMigrationSetWowzaIp.jpg

Copy the recordings folder to the new server

Copy the Recordings Folder to a New Server