Create an account    
 home  
 
Web www.thaihealth.net
  You are here:> home>topics> basic MySQL > การลง MySQL ใน Redhat Linux ตอน2 ©
php&MySQL: การลง MySQL ใน Redhat Linux ตอน2
Posted on Friday, October 03 @ 10:52:34 GMT+7 by admin

basic MySQL

จะ compile เอง หรือลงแบบbinary

มาถึงตอนจะเอาโปรแกรมมาลงแล้ว สำหรับมือใหม่ ๆ อย่างเรา ผมแนะนำให้เอาแบบ binary ครับ แม้ว่าจะช้ากว่า ปรับแต่งได้ไม่ถึงใจ แต่ข้อดีคือง่าย สะดวก และมี library ที่จำเป็นมาให้ครบ ตัดปัญหาในกรณีที่มันชอบถามว่า fail dependency อะไรอย่างนั้น



จะเอาเวอร์ชั่น 3.xx.xx หรือ 4.xx.xx ดี ถ้าว่ากันตามความนิยมและ stable เอา 3.ก็ดี แต่ถ้าแบบพวกลองของ และนิยมชมชอบฟังก์ชั่นใหม่ fulltext search และความปลอดภัยรวมถึงความเร็วที่เหนือกว่า และแถมการปรับแต่ง on-the-fly เลือกเวอร์ชั่น 4.xx.xx ไม่ผิดหวัง
MySQL 4.0 production version
MySQL3.23 production version

พอได้มาเสร็จ ผมจะยกตัวอย่าง binary built ครับ ง่ายมาก เราก็ก๊อปมาลงไว้ที่ /usr/local directory สมมุติว่าไฟล์ที่เราได้มาเป็น MySQL-4.xxx-stable
# groupadd mysql
# useradd -g mysql mysql
# mv MySQL-4.xx-stable.tar.gz /usr/local
# tar xvfz MySQL-4.xx-stable.tar.gz
# ln -s MySQL-4.xx-stable mysql
# cd mysql
# scripts/mysql_install_db
# chown -R root .
# chown -R mysql data
# chgrp -R mysql .
# bin/mysql_safe --user=mysql &(สำหรับเวอร์ชั่น ต่ำกว่า 4)
# bin/safe_mysqld --user=mysql &(สำหรับเวอร์ชั่น 4 ขึ้นไป)
# cp support-files/mysql.server /etc/rc.d/init.d
# chkconfig --add mysql.server
หลังจากนั้นจะสามารถเปิดและปิดการทำงานของ mysql โดยสั่ง
# /etc/rc.d/init.d/mysql.server start หรือ /etc/rc.d/init.d/mysql.server stop หรือ /etc/rc.d/init.d/mysql.server restart

การปรับแต่ง server จะอยู่ที่ไฟล์ /etc/my.cnf ซึ่งจะกล่าวในรายละเอียดต่อไป


blog this


blog this

More about mysqlbasic

Comment Post
1  by gaila
on Saturday, January 26 @ 07:54:45 GMT+7
free wallpaper [gallery.newsit.es]


2  by
on Sunday, March 16 @ 20:09:32 GMT+7
منتديات [f.jsoftj.com]

Read the rest of this comment...


3  by mrxxs
on Sunday, May 11 @ 18:05:06 GMT+7
Download Free Software and Sharewares [www.tt5r.com] Read the rest of this comment...




Your Name:

[ New User ]

Subject:


Comment:

Allowed HTML:
<b> <i> <a> <em> <br> <strong> <blockquote> <tt> <li> <ol> <ul>
Security code:



T news tweak
 

       Sponsored Links
       Related Links
· More about basic MySQL
· News by admin


Most read story about basic MySQL:
       Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


       Options

 Printer Friendly  Printer Friendly

 Send to a Friend  Send to a Friend

News ©

เล่นเกมส์ arcade games free!

main sitethaihealth | home | forums | downloads | topics

Seo from our desk thai seo
Web site engine code is Copyright © 2003 by PHP-Nuke.Copyright 2007 Thaihealth and pattaya doctor
Page Generation: 0.576 Seconds

Theme developed by WebDesignHQ.com Modified By DoctorNUKE