猿问

linux 怎么用cmake安装mysql?

linux 怎么用cmake安装mysql


千巷猫影
浏览 1549回答 3
3回答

慕村9548890

行与行之间需要连接符"\",最后一行不需要,要不然你就都写在同一行:cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \-DDEFAULT_CHARSET=utf8 \-DDEFAULT_COLLATION=utf8_general_ci \-DWITH_EXTRA_CHARSETS:STRING=all \-DWITH_MYISAM_STORAGE_ENGINE=1 \-DWITH_INNOBASE_STORAGE_ENGINE=1 \-DWITH_MEMORY_STORAGE_ENGINE=1 \-DWITH_READLINE=1 \-DENABLED_LOCAL_INFILE=1 \-DMYSQL_DATADIR=/var/lib/mysql \-DMYSQL_USER=mysql
随时随地看视频慕课网APP
我要回答