1.打開終端機並輸入
# yum -y install mysql*
# yum -y
install php-mbstring
2.開機自動啟動 httpd 與 mysqld
# setup
選 [系統服務],選取 httpd 與 mysqld 服務
3.啟動 mysql 與 httpd 服務
# /etc/init.d/mysqld start
# /etc/init.d/httpd
start
4.變更mysql密碼
# mysqladmin -h localhost -u root --password= password new password
5.下載 phpMyAdmin
6.解壓縮至 /var/www/html/phpmyadmin
7.將config.sample.in.php重新命名為config.inc.php
/*
Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
/* Server parameters
*/
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] =
'';
8.開啟網頁 http://localhost/phpmyadmin/
建立新資料庫 [ostube]
校對 [utf8_general_ci]
沒有留言:
張貼留言