#yum install mysql-server
#yum install httpd
Package httpd-2.2.15-5.el6.centos.i686 already installed and latest version
Nothing to do 原來已經有安裝了
#yum install php
#yum install php-common php-mysql php-xml php-gd php-mbstring
#setup
系統服務 mysqld httpd 設定為開機開啟
#service mysqld start
#service httpd start
===================================================
再來我要安裝一個文字介面下的網頁瀏覽器
#yum install elinks
安裝好執行
links www.phpmyadmin.net
按下移動到.gz的下載點按Enter
改名子因為太長很不方便的
# mv phpMyAdmin-X.XX.XX.X-all-languages phpMyAdmin
連看看
# vim /var/www/html/phpMyAdmin/libraries/config.default.php
$cfg['Servers'][$i]['AllowNoPassword'] = false;
密碼設定好了,把剛才的改回來
# vim /var/www/html/phpMyAdmin/libraries/config.default.php
$cfg['Servers'][$i]['AllowNoPassword'] = true;
#yum install php-common php-mysql php-xml php-gd php-mbstring
#setup
系統服務 mysqld httpd 設定為開機開啟
#service mysqld start
#service httpd start
===================================================
再來我要安裝一個文字介面下的網頁瀏覽器
#yum install elinks
安裝好執行
links www.phpmyadmin.net
按下移動到.gz的下載點按Enter
移動到direct link按下Enter
選save
把下載的位置改成/var/www/html/xxxxxxxxxxxxxxxxxxxxxx
下載好後按 "q" 離開文字瀏覽器
#cd /var/www/html
解壓縮
#tar -xvf phpMyAdmin-XXXX.XXX.XX-all-languages.tar.gz
改名子因為太長很不方便的
# mv phpMyAdmin-X.XX.XX.X-all-languages phpMyAdmin
連看看
嘗試登入root加空密碼會出現訊息 (註:mysql剛裝好 root是沒設密碼的)
空密碼登錄被禁止 (參見 允許空密碼)
# vim /var/www/html/phpMyAdmin/libraries/config.default.php
$cfg['Servers'][$i]['AllowNoPassword'] = false;
改成
$cfg['Servers'][$i]['AllowNoPassword'] = true;
當然這樣改是暫時的,因為接下來登入phpmyadmin要去設定root的密碼
在權限的分頁下可以看到3個root帳號都沒有設定密碼,編輯權限去設定密碼
密碼設定好了,把剛才的改回來
# vim /var/www/html/phpMyAdmin/libraries/config.default.php
$cfg['Servers'][$i]['AllowNoPassword'] = true;
改成
$cfg['Servers'][$i]['AllowNoPassword'] = false;






沒有留言:
張貼留言