the-e and-S parameters. -E parameter is used in mysql for master-slave configuration to view the binlog File Name of the master database and the pos position node. -S parameter mysql multi-instance usage. For details, see "mud: mysql5.5 multi-instance deployment". As follows:
Mysql-uroot-p123456-S/data/3307/mysql.
personalized. after changing to cmake, this will cause a lot of trouble.Fortunately, the MySQL official website provides a parameter comparison table between the two. we can keep the previous parameters as much as possible to compile and configure the new MySQL version.
Configure and cmake parameters:Http://forge.mysql.com/wiki/Autotools_to_CMake_Transition_Guide
Take myself as an example. the parameters t
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
How to change MySQL Default datadir in CentOS
1. Create a data directory under the home Directory
Cd/home
Mkdir data
2. Stop the MySQL service process:
Mysqladmin-u root-p shutdown
3. Move the entire/var/lib/mysql directory to/home/data
Mv/var/lib/mysql/home/data/
In this way, the
security, it is best to install MySQL program files and data on "different hardware" separately.
// |/Usr Install the MySQL service and start the service:
MySQL generally uses the current STABLE version:
Try not to use the -- with-charset = option. I feel that with-charset is only useful in alphabetical order. These options will cause a lot of trouble for data
Buffe
His also solved, my trouble continues, still continue to look forScenario 3
Problem solved, unexpectedly is max_connections=1000 he said too much, and then changed to 500 also said more, but delete the problem solved.
Or not?Scenario 4/var/lib/mysql all file permissions to Mysql.mysqlNo, No.Scenario 5
Summary: Resolve cannot pass MySQL
.
Reload privilege tables now? [Y/n] y
... Success!
3. connect to the database
Parameters:
-H: host name or IP address
-P: port number. the default value is 3306.
-U: User name
-P: password
-E: specifies the SQL statement
[Root @ CentOS ~] # Mysql-u root-p
Enter password:
[Root @ CentOS ~] # Mysql-u root-p db01 # connect to the db01 database
[Root @ CentOS ~] #
future version 5.8.
Pay attention to Character Set garbled characters
Next, use the in-place upgrade Method to upgrade MySQL5.6 to MySQL5.7.
In-place upgrade MySQL
Environment:
5.6.15-> 5.7.20
Preparations before Upgrade:
Backup + pay attention to new version changesUpgrade operation:
1. Download and decompress the 5.7 software package.
# tar -xzvf mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz# ln -s
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
MySQL system tables ...
141210 16:09:24 [Warning] ' thread_concurrency ' is deprecated and'll be removed in a future release.
OK
Filling help Tables
... 141210 16:09:24 [Warning] ' thread_concurrency ' is deprecated and'll be removed in a future release.
Ok 3, start a new process, here to pay attention to port,sock files, there are PID files, which are new, user or forget the password instance user, and n
One MySQL server starts multiple ports: bitsCN.com
One MySQL server starts multiple ports
In the test Mysql multi-master and one slave server, that is, one slave server synchronizes multiple ports to different master databases. This document describes how to enable different ports.
Detailed steps:
1. first, copy the my. cnf configuration file. if you open s
table tabTest;
After the repair, you can use the check table command to perform the check. You can also use the check/repair function in the new phpMyAdmin version.
2. myisamchk, isamchk
Here, myisamchk applies to MYISAM data tables, while isamchk applies to ISAM-type MySQL data tables. The main parameters of these two commands are the same. Generally, new systems use MYISAM as the default data table type. here we use myisamchk as an example.
Tar-zxv-fmysql-5.6.16.tar.gz
Cdmysql-5.6.16
V. Compile and install MySQL
From mysql 5.5, mysql source code installation began to use cmake, and the source code compilation configuration script was set.-DCMAKE_INSTALL_PREFIX = dir_name: Set the mysql installation directory-DMYSQL_UNIX_ADDR = file_name to set the list
following is mainly on Linux under the C language to connect the MySQL database, and read the inside of the How the data is returned, and how it is compiled. Most of the code here refer to the. C source files in the MySQL release package, and you can also go inside to find the relevant code, the following code realizes the connection to the local MySQL server on
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.