Install MySQL on Linux

Source: Internet
Author: User


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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.