We run 3 MySQL services on the same server to open the 3306,3307,3308 port separately############################################### # # Installation MARIADB # ###############################################Slightly############################################### # # of Initialization Environment # ###############################################1) Create 3 directories to save 3 data for each instance[[email
Tags: root word upd related ges centos other iad insert1, installation mariadb Installation commands Yum-y Install Mariadb-server mariadb-client Installation Complete mariadb, first start mariadb Set boot up The following is a sim
Label:1. Add the mariadb yum data source Create the Mariadb.repo file into the/etc/yum.repos.d/folder (the file name is customized, but it is recommended to name Mariadb.repo, which is the official name): cd/etc/yum.repos.d/
sudo vim/etc/yum.repos.d/mariadb.repo Then write the following (from the official): # MariaDB 10.0 CentOS repository list-created 2015-05-12 02:16 UTC
# http://mariadb.org/
Since MySQL was acquired by Oracle, the community has been worried that MySQL may be closed to the source or some other cause of MySQL support problems. So now a lot of release versions default databases are transferred from MySQL to MARIADB. And the community is also starting to support MARIADB, plus the use of mariadb and the API and MySQL exactly the same, so
15 useful MySQL/MariaDB performance tuning and Optimization Techniques
MySQL is a powerful open-source Relational Database Management System (RDBMS ). It was released in 1995 (20 years ago ). It uses Structured Query Language (SQL), which may be the most popular choice in database content management. The latest MySQL version is 5.6.25, which was released on July 25, May 29, 2015.
An interesting fact about MySQL is that its name comes from Michael Wide
and Modify permissions#mkdir -pv /data/sqldb/{3306,3307,3308}/{etc,log,data,pid,socket,tmp}#chown -R mysql.mysql /data/sqldb/#chmod -R 770 /data/sqldb/12. Copy the Master profile my.cnfThis is the first to confirm how much memory is in the machine so that you can use a reference template.#grep memory support-files/*Find a template for native memoryThe native memory is 512M, so the my-large.cnf configuration file is selected#\cp /usr/local/mysql/support-files/my-large.cnf /etc/my.cnf9. Modify th
Tags: tin ogr--node Port Art 1.7 stat NanYum Install Mariadb-server mariadb-clientTip: Mysql-server-5.1.73-8.el6_8.x86_64 was supposed to being removed is not!Since the installation of the operating system, MySQL also installed a piece, but the installation of MARIADB does n
Database replication in the actual production environment for improving the security of data and database performance is an important means, but no matter how clever, you should start from a simple copy! Today's experiment begins with a simple copy!
Experiment Preparation
Server Type/Name
IP Address
Software version
Platform
Master/node4
192.168.1.114
How to migrate MySQL 5.5 database to MariaDB 10 on Ubuntu
This article has been tested by ourselves. The system is Ubuntu 14.04 server, and the Mysql database is Mysql 5.5. We are preparing to migrate it to Maria DB 10.1, for details about the migration methods of other versions, go to the official website. Here I will only talk about what I have tested.
As to why Oracle migrated to
Slave2
192.168.100.158
Db4
4
Virtual IP address (VIP):
IP
role
192.168.100.170
Writer
192.168.100.171
Reader
192.168.100.172
Reader
Experimental deployment of one, in Master1, Master2, slave1, Slave2 installed MARIADB, the experiment with mariadb instead of MySQL, the
Environment description
Main Library server: 192.168.71.151,centos 7,mariadb 10 installed, no application data.1:192.168.71.152,centos 7,mariadb 10 from the library server is installed and no data is applied.2:192.168.71.153,centos 7,mariadb 10 from the library
of the above are duplicated, do not worry, installed will skipYum Install Make GCC GCC GCC file bzip2 bzip2 Unzip libcap lsof libxslt libxslt-develSecond, software Installation and configuration0. Create new users and folders-s/sbin/false -G www--s/sbin/false -G mysql-m MySQL#创建web目录Mkdir-r/var/www/htmlChown-r www:www/var/www/1. Installing MARIADBYum Install Mariadb-server
, the current MARIADB update speed is far beyond the speed of the Oracle team, After all, the founder of MySQL led the team, how not to let people rest assured.
Installation of MARIADB
Linux through
Yum Install mariadb mariadb-server #询问是否要安装, enter Y to install au
Tags: CentOS 7 Maria Export database is not installed host details creatMariaDB is a part of MySQL, and for some reason it replaced MySQL as the default database for Rhel/centos 7. Operation against the database we often do the operation is to delete and change, then introduce the next mariadb some basic management commands.(PS: # This represents the shell's prompt,> here represents the MariaDB shell prompt
Tags: nts lin set for BLE use MCT default letNote: In the case of CentOS 7, you can use MARIADB instead because the MySQL database has been removed from the default program list:
Installation commands
Yum Install Mariadb-server mariadb
Related commands for
node[[emailprotected]~]#vim/etc/my.cn relay_log =relay-log #启动中继日志 Relay_log_index=relay-log.index read-only=1 #开启只读模式, this restriction is not valid for users with super privileges #如果需要锁定所有用户 can execute SQL statements (FLUSH TABLESWITHREADLOCK;) server_id=8 Innodb_file_per_table=on skip-name-resolve ②, before configuring, check the status of the server and whether the replication thread is started ma
test Environment system version: CentOS Linux release 7.3.1611 (Core)1.Installing the MARIADB packageThis package contains a Mariadb-server and some tool kits[email protected] conf.d]# yum groupinfo mariadbloaded plugins:fastestmirrorloading mirror speeds from cached Hostfile GROUP:MARIADB database server group-id:mari
System Environment: CentOS 7MARIADB version: Mariadb 10.0.14Download Address: http://mirrors.neusoft.edu.cn/mariadb/mariadb-10.0.14/source/mariadb-10.0.14.tar.gzOther Package Address: https://downloads.mariadb.org/
Add a MySQL User
Useradd MySQL
Start Compiling installation mari
Tags: yum install TPS name Step service LAN logs baseurl netReference article: Yum install mariadb (quick install with domestic mirror, three minutes installation completed) Installation environment: VirtualBox under CentOS6.6 (32-bit) Problems encountered:With Maria's official installation, the source is a foreign source, the download is very slow and the download fails. Installation steps:1. Generate source from online source generator provided by
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.