Tags: Linux LAMP MySQLI. Overview of MYSQL/MARIADBMySQL was developed by my SQL company in 1995, the relational database management software, MySQL development several times after the version replacement, the latest is 5.7ga/8.0dmr,my SQL company itself has also experienced two acquisitions, first was acquired by Sun, and then acquired by Oracle, So now MySQL belongs to Oracle's commercial software.In 2009, one of MySQL's original authors and some MySQL developers developed the
Tags: arc create one form info user into Var whereMySQL simple operation one, view database show DATABASES; For example: MariaDB [(None)]> show databases; +--------------------+ | Database | +--------------------+ | Information_schema | | MySQL | | Performance_schema | | Test | +--------------------+ 4 rows in Set (0.00 sec)Second, create a database Create database name; For example: MariaDB [mysql]> create
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 MARIADB database
Systemctl st
ObjectiveSystem Platform:CentOS Release 6.9 (Final)Kernel 2.6.32-696.el6.x86_641. Go to the official website to download the appropriate source packagehttp://mariadb.org/Mariadb-5.5.59.tar.gzCheck that the database is installed in the system.#rpm -qa|grep MariaDB#rpm -qa|grep mysql2. Go to the official website to download CMake source packagehttps://cmake.org/CMake The latest version requires C++11 support,
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 simple configuration of
Centos7 cannot start the problem after mariaDB is installed using yum. centos7mariadb
Centos7's built-in MySQL image has abandoned Oracle's MySQL. Instead, use the MySQL Branch database mariaDB and install mariadb as follows:
[Plain] view plain copy
Yum install mariadb
Run the systemctl start
Tags: unit disabled isa mkdir turn off enable thread led linux6MARIADB as a replacement for MySQL now the new version of the CentOS package has been replaced with mariadb, just like the previous one. Change to SystemdInstall some librariesYum Install GCC GCC wget Net-toolsTo view the SELinux status:/usr/sbin/sestatus-v The #如果SELinux status parameter is enabled;If it is off, you can skipModify the/etc/selinux/config fileViChange Selinux=enforcing to
Tags: upgrade PHP-FPM recommended multiple services three-party website program file rootIn general, upgrading a production environment is not recommended and will stop LNMP related services after the upgrade begins.This article applies only to LNMP1.2, 1.3 and 1.4 later versions!In LNMP currently LNMP v1.2/1.3+ version has included Nginx, MYSQL/MARIADB, PHP, phpmyadmin upgrade script, can help build the environment of the program to upgrade. (Note: T
Tags: data variable admin ant upd file Enter Maria will1. Start mariadbSystemctl Start mariadb2. Set Boot mariadbSystemctl Enable MARIADBFirst, change the user password, take root as an example1. Know the root password, need to modifyMethod A. Log into the database to modify
# mysql-uroot-p/* Enter password to enter */
/* First way: Edit database Fields directly */
MariaDB [(none)]> use MySQL;
Tags: display based on ADB selection DDR gen average max ExtInsert Inserts DataHeads-Up record insertionINSERT into Tb_name (col1,col2,...) VALUES (Val1,val2,...);Example:INSERT INTO tablename (Field 1 name, field 2 name,......) VALUES (Field 1 value, field 2 value,...)MariaDB [testdb]> INSERT Students (Id,name,ages,gender) VALUES (1, ' Tom ', +, ' M '); MariaDB [testdb]> INSERT Students (name,ages,gender)
For MySQL Percona mariadb three have their own audit plugin, but, MySQL audit plugin is only Enterprise version, but also have a lot of third-party MySQL audit plugin, and Percona and MARIADB are GPL audit pluginFirst look at the MARIADB audit plugin[[Emailprotected]_aolens_01/usr/local/mysql]#mysql-uroot-p2aa263a42dd248welcome tothemariadbmonitor.commandsendwith
Tip
For the principle and implementation of master-slave replication, see MySQL master-slave replication.
I. Questions about Replication
1. asynchronous replication solves those problems
The basic problem solved by replication is that data on one server is synchronized with that on another server, which can be located in different network topologies and specific databases on the whole server, you can even copy a specific table.
There are two replication schemes:
First, both statement-based repli
Tags: mariadbPreface: MARIADB Database management system is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL licensing MARIADB is fully compatible with MySQL, including the API and command line, so that it can easily become a substitute for MySQL. For the storage engine, use XtraDB (English: XtraDB) instead of the MySQL InnoDB. M
Tags: Linux database mariadbProblem description, when landing mariadb today, found that any SQL statement can not be executed, reported the following errorMariaDB [(None)]> show databases;
Ignoring query to other database
MariaDB [(none)]> show tables;
Ignoring query to other database
MariaDB [(None)]> Select Database ();
Ignoring query to other databaseToss for
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 not uninstall the previous installation of MySQL, resulting in
I. Environmental preparedness1. First introduce the environment, and our protagonists todayI use the environment is minimized installation of the centos7,mariadb (rumors of MySQL after the acquisition of Oracle, people worried like Java as destroyed in Oracle's hands as a new branch, but still like MySQL),php7.1.0 (version does not matter, are 7 version), nginx1.10 (we installed stable version without blindly pursuit of new), memcached, and Redis can
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
mariadb-10.0.10
CentOS 6.5 x86_64
Compiling a tutorial on Mac OS to install the NGINX+PHP+MARIADB development environment, NGINXMARIADB
Because of the urine nature of Oracle. MARIADB should have replaced MySQL. So abandon MySQL.
1, compile NginxDownload Nginx,openssl,pcre separatelyWhen you compile OpenSSL, you will be prompted
warning! If you wish to build 64-bit library and then you have Toinvoke './configure darwin64-x86_64-cc ' *manual
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.