พอดีผมเจอเคส connect Comanche
แล้วช้านั้น สาเหตุอาจจะมาจากไม่ได้ add parameter skip-name-resolve
ใน
/etc/my.cnf ปัญหานี้มักจะเจอกับโรงเก่าๆเพราะไม่ได้
add ไว้
ดังนั้นขอให้ตรวจสอบด้วยครับดังนี้
ใช้โปรแกรม
Putty connect ssh ไปที่ xxx.xxx.xxx.xxx (IP Server Comanche)
User : xxxxx
Pw : xxxxxxxxxx
ใช้คำสั่ง
Nano /etc/my.cnf
ไล่ดูว่ามี
skip-name-resolve หรือไม่ หรือจะ search หาก็ได้โดยกด Ctrl+w
แล้วพิมพ์
skip-name
หากพบว่ามีแล้วให้กด
Ctrl+x เพื่อออกจากโปรแกรม
แล้วพิมพ์
exit เพื่อออกจาก
ssh
หากไม่มีให้เพิ่ม
skip-name-resolve ใต้บรรทัด skip-locking ก็ได้ครับ
เพิ่มแล้ว
save โดยกด
Ctrl+o แล้ว
Enter
หากที่ใดเพิ่มแล้ว
ลืมบอกไปว่าต้อง restart mysql ด้วยครับ
คำสั่ง restart mysql
/etc/init.d/mysqld restart
Restart แล้วตรวจสอบ interface ด้วยครับว่า error
หรือไม่
Ctrl+x เพื่อออก
พิมพ์
exit เพื่อออกจาก
ssh
ไม่มีความคิดเห็น:
แสดงความคิดเห็น