Chinaunix首页 | 论坛 | 博客
  • 博客访问: 211241
  • 博文数量: 26
  • 博客积分: 2060
  • 博客等级: 大尉
  • 技术积分: 394
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-02 21:43
文章分类

全部博文(26)

文章存档

2011年(1)

2010年(2)

2009年(23)

我的朋友

分类: LINUX

2009-11-12 17:14:47

安装步骤
mkdir -p /data/mysqldb/
groupadd mysql
useradd -g mysql -d /data/mysqldb/ -s /sbin/nologin mysql
./configure --prefix=/usr/local/mysql/ --localstatedir=/data/mysqldb/ --without-debug --with-charset=utf8 --with-extra-charsets=all --enable-assembler --with-pthread --enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
chown -R mysql /data/mysqldb/
chgrp -R mysql /data/mysqldb/
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql /data/mysqldb/
share/mysql/mysql.server start
bin/mysqladmin -uroot password 111qqq,
 use mysql;
 GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY '111111' WITH GRANT OPTION;
 GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY '111111' WITH GRANT OPTION;
 update user set password=password('111111') where user='root';
 flush privileges;
 exit;
ln -s /usr/local/mysql/bin/mysql /usr/local/bin/
ln -s /usr/local/mysql/share/mysql/mysql.server /usr/local/bin/mysqld
echo "/usr/local/mysql/share/mysql/mysql.server start" >> /etc/rc.d/rc.local
阅读(1259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~