เพิ่ม mysql ในการติดตั้ง Drupal
ในบางเครื่องที่ติดตั้ง Drupal 7 แล้วประสบปัญหา ไม่สามารถเลือก MySQL เป็นฐานข้อมูลในการติดตั้งได้
If want to install drupal 7 but you can’t select MySQL for installation Databaes.
ตรวจสอบ PDO ของคุณใน phpinfo โดยการสร้างไฟล์ test.php และข้างในมีข้อความว่า <? phpinfo (); ?> แล้วเปิดมันผ่าน browser ทาง
http://<เซิฟเวอร์ของคุณ>/test.php เช่น http://localhost/test.php
Check you PDO in phpinfo with create file test.php and write <? phpinfo (); ?> in that file and then test it by browser with http://<yourserver>/test.php etc, http://localhost/test.php
http://<เซิฟเวอร์ของคุณ>/test.php เช่น http://localhost/test.php
Check you PDO in phpinfo with create file test.php and write <? phpinfo (); ?> in that file and then test it by browser with http://<yourserver>/test.php etc, http://localhost/test.php
ค้นหาคำว่า PDO ว่าไม่มีคำว่า MySQL แบบนี้หรือไม่
Find PDO word and check don’t have MySQL word like picture.
ถ้าใช้ ลองเข้าไปดูใน folder php5/ext ของคุณว่ามีไฟล์ php_pdo_mysql.dll (สำหรับ windows) และ php_pdo_mysql.so (สำหรับ Unix หรือ Linux)
If yes find php_pdo_mysql.dll (for windows) or php_pdo_mysql.so (for Unix or Linux) in php5/ext folder.
จากนั้นค้นหาไฟล์ php.ini และแก้ไขซะ
then find php.ini file open and edit
หาคำว่า ;php_pdo_mysql.dll หรือ ;php_pdo_mysql.so
find word ;php_pdo_mysql.dll or ;php_pdo_mysql.so.
เอาเครื่องหมาย ; (เซมิโคล่อน) ออก จากนั้นบันทึกและเริ่มการทำงานของ เว็บเซิฟเวอร์อีกครั้ง
remove symbol ; (semi colon) save and restart webserver service again.
ตรวจสอบ PDO จาก test.php อีกครั้ง
check PDO from test.php again.
แล้วลองไปทำการติดตั้ง Drupal 7 อีกที
and try install Drupal 7 again.
เพียงเท่านี้ ก็จะสามารถใช้งาน ตัว mysql ของ drupal ได้แล้วครับ ขอให้มีความสุขกับ Drupal 7
Finished enjoy with Drupal 7
0 ความคิดเห็น:
แสดงความคิดเห็น