當mysql啟動、httpd啟動後,去run worpdress,結果出現「Your PHP installation appears to be missing the MySQL extension which is required by WordPress.」
我的解決方法如下
訊息是說少了一套php與mysql相關的套件,我記得有一個套件叫php-mysql,所以就用yum來安裝一下。指令如下
yum install php-mysql
service httpd restart
service mysqld restart
下完這些指令之後,就可以正常連線資料庫,如果出現連線失敗訊息
Error establishing a database connection
那就是帳號密碼的問題,請自行修改。
隨機文章
- 郵件IMAP POP3 SMTP Port 加密協定 3分鐘快速上手 (2021-09-06)
- 用Proxmox 玩OpenVZ (2018-02-22)
- 遇到DDOS大家也無能為力 (2011-06-22)
- 受保護的內容: nginx For wordpress rewrite Sample (2016-08-12)
- 我終於有黑蘋果了 (2010-08-27)





![[chatGPT 測試] DSM 7 有什麼特色](https://chihping.aflypen.com/wp-content/uploads/2023/03/usb-ga13f61ece_1280-300x221.jpg)


