當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
那就是帳號密碼的問題,請自行修改。
隨機文章
- 情比金堅~妻病夫不離棄 再披婚紗慶金婚 (2007-11-21)
- 受保護的內容: 快速取得DROPBOX之VirtualBOX指南 (2015-03-27)
- 主機搬回家囉! (2014-03-12)
- [ChatGPT] 4o的圖片視覺測試 (2024-09-18)
- rclone Dropbox backup to Google Drive, Failed to copy: failed to open source object: path/restricted_content/.. (2020-06-05)