Maison >base de données >tutoriel mysql >MySQL5.5编译安装问题_MySQL

MySQL5.5编译安装问题_MySQL

WBOY
WBOYoriginal
2016-06-01 13:12:17812parcourir

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

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn