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
First, MARIADB installation introduction:For a generic binary format package, we only need to be able to use the database after extracting it, it sounds easy, but there are some problems to be aware of. Binary format package is a compiled binary program, so there are many scripts are executed under a fixed path, so the installation process MySQL This path must be installed in the/usr/local directory, and the directory name must be called MySQL. If you
MARIADB database management System is a branch of MySQL. One of the reasons for developing this branch is that after Oracle acquired MySQL, there is a potential risk of shutting MySQL out of the source, so the community uses a branching approach to avoid this risk. MARIADB is designed to be fully compatible with MySQL, including APIs and command lines, making it easy to be a replacement for MySQL. Some of t
Install and configure mariadb in centos7, centos7mariadb
Open hosts
Http://mirrors.aliyun.com/mariadb/yum/10.3/centos7-amd64/
Create a daily vip and qq1100009519 for The Source thunder instance, and access 58jiasu.com through the vpn for free.
Vi/etc/yum. repos. d/MariaDB. repo
Add the following content:[Mariadb] name
1. The first installation method, that is, using the Ubuntu repository for installation
sudo apt-get update
sudo apt-get install mariadb-server mariadb-client
Note that you need to enter a password for database access during the MARIADB installation. After the installation is complete, we access the database through t
Tags: mysql multi-instance mariadbFirst, Background introductionMARIADB Multi-instance is to open a number of different service ports on a single machine, running multiple MySQL service processes, through different sockets to listen to different service ports to provide their own, non-interference services, each instance can be isolated according to different configuration file settingsSecond, the Operation procedure1. Install mariadb (slightly)2. Ini
Location VALUES (6, ' Sunnyvale '); #插入表记录> select * from base;> select * from location; > select * from base,location where base.name= ' Barbara ' and location.city= ' Sunnyvale ' and base.id=location.id;1.8 Database Authorization– In addition to the root user, this nsd1710 database can only be queried by the user Lisi, the password for this user is 123MARIADB Database MySQL----->user–grant permissions list on database name. Table name to User name @ Clien
Version type
IP Address
OS
Centos6.5x86_64
No
MARIADB Master
10.0.10-mariadb-log Source Distribution
192.168.1.122/24
MARIADB Slave
10.0.10-mariadb-log Source Distribution
192.168.1.210/24
2.
MARIADB Multiple source replication data rollup, as shown in the following figure, in some scenarios, there are A and b two node databases, from the data to read AB Two nodes data to a Slave database
Main A and main B:
[Root@master local]# Tar XF mariadb-10.0.10-linux-x86_64.tar.gz[Root@master local]# ln-sv mariadb-10.0.10-linux-x86_64 MySQL' MySQL '-> '
Install and configure MariaDB, springboot, and centosmariadb in Centos or redhat.1. Install MariaDB
Installation command
yum -y install mariadb mariadb-server
After MariaDB is installed, start MariaDB.
systemctl start
Tags: ams min struct logs location process IDE exec NECUnder CentOS7, the official MySQL RPM package is mariadb and can be viewed MARIADB package information [Email protected] ~]$RPM- qi mariadb # requires first installing the package NAME:MARIADB # name Epoch:1Version:5.5.52 # VersionRelease:1. EL7 # Release ARCHITECTURE:X86_64 # supports installed CPU architec
What is MARIADB?MARIADB database management System is a branch of MySQL, mainly by the open source community inMaintenance, the GPL licensed MARIADB is fully compatible with MySQL, including APIs andThe command line makes it easy to be a replacement for MySQL. In the storage engine, use the XTRADB(English: XtraDB) to replace MySQL's InnoDB.
, posix_kill, posix_mkfifo, delimiter, posix_setsid, posix_setuid, posix_strerror, posix_times, posix_ttyname, posix_uname
# List functions that can be disabled by PHP. If some programs need this function, they can be deleted and disabled.
Expose_php = Off # disable display of php version information
Short_open_tag = ON # php short labels supported
Open_basedir =. :/tmp/# set to allow access to the current directory (that is, the directory where the PHP script file is located) And/tmp/directory,
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
the browser display "Welcome to nginx!" Indicates that Nginx is operating normally.Then access the http://ip/phpinfo.php in the browser, if PHP can parse normally, will appear PHP installation configuration and feature List statistics.Three. Yum Install MARIADB DatabaseDelete all mysql/mariadb-related RPM packagesMySQL is no longer included in the CentOS 7 source, but instead
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.