时间:2019-09-16 14:35:44 作者:无名 浏览量:18
-DDEFAULT_CHARSET=utf8 \\\\\\\\
-DDEFAULT_COLLATION=utf8_general_ci \\\\\\\\
-DEXTRA_CHARSETS=all \\\\\\\\
-DWITH_EMBEDDED_SERVER=0 \\\\\\\\
-DWITH_MYISAM_STORAGE_ENGINE=1 \\\\\\\\
-DWITH_INNOBASE_STORAGE_ENGINE=1 \\\\\\\\
-DWITH_MEMORY_STORAGE_ENGINE=1 \\\\\\\\
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \\\\\\\\
-DWITH_READLINE=1 \\\\\\\\
-DENABLED_LOCAL_INFILE=1 \\\\\\\\
-DMYSQL_USER=mysql \\\\\\\\
-DWITH_DEBUG=0 \\\\\\\\
-DWITH_SSL=yes
phpMyAdmin在CENTOS6.0中简单的安装步骤教程图3
报错:
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:82 (MESSAGE):
Curses library not found. Please install appropriate package,
remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu ,package name is libncurses5-dev ,
on RedHat and derivates it is ncurses-devel.
Call Stack (most recent call first):
cmake/readline.cmake:126 (FIND_CURSES)
cmake/readline.cmake:216 (MYSQL_USE_BUNDLED_LIBEDIT)
CMakeLists.txt:256 (MYSQL_CHECK_READLINE)
-- Configuring incomplete,errors occurred!
=======================
没有装置 ncurses-devel
yum装置之后 还是报错,找运维高手才知道 cmake会产生CMakeCache.txt文件,每次cmake之前需求删除它....
ok,一切正常
echo $?
输出成果为0
make
make install
装置成功
chown mysql:mysql /home/soft/mysql -R
chown msyql:mysql /opt/soft/mysql/ -R
初始化数据库
/opt/soft/mysql/scripts/mysql_install_db \\\\\\\\--defaults-file=/opt/soft/mysql/config/my.cnf \\\\\\\\ --basedir=/opt/soft/mysql\\\\\\\\ --datadir=/home/soft/mysql/data \\\\\\\\ --user=mysql
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system