2008-05-15 14:02:51兼職奶爸

install and use a MySQL binary distribution

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &

轉載自MySQL官方網站:http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html

上一篇:ALTER TABLE