22211/mysqld
Tcp6 0 0: 10002: * LISTEN 23536/mysqld
Unix 2 [ACC] stream listening 365439 22211/mysqld/tmp/mysql1.sock
Unix 2 [ACC] stream listening 368511 23536/mysqld/tmp/mysql2.sock
By default, MariaDB can log on to any local user on two lines, which affects the login of newly created copy users. Therefore, you need to delete this line. Then create a copy user to take effect. (If you are running on two different computers, you can not delete these
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
substitute for Mysql. Its main purpose is to innovate and improve Mysql technology. Mysql5.6 is not a suitable basic innovation platform, so we have done the following:
1. Because we have introduced some new features (such as multi-source replication, Cassandra integration, and engine independent statistics system), we need to create a new version. Generally, when you introduce new features, you need to create a new version.
2. the next version calle
|+--------------------------+----------------------------------------------------------------+1 row in Set (0.002 sec)7. Test whether the cluster Mariad data is synchronizedMariaDB [(None)]> CREATE Database Lizk;Query OK, 1 row affected (0.010 sec)MariaDB [(none)]> show databases;+--------------------+| Database |+--------------------+| china || hello || hi || information_schema || lizk
Mariadb database installation process, mariadb database Process
As we all know, after Oracle acquired MySQL, there is a potential risk of shutting down the source of MySQL. MariaDB aims to be fully compatible with MySQL, including APIs and command lines, it can easily become a substitute for MySQL. MariaDB name is the
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
permission from the M2 on the M2, and also the permissions granted to the M1 on theMARIADB-M1:grant replication slave on *.* to ‘replication‘@‘192.168.100.%‘ identified by ‘123456‘;//使用账户为replication 密码为123456change master to master_host=‘192.168.100.166‘,master_user=‘replication‘,master_password=‘123456‘,master_log_f
first, the basic knowledgeThe importance of data is needless to say, it should be emphasized that the backup is not the purpose, can recover is the purpose, the following mariadb some concepts to explain.1. Classification of storage enginesMariadb5.1 later versions, by default using the InnoDB storage engine that supports transactions, the previous MyISAM storage engine does not support transactions, and the so-called transactional storage engine must
MySQL Log category:General query logs: log, general_log, log_outputSlow query log: the query execution time exceeds the specified query time, that is, the slow query;Error Log: generally refers to the error log information, usually the log information about server shutdown and startup, the error information during server running, and the warning information.Binary log: it is only an operation related to modification. It can be understood as a redo log for copying basic creden;Relay log: it is ac
Mariadb introduction, mariadb
Transaction: organizes multiple operations into one whole. They are either executed in full or not rolled back or rollback.
SQL interface: SQL statement analyzer and optimizer
Table: Splits a dataset into multiple
Constraint: constraint, rules to be followed for data inserted into a data table
Primary Key: a combination of one or more fields. Fill in the data in the primary ke
How to Upgrade MariaDB 5.5 to MariaDB 10.1 on Centos/rhel 7 and Debian Systems
Upgrade MariaDB 5.5 to MariaDB 10.1 on Rhel/centos 7
Reprinted from Https://www.tecmint.com/upgrade-mariadb-5-5-to-10-centos-rhel-debian-ubuntu/What ' s new
Few new features has b
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
Tags: mysql mariadbI. Introduction of MARIADBMARIADB is a relational database program that MySQL was re-developed by the original author after being acquired by Oracle, and because it is the same author, it is very similar to MySQL in operation, and the versions correspond to each other. such as: MariaDB5.5 corresponds to the 5.5 version of MySQL, but the corresponding version of the mariadb from Mysql5.6 to become more than 10, such as: MariaDB10.1 c
Original http://code.oneapm.com/database/2015/07/02/mariadb-galera-cluster/MARIADB, as a branch of MySQL, is already widely used in open source projects, such as hot OpenStack, so the cluster deployment is essential to ensure high availability of the service while increasing the load capacity of the system.MariaDB Galera Cluster IntroductionThe MARIADB cluster is
MariaDB binary installation, mariadb binary
Download the binary installation package
wget http://mirrors.neusoft.edu.cn/mariadb//mariadb-10.2.12/bintar-linux-x86_64/mariadb-10.2.12-linux-x86_64.tar.gz
Create a mysql user and group
useradd -r mysql -s /sbin/nologin
Decompres
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
MariaDB multi-instance and MariaDB instance1. Install MariaDB in yum and start
yum install MariaDB-serversystemctl start mariadb.service
2. Create a directory by case and set the owner Group
Store configuration files and databases by case
mkdir -pv /mysqldb/{3306,3307,3308}/{etc,socket,pid,log,data}
Set directory own
Translation: SET clause (submitted to the MariaDB official Manual), clause mariadb
This document is the description of the SET in the mariadb official manual.
Original article: https://mariadb.com/kb/en/set/Https://mariadb.com/kb/zh-cn/set/ I submitted to the MariaDB official manualSyntax
SET variable_assignment [, var
The MariaDB database management system is a branch of MySQL. It is mainly maintained by the open-source community and licensed by GPL. One of the reasons for developing this branch is that Oracle has the potential risk of shutting down the source of MySQL after purchasing MySQL. Therefore, the community uses the branch method to avoid this risk.
Data is no longer important to us. How can we ensure the security of data as much as possible? What should
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.