2009年9月17日星期四

隆重推薦Mysql隨機安裝文檔

慚愧啊,本來想做一個實驗,省事,使用tar.gz版本的mysql, 竟然話了我2個小時,一直啟動不起來,查log,google,都沒有解決.

從新解壓,發現mysql包中有一個安裝文檔

mysql-5.1.38-linux-x86_64-glibc23.tar.gz

INSTALL-BINARY

The basic commands that you must execute to install and use a
   MySQL binary distribution are:
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了,手生了!

没有评论:

发表评论