ถ้าเราใช้คอมพิวเตอร์ของเราคนเดียว ใช้งานแค่จำลอง Web Sever ทดสอบเล็กๆ น้อยๆ ก็คงไม่มีปัญหาอะไร แต่ถ้าคอมพิวเตอร์ของเรามีการใช้งานร่วมกับคนอื่นด้วย หรือเปิดแชร์ network ไว้ ทุกคนก็สามารถเข้าถึง database ของเราได้หมด …เพื่อความปลอดภัย! เรามาตั้ง password ให้ database ของเรากันดีกว่า
โดยปกติแล้วถ้าเราไม่ได้ไปยุ่งอะไรกับ XAMPP ค่า default ของ DB_PASSWORD คือ ว่าง
Step 1 : เริ่มจาก “Start” Apache และ MySQL กันก่อน
Step 2 : XAMPP – เมนู Security
Step 3 : ตั้ง password ให้ database
Step 4 : Restart MySQL
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wp_yuikdev‘);/** MySQL database username */
define(‘DB_USER’, ‘root‘);/** MySQL database password */
define(‘DB_PASSWORD’, ‘ptest1234‘);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost‘);
ต่อด้วย การสร้าง user account บน XAMPP
โดยกำหนด user และ password เป็นของเราเอง
บทความ/รูปภาพ : Webmonster Lab | Yui Kanchita
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |