เราสามารถใช้ template ที่มีมาให้ได้เลยครับ
สำหรับ debian ,ubuntu อยู่นี่ครับ
ls /usr/share/doc/mysql-server-5.1/examples/
my-huge.cnf.gz my-innodb-heavy-4G.cnf.gz my-large.cnf.gz my-medium.cnf.gz my-small.cnf
ของผมใช้ mysql-server-5.1 นะครับ ถ้าใช้ mysql-server-5.0 path จะแตกต่างกัน
ให้ทำการแตกไฟล์โดยสั่ง gunzip filename.gz เราก็จะได้ไฟล์เป็น x.cnf
เช่นผมเลือกใช้ my-huge.cnf.gz สำหรับงานหนักสุดๆของผม
gunzip /usr/share/doc/mysql-server-5.1/examples/my-huge.cnf.gz
cp /usr/share/doc/mysql-server-5.1/examples/my-huge.cnf /etc/mysql/my.cnf
แล้วทำการ restart mysql server ครับ
ปล. mysql server จะจอง RAM สำหรับการใช้งาน มากขึ้นตาม ไฟล์ my-xxx.cnf ที่เราเลือกไปนะครับ ระบบใหญ่ก็ใช้เยอะครับ
๔ ความคิดเห็น:
Amiable post and this enter helped me alot in my college assignement. Thanks you on your information.
Easily I assent to but I contemplate the post should secure more info then it has.
แสดงความคิดเห็น