Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10492381
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:10:46

#tar zxvf mysql-4.1.18.tar.gz
#cd  mysql-4.1.18
#./configure --prefix=/usr/local/mysql --with-charset=gb2312  --with-extra-charsets=all
 #make
#make install
#make clean
#cp /usr/local/mysql/share/mysql/my-huge.cnf    /etc/my.cnf
#groupadd mysql
#useradd -g mysql mysql
#cd /usr/local/mysql
#bin/mysql_install_db --user=mysql
#建立基本数据库,必须指明为mysql用户,出现如下:
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
Unknown suffix used for variable 'port' (value )
080425  4:38:40 /usr/local/mysql/libexec/mysqld: Error while setting value to 'port'
Installation of grant tables failed!
Examine the logs in /usr/local/mysql/var for more information.
You can also try to start the mysqld daemon with:
/usr/local/mysql/libexec/mysqld --skip-grant &
You can use the command line tool
/usr/local/mysql/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/local/mysql/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /usr/local/mysql/var that may be helpful.
The latest information about MySQL is available on the web at
阅读(1407) | 评论(0) | 转发(0) |
0

上一篇:mysql数据同步更新

下一篇:linux下安装apache

给主人留下些什么吧!~~