Home >Database >Mysql Tutorial >MySQL5.5编译安装问题_MySQL

MySQL5.5编译安装问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:12:17812browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn