After upgrading to Mac OS X 10.4.4, I have some problem with MySQL 5.0.
It seems runnable but all of my CMS (Drupal, phpMyAdmin) can't connect to database server. After googling around, this is caused by socket location problem. 10.4.4 PHP is pointed to /var/mysql/mysql.sock while default MySQL configuration is /etc/mysql.sock.
This is long known bug of Mac OS X 10.4 series. I still don't understand why it just happens on my 10.4.4 but not 10.4.3.
Anyway, the solution is creating /etc/my.cnf with these line:
[mysqld]
socket=/var/mysql/mysql.sock
Don't forget to set permission of /var/mysql to 775.
Launching MySQL daemon from Preferences (in case you installed MySQL Preferences too) still show "stop" state but it is actually running and works fine.
This discovery begin by I want to test K2 Drupal port by my friend, iChris.
P.S. My furthure advice is a simple php file with only one line:
<?php phpinfo(); ?>
is extremely useful for debugging.
นี่ปกติเป็น web php แรกๆของทุกคนเลยนะครับ :)
security advice: *
security advice:
* อย่าปล่อยให้คนภายนอกเห็นหน้านั้น
* ทางที่ดีไม่ควรปล่อยทิ้งไว้ในเซิร์ฟเวอร์ให้รันได้เลย (อาจจะลบทิ้งหรือเปลี่ยนชื่อเป็น .xxx อะไรก็ว่าไป เมื่อใช้เสร็จ)
* ถ้าจะทิ้งไว้จริง ๆ อย่างน้อยควรมีพาสเวิร์ดป้องกัน (.htaccess)
อันนี้แอดมินที่มหาลัยเคยเตือน (แรง ๆ) มา
เคยปล่อยทิ้งไว้
bact:
"หน้านั้น" หมายถึงอะไร?
วันหลังขอชัดเจนนิดนึง
อ่าน 3
อ่าน 3 บรรทัดสุดท้ายของเนื้อหาดูครับ
อรรถ:
ผมเข้าใจครับ แต่คนอื่นจะเข้าใจรึเปล่า?
ภาษาเขียนมันต่างจากภาษาพูดเยอะเหมือนกัน เขียนอะไรควรคาดการณ์เผื่อคนอื่นไว้ด้วย จะมากะให้เค้าเข้าใจเองด้วยคำว่า "นั้น" "นู้น" มันไม่ได้หรอก