Linux之mySQL源码安装
作者:lingmincc 日期:2007-10-19 14:02:03
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-mymedium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_instls
all_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
//set the root's password
//test
shell> /usr/local/mysql/bin/mysqlshow
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-mymedium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_instls
all_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
//set the root's password
//test
shell> /usr/local/mysql/bin/mysqlshow
平均得分
(0 次评分)
评论: 0 | 查看次数: 1024
发表评论
订阅
上一篇
|

文章来自:
标签: 




