Cmake-dcmake_install_prefix=/usr/local/mysql CMake Installing the installation path
-dmysql_unix_addr=/home/mysql/mysql.sock Specify a home directory
-DDEFAULT_CHARSET=UTF8 specifies that the character set specifies UTF8
-DDEFAULT_COLLATION=UTF8_GENERAL_CI The specified character encoding is also UTF8
The-dwith_extra_charsets=all extensibility character set is also UTF8
-dwith_myisam_storage_engine=1 storage engine turns on various functions
-dwith_innobase_storage_engine=1
-dwith_memory_storage_engine=1
-dwith_readline=1 Open READLINE Platform
-denabled_local_infile=1 support for local file import
-dmysql_datadir=/home/mysql specifying the home directory of the MySQL database
-dmysql_user=mysql User Name
-dmysql_tcp_port=3306 for Port 3306
------If the error, empty the cache file-if normal can be ignored-------
Find-name CMakeCache.txt Find a txt file and delete
Rm-f./cmakecache.txt
can also be entered directly without the need to enter the editing etc/proile
Export path= $PATH:/usr/local/mysql/bin/Call environment variable can use the Chitian inside
Direct input to export path= $PATH:/usr/local/mysql/bin/can be turned on but after the server restarts, it will be executed once after the input source/etc/profile restart the file Chitian effective
Add in the profile environment variable configuration file in Chitian mode large g to line tail Big O in the next line insert
CP support-files/my-medium.cnf/etc/my.cnf SUPPORT-FILES/MY-MEDIUM.CNF Import to etc/my.cnf configuration file from support-files/ MY-MEDIUM.CNF Copy to etc/my.cn inside
CP SUPPORT-FILES/MYSQL.SERVER/ETC/INIT.D/MYSQLD Server startup will invoke the script file inside the INIT.D service startup script
Install MySQL on Linux