看板 FreeBSD 關於我們 聯絡資訊
※ 引述《xunlu (xunlu)》之銘言: : ============================== : 更正重開機後可以執行囉~~︿︿ : 不過有錯誤訊息 : #1045 - Access denied for user 'root'@'localhost' (using password: YES) : 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 : 可以勞煩各位指導一下嗎 : 謝謝!! 自問自答 參考下面網址 解決 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 http://www.wretch.cc/blog/zgod/2288269 實際操作: # /usr/ports/security/php5-mcrypt # make install # reboot 參考下面網址 解決 #1045 - Access denied for user 'root'@'localhost' (using password: YES) http://phorum.study-area.org/index.php?PHPSESSID=ef50ca58ad8b5df2b13737b64fe71392&/topic,53080.0.html 實際操做: # /usr/local/etc/rc.d/mysql-server stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD('xxxxxxxxxx') where USER='root'; mysql> FLUSH PRIVILEGES; mysql> \q # /usr/local/etc/rc.d/mysql-server start # mysql -uroot -p 輸入密碼後出現 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.1.28-rc-log FreeBSD port: mysql-server-5.1.28_1 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> \q 這樣子在到網phpmyadmin網頁輸入root即密碼即可正常 請問以上步驟有什麼缺失嗎? 因為我只會照做看不懂意思@@~ 還有就是請問當這幾項服務(FREEBSD系統 apache mysql proftp)起來後 有哪些安全性程序需要設定了 目前有設定 freebsd 密碼 MYSQL 密碼 其它都還沒動 請各位前輩指導一下囉 不想剛灌好就被駭掉了> < -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.5.175