Joomla Error Database Error: Unable to connect to the database:Could not connect

กฎการใช้บอร์ด
คำถามหมวดนี้ ควรระบุ รายละเอียดของ Server OS, เวอร์ชั่น ของ PHP, CMS ที่ท่านใช้
รวมถึง Hosting หรือ Control Panel Hosting

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: Joomla Error Database Error: Unable to connect to the database:Could not connect

Re: Joomla Error Database Error: Unable to connect to the database:Could not connect

โดย mindphp » 27/06/2012 10:38 am

เสริม Error อีกส่วนที่อาจจะเจอคือ
Database connection error (3): Could not connect to database

ปัญหานี้ มาจาก กำหนด Host ผิด ถ้า Host เราติดตั้ง php ไว้ในเครื่องเดียวกับ ฐานข้อมูล ก็ให้ใส่ Host เป็น

โค้ด: เลือกทั้งหมด

public $host = 'localhost'; 

Joomla Error Database Error: Unable to connect to the database:Could not connect

โดย mindphp » 09/11/2010 5:59 pm

Joomla Error
Database Error: Unable to connect to the database:Could not connect to MySQL

ปัญหามาจากฐานข้อมูล ทำให้ php ไม่สามารถไปติดต่อฐานข้อมูลได้
อาจมาจาก Mysql Server ยังไม่ได้ Start (ถ้าติดตั้ง mysql กับ webServe ไว้ที่เดียวกัน)
หรือ ถ้า Mysql Server กับ Webserver อยู่คนละที่กันปัญหาอาจมาจาก network ก็ได้

ข้างบน