1234567891011121314151617181920212223242526272829303132333435363738394041424344
-- Defaults-file = # path of the default configuration file. if the parameter is not set, xtrabackup searches for the configuration file/etc/my in sequence. cnf,/etc/mysql/my. cnf,/usr/local/etc/my. cnf ,~ /. My.
Directory./usr/src is the recommended command.
[Root @ serv01 opt] # tar-xvf mysql-5.5.29.tar.gz-C/usr/src/
Step 4: Enter the MySQL decompression Directory
[Root @ serv01 opt] # cd/usr/src/mysql-5.5.29/
# Installation help documentation (refer to this file for installation)
[Root @ serv01 mysql-5.5.29] # vim INSTALL
Mysql data backup and recovery, mysql backup and recoveryBackup/recovery policies:1. Regular mysql backup and recovery time that the system can afford should be taken into consideration.2. Make sure that mysql opens log-bin. With binarylog, mysql can perform full recovery, t
:
Execute the following statement for full backup:
[Plain]
Innobackupex -- defaults-file =/opt/mysql/my. cnf -- user = root -- password = ***/backup/mysql/data
This statement will copy the data file (by my. specify the variable datadir in cnf) to the backup directory (/backup/mysql
variable value can be used to improve performance. By comparing variables in Connections and Threads_created states, you can see the role of this variable. I set it to 80. Key Parameter 9: the number of seconds the wait_timeout server waits for action on a connection before closing it. The default value is 28800. I will change it to 7200. Note: you can modify the parameters by modifying the/etc/my. cnf file and restarting
The source code of mysql. the serial number is mysql-5.0.20a.tar.gz. Of course, the other code can be used only for testing. Red Hat Linux as 4 is used for Linux.
Installation steps:
1.decompress mysql-5.0.20a.tar.gz.
Command: tar-zxvf Mysql-5.0.20a.tar.gz
2. Configure Mysql
Compile and install Ubuntu-12.04.2 on MySQL-5.6.10 [Installation notes] Ubuntu
BitsCN.com
Compile and install the Ubuntu-12.04.2 on the MySQL-5.6.10 [Installation notes]
The following installation involves several issues that need to be explained in advance:
1. all downloaded files will be saved in the/usr/local/src/directory.
2. mysql will run as a
.i386.rpm as an example,
Put it in the/data Directory
Cd/data
Rpm-ivh MySQL (best combination with PHP)-server-4.0.14-0.i386.rpm
After the installation is complete, there will be a MySQL (the best combination with PHP) in the/usr/share/MySQL (the best combination with PHP) directory) mySQL (the best combi
garbled characters in Mysql. Mysql is installed on Linux.
Solution and Operation steps for Mysql to solve garbled characters in Linux:
1. find the. cnf configuration file in Mysql.
Install the mysql program in win
There are different ways to modify the MySQL character set in different environments. The following describes how to modify the MySQL character set in the Liunx environment. If you are interested in this, take a look. Modify MySQL character set in Liunx: 1. find the location of MySQL
/mysql # chown-R root.
/Usr/local/mysql # chown-R mysql data
/Usr/local/mysql # chgrp-R mysql
◆ 8. create and modify/etc/my. cnf as needed. refer to the configuration:
[Mysqld]
# Set the default value to the INNODB table and suppo
11. mysql input security: mysql
1. Try to use the "bind parameter" function. pdo can be used in php to perform a series of operations. 2. php can use the mysql_real_escape_string () function to filter input;
How to configure the security of the MySQL server? Due to Chroot reasons, the configuration file may also be different. False actual operations may encounte
:
(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 folder. You 'd better change the folder name to mysql.
(3) In. /support-files/mysql. server start may prompt a warning when starting MySQL. It means that when the ser
DISABLED, that is, SELINUX = DISABLED
2. 6. Create a mysql userGroupadd-g 27 mysqluseradd-u 27-g mysql mysqlid mysqluid = 501 (mysql) gid = 501 (mysql) groups = 501 (mysql)
2. 7. Create related directoriesMkdir-p/data/mysql/{mysq
-5.0.15-0.i386.rpm
# Rpm-ivhuMySQL-client-5.0.15-0.i386.rpm
Q: How to install a compiled mysql binary package
A: first download the appropriate binary package, such as downloading the file mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz
# Groupadd mysql
# Useradd-g mysql
# Cd/usr/local
# Tar zxf
parameter section marked by [mysqld]) in the CNF configuration file.1.2. MySQL Master/Slave Server Configuration
Master Server IP Address: 192.168.1.60
Slave service IP: 192.168.1.61
Linux: centos
MySQL version: 5.1.58
The following configurations are configured on this service:
I. primary database operations
View the my. CN
to the host, run 'flush privileges' on the host, but don't worry, because we will stop the server in the following steps.
Now we need a snapshot of the host database and configure the host to generate binary update logs. First, edit the 'My. cnf 'file to allow Binary updates. Therefore, add a line 'log-bin' somewhere below [mysqld '. When the next Server is started, the host generates a binary Update Log (named:
-Bin.
). To make the binar
/support-files/solaris/postinstall-solaris
Real 0m8. 439 s
User 0m3. 353 s
Sys 0m4. 616 s
9 init db, initialize the database
Ll/home/data/mysql/data
Cd/home/data/mysql/data
Grant mysql folder permissions first
Chown-R mysql/home/data/mysql/data
Chgrp-R
1. MySQL's Way and differenceHow to troubleshoot when MySQL boot encounters a problem/etc/init/d/mysql Start | Restart | Stop this script is generally installed after the automatic generation by mysql.server, if it is directly decompressed using the need to manually add.set MySQL auto-start: chkconfig MySQL on, if the
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.