1. 程式人生 > >虛擬機器系統KVM MYSQL5.8.0.13 單機 FOR OEL7.5 docker安裝文件

虛擬機器系統KVM MYSQL5.8.0.13 單機 FOR OEL7.5 docker安裝文件

2. 安裝流程

2.1. 確定平臺版本和機器位數。

確定當前MYSQL版本對應各種作業系統 平臺是否支援。

2.2. 下載對應版本

2.2.1. 下載二進位制安裝包

NOTE: tar.gz tar.xz 為二進位制安裝。 RPM 為rpm 安裝包。 deb 為 deband linux 安裝包. PKG 為mac 檔案安裝包。

2.2.2. 下載yum 源配置包(社群版)

2.2.3. 下載原始碼編譯

 原始碼現目前在GIT 上託管。

2.3. 驗證下載後文件是否正確

  • LINUX AND WINDOWS MD5 驗證
shell> md5sum mysql-standard-8.0.13-linux-i686.tar.gz
aaab65abbec64d5e907dcd41b8699945  mysql-standard-8.0.13-linux-i686.tar.gz
shell> md5.exe mysql-installer-community-8.0.13.msi
aaab65abbec64d5e907dcd41b8699945  mysql-installer-community-8.0.13.msi
  • RPM 包驗證
shell> rpm --checksig MySQL-server-8.0.13-0.linux_glibc2.5.i386.rpm
MySQL-server-8.0.13-0.linux_glibc2.5.i386.rpm: md5 gpg OK

3. 使用原始碼安裝部署MYSQL到linux

3.1. 安裝編譯工具

Cmake 可以通過http://www.gnu.org/software/make/. 獲取 make 安裝包http://www.gnu.org/software/make/.

  • linux yum 源安裝
yum install cmake gcc gcc-gcc++ make git  bison boost ncurses
yum install openssl-devel openssl ncurses-devel numactl
yum install ncurses*i686
yum install libatomic
yum install  cyrus-sasl-lib*i686
yum install openldap-devel

3.2. 安裝標準原始碼包

3.2.1. 增加MySQL組

groupadd mysql

3.2.2. 增加MySQL使用者

useradd -r -g mysql -s /bin/false mysql

3.2.3. 解壓原始碼包

tar -zxvf mysql-VERSION.tar.gz
  • note:沒有z 選項
shell> gunzip < mysql-VERSION.tar.gz | tar xvf - 
  • note:使用CMAKE 解壓
shell> cmake -E tar zxvf mysql-VERSION.tar.gz 

3.2.4. 建立編譯環境

cd mysql-VERSION
mkdir bld
cd bld

NOTE:

為了保持原始碼根目錄保持原樣。建立新目錄進行編譯生成的新檔案都在bld 裡面

3.2.5. 配置原始碼編譯目錄

cmake ..
  • 使用cmake 可以使用以下選項 • -DBUILD_CONFIG=mysql_release: 配置Mysql版本的 • -DCMAKE_INSTALL_PREFIX=dir_name: 配置安裝目錄的字首。所有的安裝檔案都會在這個目錄下存在 • -DCPACK_MONOLITHIC_INSTALL=1: 編譯出來的檔案只有一個 • -DWITH_DEBUG=1:開啟debug 資訊。.

  • 顯示顯示編譯配置資訊

shell> cmake .. -L   # overview 總覽
shell> cmake .. -LH  # overview with help text 顯示每個選項的幫助
shell> cmake .. -LAH # all params with help text 所有選項的幫助
shell> ccmake ..     # interactive display 互動式顯示
  • 範例:
cmake ..  -DWITH_DEBUG=1 -DCMAKE_INSTALL_PREFIX=/app/mysql -DCPACK_MONOLITHIC_INSTALL=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/mysql-8.0.12/bld


cmake ..  -DCMAKE_INSTALL_PREFIX=/app/mysql  -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/mysql-8.0.12/bld

3.2.6. 編譯

shell> make
shell> make VERBOSE=1
shell> make -j 20 

NOTE:

第二個命令顯示更多的資訊.-j 20 為併發

3.3. 安裝MySQL

make install

NOTE:

指定安裝目錄字首,注意如果在cmke 節點已經指定目錄,則此為安裝目錄

  • 在此指定安裝目錄
shell> make install DESTDIR="/app/mysql"

3.3.1. 進入預設安裝目錄

cd /usr/local/mysql
  • 建立安全認證目錄
mkdir mysql-files
chown mysql:mysql mysql-files
chmod 750 mysql-files

3.3.2. 初始化資料庫

shell> bin/mysqld --initialize --user=mysql
  • 初始化資料庫的兩種方式
shell> bin/mysqld --initialize --user=mysql
shell> bin/mysqld --initialize-insecure --user=mysql

Note:

兩種初始化方式第一種必須強制使用密碼登入。 第二種方式可以使用跳過密碼 shell> mysql -u root --skip-password 然後更改對應密碼 mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; 在mysql 8.0 預設加密的密碼已經改了。現在預設使用caching_sha2_password 加密方式。 如果還需使用預設的mysql_native_password 加密方式的話使用預設 模式。 初始化的時候,預設路徑為/usr/local/mysql

3.3.2.1. 更改預設路徑

  • 如果要改變安裝目錄使用以下目錄:
shell> bin/mysqld --initialize --user=mysql \
         --basedir=/opt/mysql/mysql \
         --datadir=/opt/mysql/mysql/data
  • 配置檔案:
 [mysqld]
basedir=/opt/mysql/mysql
datadir=/opt/mysql/mysql/data
  • 使用配置檔案指定位置:`
shell> bin/mysqld --defaults-file=/etc/my.cnf \
         --initialize-insecure --user=mysql
  • 範例:
 shell> bin/mysqld --initialize-insecure --user=mysql \
--basedir=/app/mysql \
         --datadir=/app/mysql/mysql-files 
  • 輸出日誌:
[[email protected] mysql]# bin/mysqld --initialize-insecure --user=mysql \
> --basedir=/app/mysql \
>          --datadir=/app/mysql/mysql-files
2018-09-28T16:18:32.178288Z 0 [System] [MY-013169] [Server] /app/mysql-commercial-8.0.12-el7-x86_64/bin/mysqld (mysqld 8.0.12-commercial) initializing of server in progress as process 5328
2018-09-28T16:18:46.268910Z 5 [Warning] [MY-010453] [Server] [email protected] is created with an empty password ! Please consider switching off the --initialize-insecure option.
2018-09-28T16:18:57.082553Z 0 [System] [MY-013170] [Server] /app/mysql-commercial-8.0.12-el7-x86_64/bin/mysqld (mysqld 8.0.12-commercial) initializing of server has completed

3.4. 建立安全連線

  • 幫助說明:
Format Description
[–datadir](file:///D:/refman-8.0-en.html-chapter/programs.html#option_mysql_ssl_rsa_setup_datadir) Path to data directory
[–help](file:///D:/refman-8.0-en.html-chapter/programs.html#option_mysql_ssl_rsa_setup_help) Display help message and exit
[–suffix](file:///D:/refman-8.0-en.html-chapter/programs.html#option_mysql_ssl_rsa_setup_suffix) Suffix for X509 certificate Common Name attribute
[–uid](file:///D:/refman-8.0-en.html-chapter/programs.html#option_mysql_ssl_rsa_setup_uid) Name of effective user to use for file permissions
[–verbose](file:///D:/refman-8.0-en.html-chapter/programs.html#option_mysql_ssl_rsa_setup_verbose) Verbose mode
[–version](file:///D:/refman-8.0-en.html-chapter/programs.html#option_mysql_ssl_rsa_setup_version) Display version information and exit
  • 預設目錄
shell> bin/mysql_ssl_rsa_setup
  • 指定目錄
bin/mysql_ssl_rsa_setup --datadir=/app/mysql/mysql-files/

bin/mysql_ssl_rsa_setup --datadir=/app/mysql/data/

3.5. 安裝開發中原始碼

NOTE:

主要介紹怎樣從git 中每一個分支中安裝MySQL

  • 從git 中下載原始碼
git clone https://github.com/mysql/mysql-server.git
  • 進入目錄
cd mysql-server
  • 檢視分支結構
git branch -r
  • 檢視當前分支
git branch
  • 切換分支到8.0
git checkout 8.0
  • 檢查
git branch
  • 切換分支到5.7
git checkout 5.7
  • 更新分支
~/mysql-server$ git checkout 8.0
~/mysql-server$ git pull
  • 檢視日誌log
git log

剩下的操作跟標準原始碼包安裝一樣。

4. 啟動和關閉

 shell> bin/mysqld_safe --user=mysql &
# 6. Next command is optional

4.1. 拷貝自啟動檔案

shell> cp /app/mysql/support-files/mysql.server /etc/init.d/

4.2. 編輯my.cnf 檔案

basedir=/app/mysql
datadir=/app/mysql/mysql-files

4.3. 過載啟動專案

systemctl  daemon-reload

4.4. 檢視是否啟動MySQL

systemctl  status mysql

4.5. 開機自啟動

NOTE:

由於使用二進位制安裝,則需要配置chkconfig 。RPM 包不需要

chkconfig --add mysql.server
chkconfig mysql.server on

5. MySQL 啟動後診斷

5.1. 檢視日誌

tail host_name.err

5.2. 選擇驅動

預設為InnoDB

5.3. 確認資料檔案位置是否合適

5.4. 檢視所有配置引數和所有的環境變數

mysqld --basedir=/app/mysql --verbose –help | more

5.5. 配置檔案環境變數

mysqladmin variables
mysqladmin -h host_name variables

6. 測試MySQL

  • 檢查mysql 是否正常執行
mysqladmin version
  • 檢查配置變數值
mysqladmin variables
  • 檢查是否能登陸
mysqladmin -u root -p version
  • 關閉mysql 服務
mysqladmin -u root shutdown
  • 顯示mysql 資料庫
mysqlshow
  • 顯示某個資料庫中的表
mysqlshow mysql
  • shell 介面查詢表資料
mysql -e "SELECT User, Host, plugin FROM mysql.user" mysql

NOTE:

以上命令成功執行後則mysql 資料正常。

7. 賬戶安全

  • 使用mysqld --insecure初始化後的密碼更改
mysql -u root -p

ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
  • 如果使用mysqld --initialize-insecure 進行初始化 則:
mysql -u root --skip-password
  • 更改密碼:
ALTER USER 'root'@'localhost' IDENTIFIED BY '3345091'
  • 由於密碼複雜度有相關要求:但是測試不需要則
mysql> SHOW VARIABLES LIKE 'validate_password%';
+--------------------------------------+--------+
| Variable_name                        | Value  |
+--------------------------------------+--------+
| validate_password.check_user_name    | ON     |
| validate_password.dictionary_file    |        |
| validate_password.length             | 8      |
| validate_password.mixed_case_count   | 1      |
| validate_password.number_count       | 1      |
| validate_password.policy             | MEDIUM |
| validate_password.special_char_count | 1      |
+--------------------------------------+--------+
7 rows in set (0.01 sec)

mysql> set validate_password.policy=0;
ERROR 1229 (HY000): Variable 'validate_password.policy' is a GLOBAL variable and should be set with SET GLOBAL
mysql> set GLOBAL validate_password.policy=0;
  • 設定密碼複雜度為低。更方便測試。
ALTER USER 'root'@'localhost' IDENTIFIED BY '12345678';

8. 編譯錯誤解決

檢視CMakeCache.txt 錯誤全部解決後然後刪除CMakeCache.txt 重新cmake

編譯工具無法找到: 可以使用the CMAKE_C_FLAGS and CMAKE_CXX_FLAGS 指定編譯工具

shell> CC=gcc
shell> CXX=g++
shell> export CC CXX

確保這個引數在disable 狀態下。因為開啟這個引數會把警告變成錯誤。導致編譯無法進行編譯下去。

如果遇到以下錯誤

make: Fatal error in reader: Makefile, line 18:
Badly formed macro assignment
Or:
make: file `Makefile' line 18: Must be a separator (:
Or:
pthread.h: No such file or directory

請升級make 版本。確保make 3.75 以上

如果遇到

"sql_yacc.yy", line xxx fatal: default action causes potential...

這個錯誤 請升級bison older than 1.75 以上

9. 附錄

9.1. 忘記root 密碼

  • 方法1:
kill `cat /mysql-data-directory/host_name.pid`
  • 把以下語句儲存到檔案中
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';

例如:/root/mysql-init

  • 開始改變密碼
mysqld --init-file=/home/me/mysql-init &

mysql 服務會自動啟動。

  • 然後刪除儲存密碼的檔案。 方法2: 新增my.cnf 選項
--skip-grant-tables:
  • 重啟MySQL
  • 更改密碼
mysql
FLUSH PRIVILEGES;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';

9.2. 編譯選項引數

Formats Description Default Introduced Removed
[BUILD_CONFIG](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_build_config) Use same build options as official releases
[BUNDLE_RUNTIME_LIBRARIES](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_bundle_runtime_libraries) Bundle runtime libraries with server MSI and Zip packages for Windows OFF 8.0.11
[CMAKE_BUILD_TYPE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_cmake_build_type) Type of build to produce RelWithDebInfo
[CMAKE_CXX_FLAGS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_cmake_cxx_flags) Flags for C++ Compiler
[CMAKE_C_FLAGS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_cmake_c_flags) Flags for C Compiler
[CMAKE_INSTALL_PREFIX](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_cmake_install_prefix) Installation base directory /usr/local/mysql
[COMPILATION_COMMENT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_compilation_comment) Comment about compilation environment
[CPACK_MONOLITHIC_INSTALL](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_cpack_monolithic_install) Whether package build produces single file OFF
[DEFAULT_CHARSET](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_default_charset) The default server character set utf8mb4
[DEFAULT_COLLATION](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_default_collation) The default server collation utf8mb4_0900_ai_ci
DISABLE_DATA_LOCK Exclude the performance schema data lock instrumentation OFF
[DISABLE_PSI_COND](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_cond) Exclude Performance Schema condition instrumentation OFF
[DISABLE_PSI_ERROR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_error) Exclude the performance schema server error instrumentation OFF
[DISABLE_PSI_FILE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_file) Exclude Performance Schema file instrumentation OFF
[DISABLE_PSI_IDLE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_idle) Exclude Performance Schema idle instrumentation OFF
[DISABLE_PSI_MEMORY](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_memory) Exclude Performance Schema memory instrumentation OFF
[DISABLE_PSI_METADATA](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_metadata) Exclude Performance Schema metadata instrumentation OFF
[DISABLE_PSI_MUTEX](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_mutex) Exclude Performance Schema mutex instrumentation OFF
[DISABLE_PSI_PS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_ps) Exclude the performance schema prepared statements OFF
[DISABLE_PSI_RWLOCK](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_rwlock) Exclude Performance Schema rwlock instrumentation OFF
[DISABLE_PSI_SOCKET](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_socket) Exclude Performance Schema socket instrumentation OFF
[DISABLE_PSI_SP](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_sp) Exclude Performance Schema stored program instrumentation OFF
[DISABLE_PSI_STAGE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_stage) Exclude Performance Schema stage instrumentation OFF
[DISABLE_PSI_STATEMENT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_statement) Exclude Performance Schema statement instrumentation OFF
[DISABLE_PSI_STATEMENT_DIGEST](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_statement_digest) Exclude Performance Schema statements_digest instrumentation OFF
[DISABLE_PSI_TABLE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_table) Exclude Performance Schema table instrumentation OFF
[DISABLE_PSI_THREAD](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_thread) Exclude the performance schema thread instrumentation OFF
[DISABLE_PSI_TRANSACTION](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_psi_transaction) Exclude the performance schema transaction instrumentation OFF
[DISABLE_SHARED](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_disable_shared) Do not build shared libraries, compile position-dependent code OFF
[DOWNLOAD_BOOST](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_download_boost) Whether to download the Boost library OFF
[DOWNLOAD_BOOST_TIMEOUT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_download_boost_timeout) Timeout in seconds for downloading the Boost library 600
[ENABLED_LOCAL_INFILE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enabled_local_infile) Whether to enable LOCAL for LOAD DATA INFILE OFF
[ENABLED_PROFILING](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enabled_profiling) Whether to enable query profiling code ON
[ENABLE_DEBUG_SYNC](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enable_debug_sync) Whether to enable Debug Sync support ON 8.0.1
[ENABLE_DOWNLOADS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enable_downloads) Whether to download optional files OFF
[ENABLE_DTRACE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enable_dtrace) Whether to include DTrace support 8.0.1
[ENABLE_EXPERIMENTAL_SYSVARS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enable_experimental_sysvars) Whether to enabled experimental InnoDB system variables OFF 8.0.11
[ENABLE_GCOV](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enable_gcov) Whether to include gcov support
[ENABLE_GPROF](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_enable_gprof) Enable gprof (optimized Linux builds only) OFF
[FORCE_UNSUPPORTED_COMPILER](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_force_unsupported_compiler) Whether to permit unsupported compiler OFF
[IGNORE_AIO_CHECK](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_ignore_aio_check) With -DBUILD_CONFIG=mysql_release, ignore libaio check OFF
[INSTALL_BINDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_bindir) User executables directory PREFIX/bin
[INSTALL_DOCDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_docdir) Documentation directory PREFIX/docs
[INSTALL_DOCREADMEDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_docreadmedir) README file directory PREFIX
[INSTALL_INCLUDEDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_includedir) Header file directory PREFIX/include
[INSTALL_INFODIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_infodir) Info file directory PREFIX/docs
[INSTALL_LAYOUT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_layout) Select predefined installation layout STANDALONE
[INSTALL_LIBDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_libdir) Library file directory PREFIX/lib
[INSTALL_MANDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_mandir) Manual page directory PREFIX/man
[INSTALL_MYSQLKEYRINGDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_mysqlkeyringdir) Directory for keyring_file plugin data file platform specific
[INSTALL_MYSQLSHAREDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_mysqlsharedir) Shared data directory PREFIX/share
[INSTALL_MYSQLTESTDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_mysqltestdir) mysql-test directory PREFIX/mysql-test
[INSTALL_PKGCONFIGDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_pkgconfigdir) Directory for mysqlclient.pc pkg-config file INSTALL_LIBDIR/pkgconfig
[INSTALL_PLUGINDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_plugindir) Plugin directory PREFIX/lib/plugin
[INSTALL_SBINDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_sbindir) Server executable directory PREFIX/bin
[INSTALL_SECURE_FILE_PRIVDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_secure_file_privdir) secure_file_priv default value platform specific
[INSTALL_SHAREDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_sharedir) aclocal/mysql.m4 installation directory PREFIX/share
[INSTALL_STATIC_LIBRARIES](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_static_libraries) Whether to install static libraries ON
[INSTALL_SUPPORTFILESDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_install_supportfilesdir) Extra support files directory PREFIX/support-files
[LINK_RANDOMIZE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_link_randomize) Whether to randomize order of symbols in mysqld binary OFF 8.0.1
[LINK_RANDOMIZE_SEED](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_link_randomize_seed) Seed value for LINK_RANDOMIZE option mysql 8.0.1
[MAX_INDEXES](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_max_indexes) Maximum indexes per table 64
[MUTEX_TYPE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mutex_type) InnoDB mutex type event
[MYSQLX_TCP_PORT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysqlx_tcp_port) TCP/IP port number used by X Plugin 33060
[MYSQLX_UNIX_ADDR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysqlx_unix_addr) Unix socket file used by X Plugin /tmp/mysqlx.sock
[MYSQL_DATADIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysql_datadir) Data directory
[MYSQL_MAINTAINER_MODE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysql_maintainer_mode) Whether to enable MySQL maintainer-specific development environment OFF
[MYSQL_PROJECT_NAME](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysql_project_name) Windows/OS X project name MySQL
[MYSQL_TCP_PORT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysql_tcp_port) TCP/IP port number 3306
[MYSQL_UNIX_ADDR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_mysql_unix_addr) Unix socket file /tmp/mysql.sock
[ODBC_INCLUDES](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_odbc_includes) ODBC includes directory
[ODBC_LIB_DIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_odbc_lib_dir) ODBC library directory
[OPTIMIZER_TRACE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_optimizer_trace) Whether to support optimizer tracing
[REPRODUCIBLE_BUILD](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_reproducible_build) Take extra care to create a build result independent of build location and time 8.0.11
[SYSCONFDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_sysconfdir) Option file directory
[SYSTEMD_PID_DIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_systemd_pid_dir) Directory for PID file under systemd /var/run/mysqld
[SYSTEMD_SERVICE_NAME](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_systemd_service_name) Name of MySQL service under systemd mysqld
[TMPDIR](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_tmpdir) tmpdir default value
[USE_LD_GOLD](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_use_ld_gold) Whether to use GNU gold loader ON 8.0.0
[WIN_DEBUG_NO_INLINE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_win_debug_no_inline) Whether to disable function inlining OFF
[WITHOUT_SERVER](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_without_server) Do not build the server OFF
[WITHOUT_xxx_STORAGE_ENGINE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_storage_engine_options “Storage Engine Options”) Exclude storage engine xxx from build
[WITH_ANT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_ant) Path to Ant for building GCS Java wrapper 8.0.11
[WITH_ASAN](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_asan) Enable AddressSanitizer OFF
[WITH_ASAN_SCOPE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_asan_scope) Enable AddressSanitizer -fsanitize-address-use-after-scope Clang flag OFF 8.0.4
[WITH_AUTHENTICATION_LDAP](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_authentication_ldap) Whether to report error if LDAP authentication plugins cannot be built OFF 8.0.2
[WITH_AUTHENTICATION_PAM](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_authentication_pam) Build PAM authentication plugin OFF
[WITH_AWS_SDK](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_aws_sdk) Location of Amazon Web Services software development kit 8.0.2
[WITH_BOOST](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_boost) The location of the Boost library sources
[WITH_CLIENT_PROTOCOL_TRACING](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_client_protocol_tracing) Build client-side protocol tracing framework ON
[WITH_CURL](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_curl) Location of curl library 8.0.2
[WITH_DEBUG](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_debug) Whether to include debugging support OFF
[WITH_DEFAULT_COMPILER_OPTIONS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_default_compiler_options) Whether to use default compiler options ON
[WITH_DEFAULT_FEATURE_SET](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_default_feature_set) Whether to use default feature set ON
[WITH_EDITLINE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_editline) Which libedit/editline library to use bundled
[WITH_ICU](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_icu) Type of ICU support bundled 8.0.4
[WITH_INNODB_EXTRA_DEBUG](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_innodb_extra_debug) Whether to include extra debugging support for InnoDB. OFF
[WITH_INNODB_MEMCACHED](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_innodb_memcached) Whether to generate memcached shared libraries. OFF
[WITH_KEYRING_TEST](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_keyring_test) Build the keyring test program OFF
[WITH_LIBEVENT](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_libevent) Which libevent library to use bundled
[WITH_LIBWRAP](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_libwrap) Whether to include libwrap (TCP wrappers) support OFF
[WITH_LTO](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_lto) Enable link-time optimizer OFF 8.0.13
[WITH_LZ4](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_lz4) Type of LZ4 library support bundled
[WITH_LZMA](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_lzma) Type of LZMA library support bundled 8.0.4
[WITH_MECAB](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_mecab) Compiles MeCab
[WITH_MSAN](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_msan) Enable MemorySanitizer OFF
[WITH_MSCRT_DEBUG](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_mscrt_debug) Enable Visual Studio CRT memory leak tracing OFF
[WITH_MYSQLX](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_mysqlx) Whether to disable X Protocol ON 8.0.11
[WITH_NUMA](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_numa) Set NUMA memory allocation policy
[WITH_PROTOBUF](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_protobuf) Which Protocol Buffers package to use bundled
[WITH_RAPID](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_rapid) Whether to build rapid development cycle plugins ON
[WITH_RAPIDJSON](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_rapidjson) Type of RapidJSON support bundled 8.0.13
[WITH_RE2](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_re2) Type of RE2 library support bundled 8.0.4
[WITH_SSL](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_ssl) Type of SSL support system
[WITH_SYSTEMD](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_systemd) Enable installation of systemd support files OFF
[WITH_SYSTEM_LIBS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_system_libs) Set system value of library options not set explicitly OFF 8.0.11
[WITH_TEST_TRACE_PLUGIN](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_test_trace_plugin) Build test protocol trace plugin OFF
[WITH_TSAN](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_tsan) Enable ThreadSanitizer OFF
[WITH_UBSAN](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_ubsan) Enable Undefined Behavior Sanitizer OFF
[WITH_UNIT_TESTS](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_unit_tests) Compile MySQL with unit tests ON
[WITH_UNIXODBC](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_unixodbc) Enable unixODBC support OFF
[WITH_VALGRIND](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_valgrind) Whether to compile in Valgrind header files OFF
[WITH_ZLIB](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_with_zlib) Type of zlib support bundled
[WITH_xxx_STORAGE_ENGINE](file:///D:/refman-8.0-en.html-chapter/installing.html#option_cmake_storage_engine_options “Storage Engine Options”) Compile storage engine xxx statically into server