Actions on Oracle Linux
To migrate from the CentOS Virtual Appliance, follow the below preparatory steps in Oracle Linux Virtual Appliance:
-
Create admin migration user using the below commands:
GRANT ALL PRIVILEGES ON *.* TO 'mig_admin'@'%' IDENTIFIED BY 'MIG_ADMIN' WITH GRANT OPTION;
FLUSH PRIVILEGES; -
Add the below entries in /etc/my.cnf to [mysqld] section and restart MariaDB server to apply the new settings:
net_read_timeout=1000
connect_timeout=1000
On terminal: systemctl restart mariadb.service -
Using the below command, try connecting to CentOS VA using mig_admin user from the new Oracle Linux VA:
mysql –umig_admin –pMIG_ADMIN -h<Centos VA IP> -
Using the below command, try connecting toOracle Linux from CentOS VA:
mysql –umig_admin –pMIG_ADMIN -h<Oraclelinex VA IP>noteMake sure both the servers can connect each other, if any issue found in MySQL connection then check
/etc/mysql/my.cnf fileand comment# bind-address 127.0.0.0(or) change the bind address to0.0.0.0. -
Stop the services, using the below commands:
systemctl stop sgdaemon.service
systemctl stop scandaemon.service
systemctl stop haproxy.service -
Drop the common and private databases (Oracle Linux VA) using the below commands:
DROP DATABASE ca;
DROP DATABASE ca_; (Private database starts with ca_) -
Drop the private db mysql users (which starts with customer id) using the below commands:
DROP USER '<cust_id*>'@'localhost'
FLUSH PRIVILEGES;