{"id":43898,"date":"2020-03-04T11:44:25","date_gmt":"2020-03-04T18:44:25","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?page_id=43898"},"modified":"2021-11-01T14:37:57","modified_gmt":"2021-11-01T21:37:57","slug":"install-and-migrate-to-mariadb-for-linux","status":"publish","type":"docs","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/install-and-upgrade\/additional-resources\/linux\/install-and-migrate-to-mariadb-for-linux\/","title":{"rendered":"Install and Migrate to MariaDB for Linux"},"content":{"rendered":"
This document provides information on important changes related to MariaDB and MySQL on Linux. The following changes affect Ephesoft Transact 2019.2 or above:<\/p>\n
Refer to Platform Configurations and Third-Party Integrations <\/a>and reference your version of Ephesoft Transact to find more information on supported database versions.<\/p>\n To perform the steps listed in this document, you will need super-user (root) permissions. If you are not a super-user, execute the following command to login as the root user:<\/p>\n Follow these instructions if you are installing Ephesoft Transact 2019.2 or above for the first time.<\/p>\n Important: <\/strong>This will remove all data from your database. It is recommended to take a backup of your database by running the following command:<\/p>\n Ubuntu<\/strong>:<\/p>\n CentOS <\/strong>or RHEL<\/strong>:<\/p>\n Follow these instructions if you are upgrading to Ephesoft Transact 2019.2 or above. This section provides instructions on how to upgrade or migrate your database in the following cases:<\/p>\n If you have an existing instance of MariaDB, ensure that your instance of MariaDB is a supported version before upgrading Ephesoft Transact. Refer to Platform Configurations and Third-Party Integrations <\/a>and reference your version of Ephesoft Transact for more information.<\/p>\n Follow these steps if you are currently using MySQL with Ephesoft Transact.<\/p>\n Note<\/strong>: Text listed in angled brackets are placeholders. Replace the placeholders with the relevant information. For <Folder location><\/em><\/strong> include the full folder path where the backup file will be created.<\/p>\n This section provides information on how to install MariaDB on different Linux distributions: Ubuntu, CentOS, and Red Hat Enterprise Linux (RHEL). Refer to Platform Configurations and Third-Party Integrations <\/a>and reference your version of Ephesoft Transact to find more information on supported operating systems.<\/p>\n Follow the instructions for your specific Linux distribution, and proceed with the configuration.<\/p>\n Important: <\/strong>CentOS is not supported for Ephesoft Transact 2020.1 or above.<\/p>\n <\/p>\n Figure 1: Make Cache Fast<\/em><\/p>\n <\/p>\n Figure 2: Start MariaDB Service<\/em><\/p>\n <\/p>\n Figure 3: Secure Installation<\/em><\/p>\n This will prompt you to set the root password, disable remote root login, remove the test database and anonymous users, and reload privileges.<\/p>\n<\/a>Prerequisites<\/h2>\n
sudo su root<\/pre>\n
<\/a>Installing Ephesoft Transact<\/h2>\n
<\/a>Check for MariaDB<\/h3>\n
\n
\n
\n
mysqldump --all-databases --single-transaction --quick --lock-tables=false > full-backup.sql -uroot -p<password><\/em><\/strong><\/pre>\n
\n
\n
sudo apt-get remove MariaDB-server<\/pre>\n
sudo yum remove MariaDB-server<\/pre>\n
\n
\n
<\/a>Upgrading Ephesoft Transact<\/h2>\n
\n
\n
<\/a>Existing MariaDB<\/h3>\n
\n
\n
<\/a>Existing MySQL<\/h3>\n
\n
\n
\n
mysqldump -u<root username><\/em> <\/strong>-p<root user password><\/em><\/strong>\u00a0-h<server hostname><\/em><\/strong>\u00a0-P<database port number><\/em><\/strong>\u00a0<Database name><\/em><\/strong> --single-transaction --routines --quick --lock-tables=false > <Folder location><\/em>.sql<\/strong><\/pre>\n
\n
\n
\n
mysqldump -uroot -p ephesoft \u2013-single-transaction \u2013-routines -\u2013quick -\u2013locktables=false > \/opt\/database_backup\/ephesoft.sql\r\nmysqldump -uroot -p report \u2013-single-transaction --routines --quick \u2013-lock-tables=false > \/opt\/database_backup\/report.sql\r\nmysqldump -uroot -p report --single-transaction --routines --quick-lock-tables=false > \/opt\/database_backup\/report_archive.sql<\/pre>\n
\n
<\/a>Install MariaDB<\/h2>\n
<\/a>RHEL or CentOS<\/h3>\n
\n
vi \/etc\/yum.repos.d\/MariaDB.repo<\/pre>\n
\n
<\/a>On RHEL 7<\/h4>\n
[MariaDB]\r\nname = MariaDB\r\nbaseurl = http:\/\/yum.mariadb.org\/10.3\/rhel7-amd64\r\ngpgkey=http:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\r\ngpgcheck=1<\/pre>\n
<\/a>On CentOS 7<\/h4>\n
[MariaDB]\r\nname = MariaDB\r\nbaseurl = http:\/\/yum.mariadb.org\/10.3\/centos7-amd64\r\ngpgkey=http:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\r\ngpgcheck=1<\/pre>\n
\n
yum makecache fast<\/pre>\n
\n
yum install MariaDB-server MariaDB-client<\/pre>\n
\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
\n
mysql_secure_installation<\/pre>\n
\n