当前位置:Gxlcms > mysql > MySQL5.5编译安装问题_MySQL

MySQL5.5编译安装问题_MySQL

时间:2021-07-01 10:21:17 帮助过:17人阅读

1. Could NOT findCurses (missing: CURSES_LIBRARYCURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:83 (MESSAGE):

Curses librarynot found. Please install appropriatepackage,

remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu,package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.

Call Stack (mostrecent call first):

cmake/readline.cmake:118 (FIND_CURSES)

cmake/readline.cmake:214 (MYSQL_USE_BUNDLED_READLINE)

CMakeLists.txt:268 (MYSQL_CHECK_READLINE)

-- Configuringincomplete, errors occurred!

解决办法:

1).安装ncurses-devel包:yum installncurses-deve

2).删除CMakeCache文件:rm –f CMakeCache.txt

2. Starting MySQL... ERROR! The server quitwithout updating PID file (/data/mysql/localhost.localdomain.pid).

原因:没有初始化权限表

解决办法:

cd /usr/local/mysql(进入mysql安装目录)

chown -R mysql.mysql .

su - mysql

cd server

scripts/mysql_install_db

3. FATAL ERROR: Could not find./bin/my_print_defaults

解决办法: /usr/local/mysql/scripts/mysql_install_db --user=mysql--basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

人气教程排行