BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: A ROON CHAI ที่ พฤศจิกายน 19, 2008, 16:24:10 PM

หัวข้อ: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: A ROON CHAI ที่ พฤศจิกายน 19, 2008, 16:24:10 PM
เป็นทุกที่ที่มีการพิมพ์ใบสั่งยา
ตอนนี้พิมพ์ใบสั่งยาไม่ได้เลยครับ
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: Knott ที่ พฤศจิกายน 19, 2008, 16:47:28 PM
ลอง repair serial ดูครับ
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: doramon ที่ พฤศจิกายน 19, 2008, 17:01:47 PM
I wanted to convert my database (which has more than 300 tables - all of them are MyISM type) to InnoDB format.

I googled and found the best way to achieve this is using an SQL statement

'ALTER TALE tablename type=innodb'

This SQL statement works fine - but changing 300+ tables is not an good solution.

I found this script very interesting to change all tables in a database to innoDB format.

for T in `mysql -u root -B -N -e “show tables” test`; do mysql -u root -e “alter table $T type=innodb” test; done

Replace “test” with the target database. This pattern is also great for optimizing or analyzing your MyISAM tables.

Hope this helps.
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: doramon ที่ พฤศจิกายน 19, 2008, 17:04:50 PM
ลอง repair serial ดูครับ

จะอยู่ที่ เมนู tool  --->  misc ---->  checkDB

หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: A ROON CHAI ที่ พฤศจิกายน 19, 2008, 17:49:16 PM
 ;D ;D ;D OK แล้วครับ  ขอบพระคุณอาจารย์ทุกท่านครับ

...เกิดจากอะไรครับ

...ทำไมทำ serial checkแล้วหาย

...ต้องทำ serial check ทุกกี่วันครับ

...
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: A ROON CHAI ที่ พฤศจิกายน 19, 2008, 18:16:35 PM
I wanted to convert my database (which has more than 300 tables - all of them are MyISM type) to InnoDB format.

I googled and found the best way to achieve this is using an SQL statement

'ALTER TALE tablename type=innodb'

This SQL statement works fine - but changing 300+ tables is not an good solution.

I found this script very interesting to change all tables in a database to innoDB format.

for T in `mysql -u root -B -N -e “show tables” test`; do mysql -u root -e “alter table $T type=innodb” test; done

Replace “test” with the target database. This pattern is also great for optimizing or analyzing your MyISAM tables.

Hope this helps.


หลังจากลง centOS,MySQL ใหม่และย้ายฐานข้อมูลแล้ว ต้องทำ High Performance ด้วยหรือเปล่าครับ
(ฐานข้อมูลเดิมเคยทำไว้แล้ว)
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: doramon ที่ พฤศจิกายน 19, 2008, 18:25:12 PM
กดเลยครับ

หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: A ROON CHAI ที่ พฤศจิกายน 19, 2008, 19:12:36 PM
กดเลยครับ



 :D :D :D :D
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: udomchok ที่ พฤศจิกายน 20, 2008, 00:01:50 AM
I wanted to convert my database (which has more than 300 tables - all of them are MyISM type) to InnoDB format.

I googled and found the best way to achieve this is using an SQL statement

'ALTER TALE tablename type=innodb'

This SQL statement works fine - but changing 300+ tables is not an good solution.

I found this script very interesting to change all tables in a database to innoDB format.

for T in `mysql -u root -B -N -e “show tables” test`; do mysql -u root -e “alter table $T type=innodb” test; done

Replace “test” with the target database. This pattern is also great for optimizing or analyzing your MyISAM tables.

Hope this helps.

so good.!!

googled
ตกลงว่าเดี๋ยวนี้ google กลายเป็น verb ไปด้วยแล้วเหรือเนี่ย !@#$%^&*
หัวข้อ: Re: ขึ้น SQL Error ไม่พิมพ์ใบสั่งยา!!
เริ่มหัวข้อโดย: Knott ที่ พฤศจิกายน 20, 2008, 10:34:36 AM
ศัพท์ใหม่มั้งครับ  ;D ;D ;D