<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lingoport.com/index.php?action=history&amp;feed=atom&amp;title=Command_Center_Upgrade_MySQL5_to_MySQL8</id>
	<title>Command Center Upgrade MySQL5 to MySQL8 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lingoport.com/index.php?action=history&amp;feed=atom&amp;title=Command_Center_Upgrade_MySQL5_to_MySQL8"/>
	<link rel="alternate" type="text/html" href="https://wiki.lingoport.com/index.php?title=Command_Center_Upgrade_MySQL5_to_MySQL8&amp;action=history"/>
	<updated>2026-04-30T23:35:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.lingoport.com/index.php?title=Command_Center_Upgrade_MySQL5_to_MySQL8&amp;diff=97578&amp;oldid=prev</id>
		<title>Rwilliams: /* Upgrade to Recent Version that leverages MySQL5 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lingoport.com/index.php?title=Command_Center_Upgrade_MySQL5_to_MySQL8&amp;diff=97578&amp;oldid=prev"/>
		<updated>2023-08-04T17:24:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Upgrade to Recent Version that leverages MySQL5&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:24, 4 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This step is critical as it puts the system in a known state for upgrading to MySQL8.  A later version of MySQL5 supported Command Center is v123  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This step is critical as it puts the system in a known state for upgrading to MySQL8.  A later version of MySQL5 supported Command Center is v123  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Edit install.conf in the ~/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cc\_install &lt;/del&gt;directory and set the version as shown below&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Edit install.conf in the ~/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cc_install &lt;/ins&gt;directory and set the version as shown below&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     command_center_image_version=123&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     command_center_image_version=123&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rwilliams</name></author>
	</entry>
	<entry>
		<id>https://wiki.lingoport.com/index.php?title=Command_Center_Upgrade_MySQL5_to_MySQL8&amp;diff=97540&amp;oldid=prev</id>
		<title>Rwilliams: Created page with &quot;=Command Center Upgrade Including MySQL5 to MySQL8=  &#039;&#039;&#039;THIS IS A WORK IN PROGRESS PLEASE CONSIDER THIS AS REFERENCE ONLY AT THIS TIME&#039;&#039;&#039;  &#039;&#039;&#039;THERE MAY BE ISSUES PRESENT IN TH...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.lingoport.com/index.php?title=Command_Center_Upgrade_MySQL5_to_MySQL8&amp;diff=97540&amp;oldid=prev"/>
		<updated>2023-07-13T16:00:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Command Center Upgrade Including MySQL5 to MySQL8=  &amp;#039;&amp;#039;&amp;#039;THIS IS A WORK IN PROGRESS PLEASE CONSIDER THIS AS REFERENCE ONLY AT THIS TIME&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;THERE MAY BE ISSUES PRESENT IN TH...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Command Center Upgrade Including MySQL5 to MySQL8=&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;THIS IS A WORK IN PROGRESS PLEASE CONSIDER THIS AS REFERENCE ONLY AT THIS TIME&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;THERE MAY BE ISSUES PRESENT IN THIS PROCEDURE CURRENTLY&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The follow page walks through the process of upgrading from a system running MySQL5 to a new system running MySQL8.  MySQL8 is considered the standard moving forward.&lt;br /&gt;
&lt;br /&gt;
==Upgrade to Recent Version that leverages MySQL5==&lt;br /&gt;
&lt;br /&gt;
This step is critical as it puts the system in a known state for upgrading to MySQL8.  A later version of MySQL5 supported Command Center is v123 &lt;br /&gt;
&lt;br /&gt;
Edit install.conf in the ~/cc\_install directory and set the version as shown below&lt;br /&gt;
&lt;br /&gt;
    command_center_image_version=123&lt;br /&gt;
&lt;br /&gt;
Run the UpdateCommandCenter shell script after making the change &lt;br /&gt;
&lt;br /&gt;
    sudo ./UpdateCommandCenter.sh &lt;br /&gt;
&lt;br /&gt;
This will stop the currently running container, download the new images, install them, and restart the new version of the container. Confirm that everything is still working at this point to be sure that there are no errors.&lt;br /&gt;
&lt;br /&gt;
There will still be the original container left after this is completed, it can be seen by performing the below command.  Note that the new container is 85a37aa455c2 and the old one is df6dc735424a.&lt;br /&gt;
&lt;br /&gt;
      sudo docker container ls -a &lt;br /&gt;
       CONTAINER ID   IMAGE                              COMMAND                  CREATED          STATUS                        PORTS                                       NAMES&lt;br /&gt;
    85e37aa455c2   lingoport/command-center_dev:123   &amp;quot;catalina.sh run&amp;quot;        27 minutes ago   Up 26 minutes                 0.0.0.0:8083-&amp;gt;8080/tcp, :::8083-&amp;gt;8080/tcp   jolly_bell&lt;br /&gt;
    5debec9603c6   jenkins/jenkins:lts-jdk11          &amp;quot;/usr/bin/tini -- /u…&amp;quot;   2 weeks ago      Exited (143) 44 hours ago                                                 competent_carson&lt;br /&gt;
    df6dc7e5424a   lingoport/command-center_dev:102   &amp;quot;catalina.sh run&amp;quot;        2 months ago     Exited (143) 27 minutes ago                                               strange_hawking&lt;br /&gt;
    ea33ced44224   mysql:5.7                          &amp;quot;docker-entrypoint.s…&amp;quot;   2 months ago     Up 2 weeks                    3306/tcp, 33060/tcp                         sad_lederberg&lt;br /&gt;
&lt;br /&gt;
==Backup the MySQL5 Based DB==&lt;br /&gt;
&lt;br /&gt;
Log into the MySQL Container &lt;br /&gt;
&lt;br /&gt;
    [ec2-user@ip-172-31-77-246 cc_install]$ sudo docker exec -it &amp;lt;CONTAINER ID&amp;gt; bash&lt;br /&gt;
&lt;br /&gt;
Log into MySQL inside of the container and get the MySQL root password from the install.conf file&lt;br /&gt;
&lt;br /&gt;
    mysql -uroot -p&lt;br /&gt;
    Enter password:&lt;br /&gt;
    Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
    Your MySQL connection id is 105&lt;br /&gt;
    Server version: 5.7.42 MySQL Community Server (GPL)&lt;br /&gt;
    &lt;br /&gt;
    Copyright (c) 2000, 2023, Oracle and/or its affiliates.&lt;br /&gt;
    &lt;br /&gt;
    Oracle is a registered trademark of Oracle Corporation and/or its&lt;br /&gt;
    affiliates. Other names may be trademarks of their respective&lt;br /&gt;
    owners.&lt;br /&gt;
    &lt;br /&gt;
    Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the current input statement.&lt;br /&gt;
&lt;br /&gt;
    mysql&amp;gt; show databases;&lt;br /&gt;
    +--------------------+&lt;br /&gt;
    | Database           |&lt;br /&gt;
    +--------------------+&lt;br /&gt;
    | information_schema |&lt;br /&gt;
    | LRM                |&lt;br /&gt;
    | commandcenter      |&lt;br /&gt;
    | mysql              |&lt;br /&gt;
    | performance_schema |&lt;br /&gt;
    | sys                |&lt;br /&gt;
    +--------------------+&lt;br /&gt;
    6 rows in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
There are two databases that contain the required data for the upgrade.  One is LRM and the other is commandcenter as can be seen in the above output.&lt;br /&gt;
&lt;br /&gt;
The directory /etc/mysql/conf.d is mounted as as a volume on the vm itself so it can be used as a location to place the backup file(s).  On the VM it is mounted as /home/&amp;lt;USER&amp;gt;/mysql/conf.d&lt;br /&gt;
&lt;br /&gt;
    mkdir *etc/mysql/conf.d/db_backups*&lt;br /&gt;
    mysqldump -u root -p --databases LRM commandcenter &amp;gt; /etc/mysql/conf.d/db_backups/lrm_cc_dbs.sql&lt;br /&gt;
&lt;br /&gt;
Exit out of the shell in the container and return back to the virtual machine shell.&lt;br /&gt;
&lt;br /&gt;
Move the db_backups directory on the VM to /home/&amp;lt;USER&amp;gt;/db_backups so it is easily available&lt;br /&gt;
    mv /etc/mysql/conf.d/db_backups ~/&lt;br /&gt;
&lt;br /&gt;
Stop the running docker containers for both Command Center and MySQL5 using the below command on each of their containers.&lt;br /&gt;
&lt;br /&gt;
    sudo docker stop &amp;lt;CONTAINER ID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrade to the MySQL8 Based DB Version==&lt;br /&gt;
&lt;br /&gt;
At this point, the latest version of the Command Center Installation software is needed so that MySQL8 can be installed.  Note that there is a difference between the Installation scripts so its required to have an install script that supports MySQL8&lt;br /&gt;
&lt;br /&gt;
Update the install.conf file to the next version &amp;quot;124&amp;quot; which will use MySQL8&lt;br /&gt;
&lt;br /&gt;
    command_center_image_version=124&lt;br /&gt;
&lt;br /&gt;
Run the UpdateCommandCenter.sh to perform the upgrade, this time it will be built with MySQL8 support as we are using the new install script.&lt;br /&gt;
&lt;br /&gt;
Copy the db_backups directory that was created prior back into the volume directory so it can be accessible from within the container&lt;br /&gt;
&lt;br /&gt;
    cp ~/db_backups ~/mysql/conf.d/db_backups&lt;br /&gt;
&lt;br /&gt;
Log into the MySQL8 Container similar to before.&lt;br /&gt;
&lt;br /&gt;
    [ec2-user@ip-172-31-77-246 cc_install]$ sudo docker exec -it &amp;lt;CONTAINER ID&amp;gt; bash&lt;br /&gt;
&lt;br /&gt;
Go to the /etc/mysql/conf.d/db_backups directory and install the backup from  within the container&lt;br /&gt;
&lt;br /&gt;
    cd /etc/mysql/conf.d/db_backups&lt;br /&gt;
    mysql -uroot -p &amp;lt; ./lrm_cc_dbs.sql&lt;br /&gt;
&lt;br /&gt;
Exit out of the container shell and return back to the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
Confirm via web browser that its possible to log into Command Center using original credentials from MySQL5.7 system and that any existing projects are still present.&lt;br /&gt;
&lt;br /&gt;
=New Backup Script Available=&lt;br /&gt;
There is a new Backup script that can be used to manually create a backup of this new system.  Create the new directory prior to running it.  It will store the backup in the home directory as shown.&lt;br /&gt;
&lt;br /&gt;
    /home/&amp;lt;USER&amp;gt;/commandcenter/backup/&lt;br /&gt;
&lt;br /&gt;
Simply run from the cc_install directory &lt;br /&gt;
&lt;br /&gt;
    sudo ./BackupCommandCenterDatabase.sh&lt;br /&gt;
&lt;br /&gt;
Now that everything is upgraded to MySQL8 and a backup has been created , its is possible to install later versions of Command Center. Go back  to the install.conf file and set the version as desired.  Once set, run the UpdateCommandCenter.sh script to upgrade to the desired version.&lt;br /&gt;
&lt;br /&gt;
    sudo ./UpdateCommandCenter.sh&lt;/div&gt;</summary>
		<author><name>Rwilliams</name></author>
	</entry>
</feed>