Prepare the database (MySQL). If you already have MySQL, you can ignore this. Connect to MySQL; Create a data table; mysql> create database demo; mysql> use demo; mysql> create table pet(name varchar(30), owner varchar(30), species varchar(20), sex char(1)); Add data table content; exit(); ---- Exit MySQL backup MySQL; Foreword, enable binary; Back up the data table; back up my.cnf; $ mysqldump --all-databases --user=root --password --master-data > backupdb.sql $ sudo cp /etc/mysql/my.cnf /opt/my.cnf.bak del MySQL; Stop the MySQL service; $ sudo service mysql stop //RHEL6 $ sudo systemctl stop mysql //RHEL7 $ sudo /etc/init.d/mysql stop //RHEL6 Remove MySQL configuration and files; $ sudo yum remove mysql* mysql-server mysql-devel mysql-libs $ sudo rm -rf /var/lib/mysql build mariadb; Install mariadb and related dependency packages; ....................................... //The following is the file content [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 ....................................... Restore the my.cnf file; Start mariadb; $ sudo service mariadb start $ sudo systemctl start mariadb $ sudo /etc/init.d/mariadb start MySQL ==>> MARIADB; Import the data table into mariadb; The following content appears, indicating that the login is successful; Congratulations; ......................................//The following is the sql command MariaDB [(none)]> show databases; MariaDB [(none)]> use test01; MariaDB [test01]> select * from pet; You may also be interested in:
|
>>: React+Koa example of implementing file upload
After the changes: innodb_buffer_pool_size=576M -...
Mine is: <!DOCTYPE html> Blog Garden: <!...
1. Disconnection reason There are many reasons wh...
You always need data for development. As a server...
Today I found this prompt when I was running and ...
Preface Here are the steps to install and configu...
The database installation tutorial of MySQL-8.0.2...
Scenario Requirements 1. We can use the script fu...
Table of contents 1. Introduction 2. GitHub 3. Ba...
Table of contents Method 1: Call the function dir...
1. Introduction: If we want to display flash conte...
This article introduces a detailed explanation of...
This article shares the specific code of JavaScri...
illustrate DML (Data Manipulation Language) refer...
To summarize: Readonly is only valid for input (te...