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
/mariadb Restart to start again after the changeIf it still does not change, Killall mysqld, and then start the #/etc/init.d/mariadb start this service, and then you can see DATADIR=/DATA/MARIADBSecond, Apache installationApache is the name of a foundation,httpd is to install the package, the early name of it is called Apache.Apache official website: www.apache.orgNow it should be called httpd, not Apache,l
Tags: mysql install mysql mariadb mariadb installationFirst, prefaceMySQL is a relational database management system, is the most popular relational database management system, because of its small size, fast, low total cost of ownership, and was completely open source, so popular. But since MySQL was sold to Sun, then Sun was acquired by Oracle, and although there is also a free
Now choose to continue using MySQL or discard itThere is enough reason to switch to MariaDB.
Performance tests on the MariaDB blog.
MariaDB is a branch of MySQL source code. After realizing what Oracle will do for MySQL license, MariaDB is separated and MySQL has been acquired by Sun and Oracle ). These concerns are w
install php # enter Y as prompted until installation is complete
2. install the PHP component so that PHP supports MariaDB
Yum install php-mysql php-gd libjpeg * php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash
# Select the preceding installation package for installation. enter Y and press enter as prompted.
Systemctl restart mariadb. service # restart
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
CentOSandRHEL7: InstallLinux, Apache, MariaDB, PHP (LAMP) Stack RHELCentOSApacheLAMPMariaDB
IAm new Red Hat Enterprise Linux version 7 user/sysadmin/developer. this version made the big number change for RHEL 7/CentOS 7. how can I install LAMP (Linux, Apache, MariaDB, PHP) stack on a RHEL
parameters of multiple different files are merged and the configuration file found at the End prevails. the configuration file used by mysql is/etc/mysql/my. cnf instead of/etc/my. cnf.
11. Copy the service script
# Cp support-files/mysql. server/etc/rc. d/init. d/mysqld
Add the mysqld service to the service list
# Chkconfig -- add mysqld
12. Start the service
You can see that mysql is successfully started and port 3306 has been listened.
13. Add the mysql script to the PATH
# Vim/etc/pro
database are not strongly consistent, but have a certain delay, many transactions may encounter errors due to delay. Dual-master does not greatly increase the write throughput because all data must be written to each database. Although there can be a small increase due to batch, it is insignificant for errors caused by latency.
It makes sense to configure dual-master, but it is not used to write data at the same time. At the same time, only one database is written. When the master fails, it is
| | Collation_datAbase | Utf8_general_ci | | Collation_server |
Utf8_general_ci |
+----------------------+-----------------+ 3 rows in Set (0.00 sec)
The character set configuration is complete. 4, add users, set permissions
Create a user command
Mysql>create user username@localhost identified by ' password ';
Create a user and authorize a command directly
Mysql>grant all on *.* to Username@localhost indentified by ' password ';
Grant the right to the extranet, but not two level authorizati
Tags: error sha other listen Linu line bug logging querySystem 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-10.2.12.tar.gzCheck that the database is installed in the system.#rpm -qa|grep MariaDB#rpm -qa|grep mysqlCMake The latest version requires C
the test database, reload the permission table.
Mysql_secure_installation
I chose Y and press Enter.
After configuring the Security Configuration of the database, run the following command to check the version to verify that MariaDB has been installed successfully.
Mysql -- version
You can log on through the MariaDB c
There is enough reason to continue using MySQL or switch from MySQL to MariaDB.
Performance tests on the MariaDB blog.
MariaDB is a branch of MySQL source code. After realizing what Oracle will do for MySQL, MariaDB is separated (MySQL has been acquired by Sun and Oracle ). These concerns are well-founded, and I will d
privilegetables now? [Y/n] y
... Success!
Cleaning up...
All done! If you 'vecompleted all of the above steps, your MariaDB
Installation shouldnow be secure.
Thanks for usingMariaDB!
[Root @ localhost ~] #
[Root @ localhost ~] # Service mysqld restart
Shutting downMySQL... SUCCESS!
Starting MySQL. SUCCESS!
[Root @ localhost ~] # Mysql-u root-p
Enter password:
Welcome to theMariaDB monitor. Commands end with; or \ g.
Your MariaDBconnection id i
following this file content, described very detailed, than I write much better. If you do not understand, then see this version of it 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0059.gif "alt=" J_0059.gif "/>Mysql-test:mysql Test related components, there are documents, interested can look at, I do not describe in detailShared content of Share:mysqlLib:mysql run the library file that needs to be calledSql-bench: Do stress testing tools
Tags: lnmp centos7.2Recently there is a Erp+php-web test page environment deployment needs, need to deploy nginx+php cgi+socket mode, MySQL environment. To see if the service port is up, we are accustomed to using the netstat command to view it, so if you do not have Netstat installed in your system, you can install the Yum install-y net-tools directlyLab Environment:Linux version: CentOS 7.2Nginx Version:
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
Ubuntu Apt-get Way to install Nginx
ReferenceHttp://nginx.org/en/linux_packages.html
First of all
In order to authenticate the Nginx repository signature and to eliminate warnings about missing PGP key during N of the Nginx package, it is necessary to add the key used to sign the Nginx packages and repository to the APT program K Eyring.
Download key
wget Http://nginx.org/keys/nginx_signing.key
And then add
sudo apt-key add Nginx_signing.key
Join Nginx's Repository
cd/etc/apt/sources.list.d
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.