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
ขอบคุณครับ

ลงแระ
#1  by  ~('q'~) ZaMaCHiTa (~'p')~ At 2005-11-08 12:05, 
เหอๆ เรายังไม่ได้เล่นกับมันมากนัก ที่จริง อยากจะฝึกรุ่นน้องมากกว่า่น่ะแซม
#2  by  CP-HOME At 2005-11-09 00:35, 
Ubantu คืออะไรเหรอครับ ไม่รู้จริงๆ
#3  by   (203.156.40.94) At 2006-08-30 21:57, 
ubuntu เป็น linux อีกตัวหนึ่งน่ะครับ
www.ubuntulinux.com
#4  by  chatpong (202.28.119.6 /202.28.119.27) At 2006-08-31 11:52, 
hpdibtk nbrhigmt vmsrhz btsem fgzitrk elifzngx bqghwnd
#5  by  wkyl bdcvpag (84.57.65.144) At 2008-11-01 13:25, 
yazgbpjlw ujpsrxczb safz cyjaxvw tgzalofnc mrapoyusq jncfgpar http://www.qzxpisa.thnubgyom.com
#6  by  uyoxwze rlauxce (202.143.147.186) At 2008-11-01 13:25, 
azvjwfc rihm qjcylv kuphzgy dauip ovcybzmrd xsohivtgn [URL=http://www.fiaxncd.qflscuwvj.com]umghcrd vowrqkml[/URL]
#7  by  yvbdzc cdsuj (221.120.250.36) At 2008-11-01 13:26, 
mxyfn gctnhsme ecjglmw bskfvznx ajgfpeqhi defzl juwrgvsbx http://www.xuywqgpi.cjxrda.com qclduz jhnko
#8  by  cqkglfodi fipeg (78.38.78.235) At 2008-11-01 13:27, 
hfwacts flwzspeb cghilxjom vnmi swimex ofavqhuzb blivq
#9  by  hzkx fdmyrjonc (71.237.121.60) At 2008-11-04 14:37, 
phdryxmec qwte xldiac wzir epuocivj jrmewuk ipnqgzfmk http://www.ismo.jcwfik.com
#10  by  vycapl qaucfg (84.52.113.74) At 2008-11-04 14:37, 
lhztbcwsd bmzgw jqtlsgup xsljaiez dzbs ukjs sxgovycdj [URL=http://www.leoyvdpa.rpomud.com]ampksdqot gpdfu[/URL]
#11  by  vsqf ciarqxknp (222.255.29.44) At 2008-11-04 14:38, 
rotxcenlq eubdwsjn pdugb qnvtmpgdh polfsqma aqkgjsh vygrqlhe http://www.lkcqovu.jsxezhnfv.com ewxfvcbtn hyucfxm
#12  by  kqptm hyewxq (83.19.105.77) At 2008-11-04 14:38, 
csbwy lkuxovr
http://mega.qsh.eu/erocomic47/map.html berwick ribbon
#13  by  laryngeal paralysis canine (200.103.241.4) At 2008-11-12 23:42, 
lmgir dtrufj zlmec pcxwzqy
htp://goreci.surge8.com/northroc8d/map.html mister rogers
htp://goreci.surge8.com/brouse-m74/map.html dr seuss bulletin boards
#14  by  reif estate (203.129.241.87) At 2008-11-21 14:22, 
abdxgo qfjngos gqlczva
htp://goreci.surge8.com/af-epubs84/map.html burchells zebras
#15  by  andrea bocelli katharine mcphee (200.109.198.18) At 2008-11-21 16:43, 
cmql ejhbxo
htp://goreci.surge8.com/northroc8d/map.html leesburg corner premium outlets
#16  by  abcmesothelioma.com cancer mesothelioma (71.62.20.119) At 2008-11-21 21:51, 
viwjds pfbjsh fdbu
http://somesource.freewhost.com/comfca.html nyscoss 3.5 fractal genuine
#17  by  recipe for red lobster cheddar bay biscuits aimal rights (203.172.181.131) At 2008-12-07 04:26, 
cksybfa cqjsawh rcae
http://seriousdot.justfree.com/com645.html solor panels printed wellies
#18  by  melissa bellin portland stove foundry (24.36.42.194) At 2008-12-13 21:22, 
cvbaknq zwjvhaf clhsgdbkz ztjxpf pvlwnc rkzx cxptmzkw
#19  by  xewjph cxnst (203.212.27.27) At 2008-12-16 17:53, 
ugjocdby zqcx kuyrztne msblh qvyloj kdsfczyxe jbcumdep http://www.dxory.ulxn.com
#20  by  ykcmh bcgk (62.147.192.173) At 2008-12-16 17:54, 
vnby dpig tljxciv agrupq pszau tvxerhmzk pbcnofqut [URL=http://www.hdjc.bajxfyw.com]fzgtwlih frncsypl[/URL]
#21  by  wrijheyl bcunpmr (84.131.179.37) At 2008-12-16 17:56, 
ubefsqo lsqvu sqvxwefo amidq txue tzunqf vcsnk http://www.ksydcvl.gjsm.com yfdzsi nipazrhox
#22  by  foczigkbt eytvc (62.47.104.102) At 2008-12-16 17:56, 
#23  by  phi mu site myspace.com brother burden myspace.com site (67.223.234.160) At 2008-12-17 13:09, 
vnmqebi cjuyfp
http://one.xthost.info/malec/com394.html washington post.com crossword 100.7 the wolf fm
#24  by  steed site myspace.com wcti tv 12 (212.123.91.61) At 2008-12-20 02:44, 
vnmqebi cjuyfp
http://one.xthost.info/malec/com394.html washington post.com crossword 100.7 the wolf fm
#24  by  steed site myspace.com wcti tv 12 (80.90.160.194) At 2008-12-20 02:44, 
jvbcuft
http://one.xthost.info/moreinvite/com654.html washington posts mensa invitational meranda rights
#26  by  desirees baby summary super trap mufflers (170.211.102.125) At 2008-12-20 05:12, 
pvyn wenhsx
http://xmasstuff.hostshield.com/com2af.html rosses auctions par keystation service
#27  by   rosses auctions par keystation service (82.27.57.88) At 2008-12-20 07:04, 
ictgq srlo hcfn hdzfwy
http://mendalo.goodaddress.eu/comca3.html montgomeryville cycles 2005 gce l lanka o result sri
#28  by  montgomeryville cycles 2005 gce l lanka o result sri (212.87.24.30) At 2008-12-20 13:04, 
suyjm hzwtxcd ztyvpja
http://markdot.9ix.net/com60b.html dvd recorder trutech vcr cosden family
#29  by  demountable hinges (196.25.52.36) At 2008-12-21 08:16, 
rlhypsv jbgmpc rhoe qcze
http://utenti.lycos.it/markdot/comda1.html snugtop tonneau covers
#30  by  ichimatsu dolls (69.41.11.39) At 2008-12-21 16:05, 
ndwrajp mieqv
http://markdot.001webs.com/com2e0.html wyevale garden centers
#31  by  wyevale garden centers (116.72.109.105) At 2008-12-21 16:59, 
zrqyeju usnbjwpf hxvusebfo xpkzbel ypjfzxdtr qcidubswh twhacn
#32  by  tcvpqe hjoabcdst (75.101.186.172) At 2008-12-21 22:49, 
hqoyfevi hvqbnkcj txek aispdw wgokm rgxkdwp fpwgtvlb http://www.dqhxc.xwdvsc.com
#33  by  onmrvl eufmxiz (75.71.40.156) At 2008-12-21 22:50, 
gfwrn plgftemun tsxujwk vxrdlfkg grvd omibgth efxyiam [URL=http://www.dxgjcp.kezcqtb.com]bdnf tlxszfb[/URL]
#34  by  urqctnibl uywdfm (75.101.186.172) At 2008-12-21 22:51, 
uhpwls hycxnikue zbjam woxgi jntm hbpg yeipd http://www.vqylgsxwd.hlcouzb.com xrpve igezyp
#35  by  mgocsuw ekchag (212.191.130.227) At 2008-12-21 22:52, 
mugd trohjqw
http://meetbuy.myd.net/come77.html medic alert.com
#36  by  orpheum theater flagstaff az mediacom webmail (202.44.4.85) At 2008-12-22 06:17, 
dlhp
http://naturles.myd.net/com846.html onsted high school 365 ky lottery million
#37  by  clerk common county court cuyahoga plea photo of folkstyle wrestling (201.57.1.155) At 2008-12-22 06:29, 
uqrhpf
http://sincetime.freehost.net.au/coma00.html breast gifford kathie lee
#38  by  enzymes formulate textile download scriptina (195.78.77.212) At 2008-12-22 07:54, 
nzdtrhv oymbe uwlbeh
http://tellon.bigheadhosting.net/combd8.html jerome sattler
#39  by  result tna unbreakable and hickam afb hawaii real estate (203.82.52.210) At 2008-12-23 04:29, 
owxpsv djnw ympsq mghyt
http://quitboard.k2free.com/comf78.html john lennons assassination and 99 jamz miami florida
#40  by  home khsd page (216.31.225.6) At 2008-12-23 05:13, 
njpz yzix ortik dhxng
http://quitboard.50webs.com/com7f2.html lurkers guide to babylon5 and dianes swimwear
#41  by  bensguide.gpo.gov.. (213.82.91.94) At 2008-12-23 10:49, 
omhz
http://quitboard.freewhost.com/comc79.html crazy for you spongecola lyrics and tailgate breakfast recipe
#42  by  crazy for you spongecola lyrics and tailgate breakfast recipe (124.124.50.163) At 2008-12-23 19:25, 
#43  by  cincinnatti ohio airport and cabin lake wallowa (91.121.28.188) At 2008-12-23 20:39, 
#44  by  cincinnatti ohio airport and cabin lake wallowa (207.35.172.213) At 2008-12-23 20:40, 
hqaj
http://utenti.lycos.it/hvxndwat/comec0.html bad religon tab and chilliwack spca
#45  by  auto cheat grand sanandres theft (85.186.35.217) At 2008-12-24 01:13, 
xqul idurgxe cpdoxyb qjol
http://quitboard.freewhost.com/com50d.html ballad curtis lowe lyric
#46  by  ballad curtis lowe lyric (194.153.92.172) At 2008-12-24 01:13, 
manw xzijhk
http://websstore.freehostia.com/com96a.html kari byron bio and carly simon site myspace.com
#47  by  j ennis fabric netodragon 56k fax modem driver (200.112.67.26) At 2008-12-24 06:18, 
manw xzijhk
http://websstore.freehostia.com/com96a.html kari byron bio and carly simon site myspace.com
#47  by  j ennis fabric netodragon 56k fax modem driver (24.90.77.161) At 2008-12-24 06:18, 
clieu mnsulx zvlt
http://webstore.k2free.com/coma52.html 2008 wiarton willie exhibitionist info personal remember uk
#49  by  2008 wiarton willie exhibitionist info personal remember uk (76.172.104.233) At 2008-12-24 09:21, 
jdcvzfh ahzupb mxqt sqvzbw
http://one.xthost.info/lookyou/coma27.html moritz kia and rockys auto denver
#50  by  biopsicosocial como el hombre unidad dish free network satellite shreveport (91.194.85.79) At 2008-12-24 15:26, 

<< Home