1, installation mariadbInstallation commandsYum-y Install mariadb Mariadb-serverInstallation Complete mariadb, first start mariadbSystemctl Start mariadbSet boot upSystemctl Enable MARIADBThe following is a simple configuration of mariadbMysql_secure_installationThe first is to set the password, you will be prompted to enter the passwordEnter current password to
One, mariadb and MySQL
1,MARIADB Introduction
MARIADB, led by MySQL founder Michael Widenius (English: Michael Widenius), had previously sold his company, MySQL AB, to Sun at a price of 1 billion dollars, and since then, as Sun was acquired by Oracle, MySQL's ownership also falls into Oracle's hands. The name of MARIADB
Master and Slave server time to synchronize, the database version is best consistent, so as to avoid the function of processing, log read, log parsing and other anomalies.
The following three master-slave replication settings are independent.
Notice the impact of firewalls and selinux.
1, simple master-slave replication implementation
(1) configuration of the primary server
1) Installation Mariadb-serv
Install MariaDB in RHEL 7 and mariadb in rhel 7
Start with RedHat Enterprise Linux 7, and the self-contained database on the system disk is MariaDB. The installation steps are as follows:
1. Mount the installation disk image:Mount/dev/cdrom/mnt
2. Create a yum Source:Cat>/etc/yum. repos. d/d. repo
[D]
Baseurl = file: // mnt
EOF
3. Import key:Yum -- import/mnt/R
In May last year, I first introduced MariaDB 10.0 on my blog. At that time, we received a lot of feedback. After summing up the comments, we once again explained MariaDB 10.0 in a more in-depth manner. at the beginning of the New Year, with the release of MariaDB 10.0 Alpha version, it is time to talk about
Beginner MySQL Small white, for the first time to write a blog, in order to allow themselves to remember more profound, but also a small white angle to explain the experience and difficulties of beginners, but also a record of their own growth pace barMy first time using MySQL is on Ubuntu, now using the Red Hat branch of the Linux CentOS 7, installed to find usually is mariadb to replace MySQL, through the data query found that
and use # # mysql–uroot–hlocalhost–p ' PASSWORD # #登陆数据库 # # '2. Install the MARIADB with the binary compression packageMARIADB binary Compression package named format: mariadb-version name-operating system name. tar.gz, make sure to download the correct version for your machine from the download as well.Official down
account password, delete anonymous users, disable root telnet, delete the test database, reload the permissions table. Mysql_secure_installation I have chosen y all and then press ENTER. After configuring the security configuration of the database, you can view the version with the following command to confirm that MARIADB has been installed successfully. MySQL--versio
protected] ~]# firewall-cmd--permanent--add-service=mysqlsuccess[[email protected] ~]# firewall-cmd-- ReloadsuccessLog in to the database using the root user:[Email protected] ~]# mysql-u root-penter Password: Enter the password for the root user in the database. Welcome to the MariaDB Monitor. Commands End With; or \g.your MariaDB connection ID is 5Server version
store each instance unique identity PK, non-PK fields need to have a direct correlation with the entire PK;? 3NF: The attribute does not depend on other non-principal attributes, and the second normal form must be satisfied before the third paradigm. The third paradigm requires that a database table does not contain non-primary keyword information already contained in other tables, and that non-PK fields cannot have dependencies;For performance, some databases do not satisfy the normal paradigm
Description: operating system: CentOS 5.10 32-bit mariadb version: mariadb-5.5.33a mariadb Database Storage directory:/data/mysql prepare the article: First, configure IP, DNS, gateway, to ensure that the use of remote connection tools to connect the server, the server Yum command can be used normally Second, configure
Translation: Value assignment operator (: =) (submitted to the MariaDB official Manual), operator mariadb
This article is a translation of the value assignment operator (: =) in the mariadb official manual.
Original article: https://mariadb.com/kb/en/assignment-operator/Https://mariadb.com/kb/zh-cn/assignment-operator/ I submitted to the
, Python, Java,. NET, MyODBC, Ruby, and MySQL C connector, remain the same in mariadb, which means there is no need to make big changes to existing code5, Mysql-client package in the MARIADB server can also run normally6. The Shared client library is binary compatible with MySQLSo migrating data from MySQL to mariadb is relatively simple, for this
different processes based on multiple profiles.
Advantages: Simple logic, simple configuration Cons: Not easy to manage.
Use a separate configuration file to implement multiple instances based on Mysqld_multi with the official Mysqld_multi tool
Advantages: Easy to centralize management management Cons: Inconvenient to customize for each instance configuration
Based on im using the MySQL instance Manager (Mysqlmanager), this method seems to be better, but it's a l
Tags: str 127.0.0.1 def RES development not MySQL open source supportFirst, MySQL background informationMySQL became popular in the early days of the Internet, pursuing speed, simplicity, open source, and support for almost all operating systems. Fully support multi-user, multi-threading, support massive data storage, using MyISAM, InnoDB two big storage engine complement each other. But with InnoDB and MySQL itself being acquired by Oracle, the founder of MySQL has developed mariadb.MARIADB's b
MariaDB (MySQL) creation, deletion, selection, and data type Usage Details, mariadbmysql
1. Introduction to MariaDB (skipped in MySQL)
The MariaDB database management system is a branch of MySQL and is mainly maintained by the open-source community. The purpose of using GPL to authorize MariaDB is to be fully compatibl
Introduction of MARIADB (MySQL introduction skip)
MARIADB database management System is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL licensed license MARIADB is fully compatible with MySQL, including APIs and command line, so that it can easily become a replacement for MySQL. On the storage engine side, use XTRADB (En
Install and configure MariaDB on RHEL/CentOS
MariaDB is an open-source relational database and a MySQL database branch version developed by the community. MariaDB has replaced MySQL as the default database in RHEL/CentOS 7.
In this tutorial, we will discuss installing and configuring
back up all the databases.
$ mysqldump--all-databases--user=root--password--master-data > Backupdatabase.sql
Dumping databases
The above command backs up all the databases and stores them in the Backupdatabase.sql file in the current directory.
2. Uninstall MySQL
First of all, we have to move the my.cnf file to a safe place.
Note: When you uninstall the MySQL package will not automatically delete the my.cnf file, we do this just in case. When MARIADB
Connect to Mariadb and mariadb remotely
// This article describes how to connect to the Mariadb database on centos7.
// There is no difference with mysql
Package test. java. mysql; import java. SQL. connection; import java. SQL. driverManager; import java. SQL. SQLException; import java. SQL. statement; public class TestMysql {public static void main (String [] a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.