Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91795975
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Mysql/postgreSQL

2008-04-15 22:37:23

作者: ylnyzl  出自:

<一>编译Mysql时configure: error: No curses/termcap library found .

you can try re-installing the ncurses-devel package.
debian: sudo apt-get install ncurses-devel

The Ncurses (new curses) library is a free software emulation of curses in System V Release 4.0, and more. It uses Terminfo format, supports pads and color and multiple highlights and forms characters and function-key mapping, and has all the other SYSV-curses enhancements over BSD Curses.

curses 库 (ncurses) 提供了控制字符屏幕的独立于终端的方法。curses 是大多数类似于 UNIX 的系统(包括 Linux)的标准部分,而且它已经移植到 Windows 和其它系统。curses 程序将在纯文本系统上、xterm 和其它窗口化控制台会话中运行,这使这些应用程序具有良好的可移植性。

<二>启动mysqld时会出现各种错误,总结起来都是权限问题。
我的是在configure 时指定了安装目录:/usr/local/mysql
./configure --prefix=/usr/local/mysql

建议:先建个用户用于管理mysql,
建组 sudo groupadd mysql
sudo useradd -d /usr/local/mysql/var -g mysql mysql
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .

这里很重要:
su mysql
/usr/local/mysql/bin/mysql_install_db 初始化数据库,并建立root帐号
/usr/local/mysql/libexec/mysqld &起动

接下来就可以 mysqladmin ping 测试了。
good luck
阅读(368) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~