订阅所有JSP/Servlet的日志 订阅 | 这是最新一篇日志 上一篇 | 下一篇日志 下一篇 ]
.net

Linux之mySQL源码安装

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

平均得分
(0 次评分)





文章来自: 本站原创
标签:
评论: 0 | 查看次数: 1024
发表评论
昵 称:  登录
内 容:
选 项:
字数限制 1000 字 | UBB代码 开启 | [img]标签 开启