<body>

kenshou

天空没有飞过的痕迹,但我已经努力飞过……

« Home | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next »

linux下面mysql 安装(转载)

tar -zxvf mysql-5.1.11-beta.tar.gz
cd mysql-5.1.11-beta
./configure --prefix=/usr/local/mysql
make && make install
groupadd mysql
useradd -g mysql mysql
cd /usr/local/
cd mysql/
bin/mysql_install_db --user=mysql
chown -R root .
chgrp -R mysql . chown -R mysql var(数据目录,一定都是mysql的权限)
/usr/local/mysql/bin/mysqld_safe & //mysql启动
/usr/local/mysql/bin/mysqladmin stop //mysql关闭

转载于http://hi.baidu.com/hrhero/blog/item/ab3bbbdf7d04ff164854032b.html

标签:

leave a response