Chinaunix首页 | 论坛 | 博客
  • 博客访问: 150662
  • 博文数量: 12
  • 博客积分: 1401
  • 博客等级: 上尉
  • 技术积分: 415
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-04 12:36
文章分类
文章存档

2009年(1)

2008年(11)

我的朋友

分类: Mysql/postgreSQL

2008-04-12 20:35:53

Share

<一>编译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

阅读(651) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~