ลง wp ขอคำปรึกษาพี่ๆด้วยค่ะ

เริ่มโดย newgirl, 03 พฤศจิกายน 2012, 11:39:15

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

Maxio

DB_HOST เป็น localhost ครับ

ส่วนมาก 99.5 % ถ้าไม่ได้ ต้องถาม โฮสที่เช่าอะครับ

newgirl

อ้างถึงจาก: Maxio ใน 03 พฤศจิกายน 2012, 14:29:42
เอางี้ ลงเวิร์ดเพรส แล้ว ได้คอนฟิคอะไรรึยัง สร้างdatabase รึยัง

ถ้ายังก็ เริ่มแรก


   ก็อปปี้ไฟล์ wp-config-sample.php แล้วเปลี่ยนชื่อเป็น wp-config.php

   แล้วแก้ไข้ชื่อ เดต้าเบส ยูเซอร์ พาส ตามที่เราต้องการ

   เปลี่ยน 'database' เป็นชื่อของเราเช่น 'dbnewgirl'
   user pass ก็ทำเหมือนกับ database

   ประมาณนี้

define('DB_NAME', 'database');

/** MySQL database username */
define('DB_USER', 'username');

/** MySQL database password */
define('DB_PASSWORD', 'password');

/** MySQL hostname */
define('DB_HOST', 'localhost');

ทำแล้วค่ะพี่

Legolas

http://www.youtube.com/watch?v=zO7UOili9UA


ใช้ cpanel เปล่าครับลองทำตามนี้ดู จริงๆโฮสเดี๋ยวนี้มีตัวติดตั้งมาให้มันง่ายกว่ามาอัพเองนะ
[direct=imblogideas.blogspot.com][/direct]
[direct=https://bit.ly/3A3xBjx]

[direct=https://bit.ly/39Rn6Xu]ตอนนี้มีโปร $29.99 Creative Fabrica ถูกที่สุดสำหรับทำ POD,KDP[/direct]
ขาย License wp theme 5 ธีมจา่ก Themeforest Newspaper, KALLYAS, Puzzle, Valenti, Jarida ราคาถูกมาก pm มาได้เลยครับ
รับทำ vdo avartar สำหรับนำเสนอ aff ต่างประเท

newgirl

สรุปได้ว่า ถ้าไม่เปลี่ยนชื่อ คือคง wp.config-sample.php  จะขึ้นแบบนี้

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

   Are you sure you have the correct username and password?
   Are you sure that you have typed the correct hostname?
   Are you sure that the database server is running?

If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

Maxio

สร้าง database username password ในโฮส ให้เหมือนกับที่คอนฟิคไว้ใน wp-config.php รึยังครับ


ตอนนี้ปัญหาคือ ?


newgirl


Maxio

ตัวอักษรพิมพ์เล็กพิมพ์ใหญ่ก็มีผลนะ เวลาตั้งชื่อ ดูดีๆนะครับ

newgirl


รีเนม จาก   wp-config-sample.php แล้วเปลี่ยนชื่อเป็น wp-config.php
จะได้ออกมาแบบนี้


Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.

newgirl

อ้างถึงจาก: Maxio ใน 03 พฤศจิกายน 2012, 14:52:04
ตัวอักษรพิมพ์เล็กพิมพ์ใหญ่ก็มีผลนะ เวลาตั้งชื่อ ดูดีๆนะครับ
เชกแล้วค่ะ

จอห๋น ชาวไร่

https://privateladyescorts.com - Anonymous Dating Chat - No Selfie - Anonymous Casual Dating -   Trusted Local Dating

Maxio

บางโฮส เพิ่ม database กับ username บางทีต้องเพิ่มสิทธิ์ให้ username ด้วย

ในหน้า จัดการ database มี grant all privileges หรือช่องให้ติ๊ก all privileges รึเปล่าครับ

newgirl


newgirl

อ้างถึงจาก: Maxio ใน 03 พฤศจิกายน 2012, 14:58:25
บางโฮส เพิ่ม database กับ username บางทีต้องเพิ่มสิทธิ์ให้ username ด้วย

ในหน้า จัดการ database มี grant all privileges หรือช่องให้ติ๊ก all privileges รึเปล่าครับ
ติ๊กค่า :P

newgirl


newgirl

Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.

เศร้ามากเลย :P

newgirl

ได้แล้วจ้า  ขอบคุณพี่ๆทุกท่านเลย