欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

MySQL5.5编译安装问题_MySQL

程序员文章站 2022-06-01 10:21:58
...
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