1153 2012-04-19 binary-configuredrwxr-xr-x 2 mysql 4096 08-23 charsets-rwxr-xr-x 1 mysql 4528 config. huge. ini... -- because the MySQL database directory is already mysql user permission, therefore, you do not need to modify [root @ bakdbserver mysql] # cd/var/lib/
/galera-23.2.7-src.tar.gz
Add data source
baseurl=http://mirror.neu.edu.cn/fedora/epel//6Server/x86_64/
Add the following software package
yum erase -y mysql.x86_64 mysql-devel.x86_64 mysql-libs.x86_64 yum install -y boost-devel.x86_64 libodb-boost-devel.x86_64 bzr scons
Decompress the galera-23.2.7-src.tar.gz and compile it
cd /usr/srctar xf galera-23.2.7-src.tar.gzcd galera-23.2.7-srcscons
Libgalera_smm
] # service mysql stop
MySQL is running but PID file cocould not be found
Then go to mysql data dir and check that there is no pid file.
At this time, my first response was that the configuration file was incorrect, resulting in abnormal stop and restart.
Because the server is good, I am not in a rush to compare the previously backed up/etc/my.
Correct compilation methods are important, but they are only part of improving MySQL server performance. Many MySQL server parameters will affect the performance of the server, and we can save these parameters to the configuration file so that these parameters will automatically take effect each time the MySQL server is started. This configuration file is my.
related to the number of copies, which is a multiple of fragments. For example, there are four data nodes for two replicas and two fragments for each copy. There is no need to have more than one copy .. The data node is started with the command ndbd.
SQL nodes: these nodes are used to access cluster data. For MySQL clusters, client nodes are traditional MySQL servers that use the NDB Cluster Storage engine
/data/In this way, the MySQL data file is moved to/home/data/MySQL. 4. Find the my. CNF configuration file.If my. for the CNF configuration file, go to/usr/share/MySQL/and find *. copy one of the CNF files to/etc/and change it to
restrict IP access to ensure security.
MySQL accounts are generally set to the same account on the master and slave, and are remotely accessible.
Note: If you are using a Linux/Unix operating system, check whether firewall limits MySQL remote access. If yes, it is best to open the remote access port and set access IP address restrictions.
Because MySQL account a
mysql restart
[Root @ loaclhost]/usr/bin/mysql-uroot-p
Succeeded
Directory
1. Database Directory
/Var/lib/mysql/
2. configuration file
/Usr/share/mysql (mysql. server command and configuration file)
3. related commands
/Usr/bin (commands such as mysqladmin mysqldump)
used to customize other folders)Rm-rf/etc/my. cnfRm-rf/usr/my. cnfRm-rf/root/. mysql_secretThere are three installation methods:A default RPM installation method (use the default configuration)B custom RPM installation (custom database path, my. cnf configuration, log Path, etc)C. Use the source code compilation package for custom installation (not included)D. Use CentOS built-in yum tool for automatic installation (earlier version)------------------
Correct compilation methods are important, but they are only part of improving MySQL server performance. Many MySQL server parameters will affect the performance of the server, and we can save these parameters to the configuration file so that these parameters will automatically take effect each time the MySQL server is started. This configuration file is my.
Server: 192.168.1.3/Linux CentOS5.4/MYSQL 5.0
Installation and configuration steps:
1,First, allocate disk partitions in Linux to keep enough backup space for the MySQL database.
[Root @ vps mysql] # df-hFilesystem Size Used Avail Use % Mounted on/Dev/simfs 30G 2.0G 29G 7%/
2. install the MySQL database:
1> Uplo
Synchronous Asynchronous backup of two mysql databases: bitsCN.com
1. server statusServer A: 192.168.1.1Server B: 192.168.1.2
2. create a synchronization userHost domain A: 192.168.1.2 user name A: sync_a password A: aaaHost domain B: 192.168.1.1 username B: sync_ B password B: bbbAssign at least the following permissions to grant replication slave
3. execute flush privileges
4. stop MySQL
5. configure my.
).
######################################## ######################################
System environment:
RHEL 5.5 [2.6.18-194. el5]
Software environment:
Mysql-server-5.0.77-4.el5_4.2
Mysql-5.0.77-4.el5_4.2 with RHEL5 built-in RPM Package installation, master, slave server are installed, the default Database Directory is located in/var/lib/mysql/
#########
mysql varChgrp-R mysql.10. Start the mysql Application/Usr/local/mysql/bin/mysqld_safe -- user = mysql 11. Set the root password (Database DBA)Bin/mysqladmin-u root password 'root'12. log on to mysqlBin/mysql-uroot-pEnter passwor
MySQL online or offline. Everybody can refer to http://www.linuxidc.com/Linux/2013-01/78716.htm this does not know big brother or sister, write well according to this can install. Several problems may occur during installation. you can refer to the solution below:
(1) If you do not use the root user to log on, we recommend that you switch su-root to the Root user for installation.
(2) store the decompressed mysql
MySQL master-slave synchronization is a mature architecture: advantages:① The query can be performed on the slave server (that is, the READ function we often call) to reduce the pressure on the master server.② Back up data from the master server to avoid affecting the services of the master server during the backup.③ When a problem occurs on the master server, you can switch to the slave server.I. experiment environment1. IP address and Host Name192.1
| sync_relay_log | 0 | + -------------------------------- + ------- + 8 rows in set (0.00 sec) ---- the log parameter is out of date. if you use the log parameter in the startup option, it will be displayed in the err log. ---- Modify the my. cnf file and add log parameter settings
[Root @ node4 mysql5.5] # vi my. cnf [root @ node4 mysql5.5] # cat. /my. cnf |
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.