rows)7) Implement crash-safe using Binlog8) the replication event adopts crc32 verification to enhance data consistency during master/slave replication.9) added log_bin_basename (previously, there was no binlog location information in variables and it was inconvenient to monitor the database)
2. Compile and install MYSQL:1> install the dependency package:Yum install gcc-c ++ ncurses-devel perl cmake bison2> create a user:# Groupadd
to put the startup script to the boot initialization directory.
Start mysql service: run servicemysql start
Step 2: Configure mysql:
Check whether mysql is successfully started:
Input: ps-ef | grep mysql
Modify the root user password of mysql. if the initial root password
Share The CentOS installation process of the latest MySQL version 5.6.13 source code in CentOS.
BitsCN.com
Two months ago, the company withdrew the test server for the DBA and used a group of databases for development. some of the small functions that need to be tested need to be restarted constantly. in order not to affect the development colleagues, I have applied for another virtual machine and want to install the latest
the test ). Stop the MySql service process: the Default User Name of service mysql stop or mysqladmin-u root-p shutdownMySQL is "root". Here, "root" is not a short time to stop the MySql service process, in addition, the default "root" password is empty, so enter the password and press Enter. Move the entire "/var/lib/mysql
servicemysql start
Step 2: Configure mysql:
Check whether mysql is successfully started:
Input: ps-ef | grep mysql
Modify the root user password of mysql. If the initial root password is empty:
Run the command:./bin/mysqladmin-u root-h localhost. localdomain password 'Password'
Put the
When MySQL is started, bitsCN.com is returned.
When mysql service is started in linux
Report: Another MySQL daemon already running with the same unix socket.
Solution.
The reason is that multiple Mysql processes use the same socket.
Two solutions:
The first is to immediately shut down and use the command shutdown
Label:Official website:Dev.mysql.com/downloadsMySQL version used in the current lab environment:Mysql-5.6.29-linux-glibc2.5-x86_64.tar.gzcommands for direct wget under Linux:wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.29-linux-glibc2.5-x86_64.tar.gzDomestic Mirror website:http://mirrors.sohu.com/install MySQL:1. Unzip:Mkdir-p/data/
change it to my. CNF. The command is as follows:[Root @ test1 MySQL] # cp/usr/share/MySQL/my-medium.cnf/etc/My. CNF5. Edit the MySQL configuration file/etc/My. CNF.To ensure that MySQL works properly, you must specify the location where the mysql.
# Groupadd mysql
# Useradd-g mysql
# Cd/usr/local
# Tar zxf mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz
# Ln-s mysql-standard-4.1.13-pc-linux-gnu-i686 mysql
# Cd mysql
# Scripts/mysql_install_db -- user =
directory under the current directory is set as a mysql user
# Chgrp-R mysql. // note that the file group in the current directory is set to mysql.
# Bin/mysqld_safe -- user = root // indicates that the background is started.
If "... Ended. Press enter to display the command input line.
Check whether mysql is
Error reason: The socket file does not exist in the/var/lib/mysql directory.There are two ways to connect to a MySQL server: A TCP connection, a socket file connection. Through the socket file, start the MySQL service, the MySQL service will automatically generate a sock fil
-medium.cnf/etc/my. cnf
5. edit the MySQL configuration file/etc/my. cnf.
To ensure that MySQL works properly, you must specify the location where the mysql. sock file is generated. Change socket =/var/lib/mysql. sock to/home/
: How to compile MySQLA: Take RedHat Linux 9.0 as an example:Download file mysql-4.1.13.tar.gz# Tar zxf mysql-4.1.13.tar.gz# Cd mysql-4.1.13#./Configure -- prefix =/usr/local/MySQL -- enable-validator/-- With-mysqld-ldflags =-all-static -- localstatedir =/usr/local/MySQL/dat
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.