Change MySQL database storage path and port in Linux
Suppose we change to the/opt/data directory to pour:
1, opt directory to establish the data directory
Mkdir/opt/data
2, stop the MySQL service process
Mysqladmin-u root-p shutdown
3.
**************************************** ******************
The first part is to build a multi-mysql service on a server.
**************************************** ******************
I. xuyan
There is a mysqld_multi command in Mysql that can be used
Port MySql to the embedded Linux platform bitsCN.com
Recently in the attendance machine system, hardware used cortex-A8, haha, in fact, is a bit wasteful, 2410 can be. Therefore, we need to consider the storage of attendance data, which was
Run multiple MySQL services on the same machine
Run multiple MySQL services on the same machine
**************************************** ******************
The first part is to build a multi-mysql service on a server.
*****************************
Set Change root passwordNote: How to change the root password, about the root user is the MySQL Super administrator user, it is similar to the root user inside the Linux operating system, to distinguish between the root of MySQL and the system root
Mysql Cluster 1: master-slave replication, using mysql-proxy for load balancing Mysql Cluster
There are many mysql Cluster architecture methods, and different architectures are implemented according to different requirements. Simply put, mysql
1. download MySql
1. download MySql
Open http://www.mysql.com/downloads/mysql/#downloads download in browser
My downloaded version is Red Hat 5 version of http://www.mysql.com/downloads/mirror.php? Id = 407552
Upload the file to the server, or
MySQL has become one of the most widely used databases on the network, especially for Web applications. it occupies the absolute advantage of small and medium applications. All of this comes from its small and easy-to-use, secure and effective, open
Role of the master and slave:
1. It can be used as a backup method.
2. read/write splitting to relieve the pressure on a database
MySQL master-slave backup principle:
Mysql master-slave replication requires at least two Mysql services. Of course,
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.