2005/Oct/28

สำหรับ MySQL 5.0 นี้ มีฟีเจอร์น่าสนใจ เยอะเลยล่ะ ก็เลยจะทดลองฟีเจอร์เหล่านั้น เพื่อนำมาเทียบกับ PostgreSQL 8.0 ที่ลงไว้ในเครื่องแคมปัส สำหรับการลง MySQL 5.0 บน Debian Based นั้น ไม่ยากนัก apt-get install ได้เลย แต่ต้องเพิ่มแหล่งที่อยู่ ให้คอนฟิกไฟล์ด้วย

ขั้นตอนการติดตั้ง

1. เพิ่มแหล่งข้อมูล ในไฟล์ /etc/apt/sources.list ดังนี้

deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

2. จากนั้นก็ทำการอัพเดตฐานข้อมูลโปรแกรม ดังนี้
$ sudo apt-get update

3. จากนั้นก็ทำการติดตั้งได้เลยครับ
$ sudo apt-get install mysql-server-5.0

จากนั้นจะมีข้อมูลขึ้นมาแสดงให้เราเห็นว่า มีโปรแกรมอะไร ที่จะติดตั้งบ้าง
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl liblockfile1 libmysqlclient15 libnet-daemon-perl libplrpc-perl mailx mysql-client-5.0
mysql-common postfix
Suggested packages:
dbishell libcompress-zlib-perl postfix-mysql postfix-pgsql postfix-ldap postfix-pcre
Recommended packages:
resolvconf
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl liblockfile1 libmysqlclient15 libnet-daemon-perl libplrpc-perl mailx mysql-client-5.0
mysql-server-5.0 postfix
The following packages will be upgraded:
mysql-common
1 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.
Need to get 25.7MB/26.8MB of archives.
After unpacking 60.7MB of additional disk space will be used.
Do you want to continue [Y/n]?

4. จากนั้นทำการตั้งรหัสผ่านให้ root ของ mysql ครับ เนื่องจากค่าโดยปริยาย จะไม่มีรหัสผ่าน ในที่นี้ ผมกำหนดเป็น mysample นะครับ
$ sudo mysqladmin -u root password mysample

5. จากนั้นก็ลองใช้งานดูครับ
$ mysql -u root -p

แล้วก็ใส่รหัสผ่าน
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 5.0.15-Debian_0.dotdeb.1-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>


สำหรับคอนฟิกอื่นๆ ค่อยมาเขียนเพิ่มเติมดีกว่า เหอๆ พอดีตะกี๊พึ่งอัพเดตพอร์ต ของ FreeBSD เสร็จ เห็นมี MySQL 5.0.15 ด้วย น่าสนๆ อิอิ พรุ่งนี้ค่อยมาเขียนโปรแกรมทดสอบ วันนี้ติดตั้งให้เสร็จๆ ไปก่อนดีกว่า

:- )
ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
Very nice site! [url=http://ypxoiea.com/qyrxoq/2.html]cheap cialis[/url]
#651  by  uwyetioo (87.204.126.99) At 2009-10-06 20:53, 
Very nice site! cheap cialis http://ypxoiea.com/qyrxoq/4.html
#652  by  uwyetioo (195.131.152.72) At 2009-10-06 20:53, 
Very nice site!
#653  by  uwyetioo (115.163.218.47) At 2009-10-06 20:53, 
Very nice site!
#654  by  wueeyyuw (203.190.50.9) At 2009-10-06 22:03, 
Very nice site! [url=http://ypxoiea.com/qyrxoq/2.html]cheap cialis[/url]
#655  by  iitytprr (219.139.158.59) At 2009-10-07 02:47, 
Very nice site! cheap cialis http://ypxoiea.com/qyrxoq/4.html
#656  by  iitytprr (82.236.253.9) At 2009-10-07 02:47, 
Very nice site!
#657  by  iitytprr (89.39.188.106) At 2009-10-07 02:47, 
Very nice site!
#658  by  proruowt (202.143.160.74) At 2009-10-07 03:57, 
Very nice site!
#659  by  iootpeuo (201.59.216.76) At 2009-10-07 05:51, 
Very nice site! [url=http://ypxoiea.com/qyrxoq/2.html]cheap cialis[/url]
#660  by  woptorto (201.91.21.108) At 2009-10-07 06:02, 
Very nice site!
#661  by  woptorto (117.20.54.54) At 2009-10-07 06:02, 
#662  by   (92.234.171.50) At 2009-10-24 22:30, 
#663  by   (202.133.158.45) At 2009-12-21 22:28, 

<< Home