Monday, August 25, 2008

การ config phpMyAdmin

How to config phpMyAdmin.

# การอื่นเราต้องติดตั้ง mysql server ก่อนนะครับ sudo apt-get install mysql-server

# เราไปดาวน์โหลด phpmyadmin มาแล้วแตกไฟล์พอรันมัน script error ซะงั้น แก้ไขโดย

# /home/jui/public_html/phpMyAdmin/libraries/config.default.php

# หาบรรทัดนี้เลยค่าเริ่มต้นจะเป็นประมาณเนี๋ย

$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['nopassword'] = FALSE; // Whether to try to connect without password
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only

# ซึ่งเราไม่ต้องใส่ password ($cfg['Servers'][$i]['password'] = ''; ) ของ mysql เดี๋ยวใครมาเปิดไฟล์เนี๋ยก็เห็นรหัสผ่านหมดอ่ะดิ ^^'

# เราแค่เปลี่ยน

$cfg['Servers'][$i]['auth_type'] = 'config';

# ให้เป็นแบบเนี่ย

$cfg['Servers'][$i]['auth_type'] = 'http';

# หรือแบบที่เหลือแล้วแต่ชอบ Save รันใหม่ก็จะมีช่องให้ใส่รหัสผ่านแหละ

No comments:

Post a Comment

Popular Posts