แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - มดตานอย ครับ..

หน้า: [1] 2 3 4
1
เกี่ยวกับรายการ Trx หาย ณ ปัจจุบัน สามารถไขแก้ได้ 100 %  หรือยังครับ   ปัจจุบัน ใช้ 3.55.8.18  ยังหายเยอะ อยู่ครับ   

ปล.ต้องขออภัย ถ้ามีการแก้ไขปัญหานี้แล้ว   เนื่องจาก นานๆ เข้าใช้ www.hosxp.net 


2
แจ้งรายการใน TRX ยังหายครับ  มีแนวทางแก้ไขไหมครับ   .......ตอนนี้ใช้ 3.55.4.25   
...ขอบพระคุณครับ


3
เรียน อ.MN เรื่องรายการ TRx หาย .. จากการติดตามจนถึงปัจจุบัน มีรายการของ TRx หายเกือบ 100 % แต่ก็แก้ไขปัญหาโดย วิธีนำ รายการ TRx กลับมาใช้ ตามที่ อ.ได้แนะนำ จากกระทู้ ก่อนๆ  ....จึงอยากทราบว่าปัจจุบัน มีวิธีไหนครับ ที่จะไม่ให้หาย  หรือต้องอัพ hosxp เป็นเวอร์ปัจจุบันครับ  ....หรือ อ. ท่านใดพอจะมีวิธีแก้ไขหรือแนะนำอย่างไรบ้างครับ   ตอนนี้ใช้ 3.55.1.19     ....ขอบพระคุณเป็นอย่างสูงครับ   

4
นอกเรื่อง / สสจ.นครพนม รับสมัคร นวก.คอมพิวเตอร์
« เมื่อ: กุมภาพันธ์ 29, 2012, 11:27:08 AM »

5
Linux / CentOS 6.1 >>>>>New
« เมื่อ: ธันวาคม 09, 2011, 23:28:43 PM »
CentOS 6.1 >>>>>>>>>>>>New
เพิ่งไปเจอมาครับ กำลังโหลดมาเล่น  โหลดได้ที่   

32 bit
ftp://mirrors.issp.co.th/centos/6.1/isos/i386/
 

64 bit
ftp://mirrors.issp.co.th/centos/6.1/isos/x86_64/

6
แจ้งข้อผิดพลาดการทำงานของ HOSxP V3 / HOSxP-3.54.10.27
« เมื่อ: ตุลาคม 27, 2011, 11:48:46 AM »
ร่วมกันทดสอบ

http://hosxp.net/bms/HOSxP_Upgrade_3.54.10.27.exe


7
แจ้งข้อผิดพลาดการทำงานของ HOSxP V3 / HOSxP-3.54.10.26
« เมื่อ: ตุลาคม 26, 2011, 11:23:28 AM »
HOSxP-3.54.10.26  ออกแล้วขอบพระคุณ อ.mn   

http://hosxp.net/bms/HOSxP_Upgrade_3.54.10.26.exe

ร่วมกันทดสอบครับ   

8
Report Exchange / ขอความช่วยเหลือครับเรื่อง Report
« เมื่อ: สิงหาคม 15, 2011, 10:00:41 AM »
ขอความช่วยเหลือครับเรื่อง Report
อยากได้ เลขประจำตัวประชาชน 13 หลัก มาด้วย  ตาม from ที่แนบมาครับ ...ขอบพระคุณครับ

9
HOSxP 3.54.6.10 ออกแล้วววววววว

มาคู่กับ
Percona-Server-5.1.57-12.8 

http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.57-12.8/RPM/

Percona-Server-5.5.12-20.3

http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.12-20.3/RPM/

โหลดทดสอบครับ

10
Linux / Scientific Linux 6.0 >>>>New
« เมื่อ: มีนาคม 15, 2011, 15:27:22 PM »
Scientific Linux 6.0 >>>>New   

เป็นตัวทีทำมาจาก  Redhat Enterprise Linux 6.0    เหมือนๆกันกับ  Oracle Linux 6.0 ลองๆดูครับ

http://www.scientificlinux.org/   




11
MySQL / Percona-Server-5.5.8-beta20.0 >>>New
« เมื่อ: กุมภาพันธ์ 17, 2011, 16:57:54 PM »
Percona-Server-5.5.8-beta20.0 >>>New    แต่ยังเป็นรุ่น beta ครับ

http://www.percona.com/downloads/Percona-Server-5.5/

12
Linux / Oracle Enterprise Linux 5.6 >>>New
« เมื่อ: มกราคม 31, 2011, 17:42:59 PM »
Oracle Enterprise Linux 5.6 >>>New

ที่น่าสนใจคือ ระบบ File System แบบ Ext4   ที่เร็วกว่า   Ext3      ซึ่งมีมาตั้งแต่ version 5.5 แล้ว

ลองโหลดมาเล่นที่     http://edelivery.oracle.com/linux   

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

13
มีหลายตำแหน่งรวมถึง ตำแหน่งนักวิชาการคอมพิวเตอร์  ตามนี้ครับ

http://www.nkphospital.com/modules.php?name=Content&pa=showpage&pid=214



14
Linux / ThaiOS:Os ของคนไทย
« เมื่อ: ตุลาคม 22, 2010, 11:40:32 AM »
ดาวน์โหลด ThaiOS 10.04.1 Power Overwhelming
ระบบปฏิบัติการไทยโอเอส รุ่น 10.04.1 พัฒนาต่อยอดจาก Ubuntu 10.04 โดยสิ่งที่เปลี่ยนแปลงมีด้วยกันดังนี้

•ปรับปรุง OpenOffice.org เป็นรุ่น 3.2.1
•เพิ่มตัวสลับภาษา Grave accent
•เพิ่มฟอนต์ภาษาไทยมาตรฐานกว่า 40 ฟอนต์
•เพิ่มส่วนขยายที่จำเป็นของ FireFox
•เพิ่มส่วนขยายที่จำเป็นของ OpenOffice.org
•พร้อมแม่แบบเอกสารราชการและตราครุฑ
•เชื่อมโยงกับ Cloud Storage เพื่อสำรองข้อมูลได้โดยตรง
•เพิ่มโปรแกรมปรับแต่งหน้าจอบูต grub
•เพิ่มโปรแกรมจัดการฟอนต์


เซิร์ฟเวอร์หลัก (thaios.sipa.or.th)
ดาวน์โหลด: thaios-10.04.1.iso
MD5SUM: ca071a0d1df05a5aac053b2e9c0cbf15




เซิร์ฟเวอร์รอง (thaiopensource.org)
ดาวน์โหลด: thaios-10.04.1.iso
MD5SUM: ca071a0d1df05a5aac053b2e9c0cbf15




* หากท่านไม่มีอินเตอร์เน็ตความเร็วสูง สามารถใช้บริการจัดส่งแผ่นได้ โดยส่งซองเปล่าติดสแตมป์ 9 บาทจ่าหน้าซองถึงตัวคุณเอง ส่งมาที่

ฝ่ายโอเพนซอร์ส
สำนักงานส่งเสริมอุตสาหกรรมซอฟต์แวร์แห่งชาติ (องค์การมหาชน)
120 หมู่ที่ 3 ชั้น 9 อาคารรวมหน่วยงานราชการ บี ศูนย์ราชการเฉลิมพระเกียรติ 80 พรรษา 5 ธันวาคม 2550
ถนนแจ้งวัฒนะ แขวงทุ่งสองห้อง เขตหลักสี่
กรุงเทพมหานคร
10210

ที่มา    http://thaios.sipa.or.th/download/



15
MySQL / ออกแล้ว Percona-Server-5.1.50-12.1
« เมื่อ: ตุลาคม 13, 2010, 12:22:46 PM »
ออกแล้ว Percona-Server-5.1.50-12.1

http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.50-12.1/

ขอเก็บเอาไว้ทดสอบก่อนนะครับ
 ;D ;D ;D ;D ;D ;D

16
MySQL / Percona-Server-5.1.50-11.4>>>>New
« เมื่อ: กันยายน 28, 2010, 08:51:35 AM »
Percona-Server 5.1.50-11.4>>>>New

http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.50-11.4/

ท่านใดทดสอบแล้วได้ผลอย่างไรก็แนะนำด้วยนะครับ
 ;D ;D ;D ;D ;D ;D

17
MySQL / Percona-Server-5.1.49-11.3>>>>New
« เมื่อ: กันยายน 09, 2010, 15:28:38 PM »
Percona-Server-5.1.49-11.3>>>>New

http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.49-11.3/RPM/

ลองเอาไปทดสอบดูนะครับ

 ;D ;D ;D ;D ;D ;D ;D

18
MySQL / Percona-Server 5.1.47-11.0 >>>>New
« เมื่อ: มิถุนายน 17, 2010, 12:03:42 PM »
Percona-Server 5.1.47-11.0 >>>>New

หลังจาก  MariaDB 5.1.47  ออกไม่กี่วัน   Percona-Server 5.1.47-11.0  ก็ออกตามมาติดๆ

โหลดไว้เล่นครับ


percona     >>>>>>   http://www.percona.com/downloads/Percona-XtraDB/

mariadb     >>>>>>   http://askmonty.org/wiki/MariaDB:Download:MariaDB_5.1.47



 ;D ;D ;D ;D ;D



19
MySQL / MariaDB 5.1.47 >>>>>>New
« เมื่อ: มิถุนายน 10, 2010, 14:30:49 PM »
MariaDB 5.1.47 >>>>>>New


http://askmonty.org/wiki/Main_Page

http://askmonty.org/wiki/MariaDB:Download:MariaDB_5.1.47


ขอโหลดไว้ลองเล่น  ก่อนนะครับ 

 ;D ;D ;D ;D ;D ;D ;D ;D


20
MySQL / Percona 5.1.45-10.2 Benchmark
« เมื่อ: พฤษภาคม 26, 2010, 15:27:40 PM »
กำลังทดสอบเปรียบเทียบ  MySQL-Percona  ติดตั้งระหว่าง   CentOS 4.7  กับ  CentOS 5.4  อย่างอื่นเหมือนกันทั้งหมด   ทั้ง  Hardware  และ  my.cnf   ค่าที่ออกมา งงๆ อยู่ไม่รู้จะอ่านผลอย่างไร 

ถ้าคิดว่า  transaction  /  sec.  สูงดี    centos 4.7  คงดีว่า ผมคิดไว้นะครับ   ท่านอื่นว่าอย่างไรครับ   
กำลังจะทดสอบ  ติดตั้งบน  OS   ต่างกัน มันจะเป็นอย่างไร

21
Linux / CentOS 5.5 ออกแล้วนะครับ
« เมื่อ: พฤษภาคม 18, 2010, 15:03:34 PM »
CentOS 5.5 ออกแล้วนะครับ   ท่านใดอยากลองของใหม่ก็โหลดตามนี้เลยครับ 

ftp://mirrors.issp.co.th/centos/5.5/isos/



22
MySQL / Percona-XtraDB-5.1.45 มาแล้ว
« เมื่อ: เมษายน 09, 2010, 18:08:45 PM »

ท่านใดจะทดสอบก่อนใครบ้าง

http://www.percona.com/percona-builds/Percona-XtraDB/Percona-XtraDB-5.1.45-10/RPM/
 ;D ;D ;D

23
MySQL / Percona-XtraDB 5.1.43 VS MariaDB 5.1.44
« เมื่อ: มีนาคม 26, 2010, 10:17:32 AM »
XtraDB on Percona-XtraDB 5.1.43   VS   XtraDB on MariaDB 5.1.44

ท่านใดทดสอบแล้วครับ  ผลเป็นอย่างไรครับ    ทั้งสองตัว มันจะ  support  hosxp  ให้สามารถทำงานได้ดีหรือไม่ครับ


Percona-XtraDB 5.1.43    http://www.percona.com/percona-builds/Percona-XtraDB/

MariaDB 5.1.44                http://askmonty.org/wiki/MariaDB:Download


 ??? ??? ??? ???


24
MySQL / MariaDB 5.1.42----Stable
« เมื่อ: มีนาคม 15, 2010, 09:33:20 AM »
MariaDB 5.1.42----Stable

http://askmonty.org/wiki/Main_Page

ไม่รู้ถ้าใช้ hosxp จะ stable หรือเปล่า  ท่านใดจะเป็นหน่วยทดสอบครับ

 ;D ;D ;D ;D




25
MySQL / Master to Master+Slave Replication
« เมื่อ: มีนาคม 12, 2010, 18:53:23 PM »
ยังเป็นแค่แผนผังเท่านั้น  และกำลังทดสอบครับ  ยังไม่ได้ใช้จริง   คิดๆไว้ไม่รู้จะมีโอกาสได้ทำหรือเปล่า 

ตามรูปครับ..น่าจะดี


26
MySQL / MySQL เวอร์ชั่นไหนดีที่สุดขณะนี้
« เมื่อ: มีนาคม 12, 2010, 14:57:49 PM »
MySQL เวอร์ชั่นไหนดีที่สุดขณะนี้   ใช้แล้วไม่มีปัญหา

......ขอบพระคุณครับ



27
MySQL / Percona-XtraDB 5.1.43>>>>New
« เมื่อ: กุมภาพันธ์ 27, 2010, 12:07:09 PM »

28
MySQL / MySQL 5.1.44 >>>>>New
« เมื่อ: กุมภาพันธ์ 18, 2010, 13:48:57 PM »
MySQL 5.1.44 >>>>>New

ออกใหม่แล้วครับ


29
MySQL / MariaDB 5.1.42 For CentOS>>>New
« เมื่อ: กุมภาพันธ์ 10, 2010, 12:05:48 PM »
MariaDB 5.1.42 For CentOS 5 >>>New

พร้อมให้ทดสอบแล้วครับ  ทั้ง   32 bit   และ  64 bit


http://mariadb.cdn.cacheboy.net/download/mariadb-5.1.42/distro/kvm-rpm-centos5-x86/rpms/


http://mariadb.cdn.cacheboy.net/download/mariadb-5.1.42/distro/kvm-rpm-centos5-amd64/rpms/

30
MySQL / เปิดประเด็น PBXT Storage engine
« เมื่อ: กุมภาพันธ์ 06, 2010, 19:12:36 PM »
1. What is PBXT?

PrimeBase XT (PBXT) is a transactional storage engine for MySQL.

MySQL 5.1 provides a pluggable storage engine API which allows 3rd parties to extend the storage capabilities of the server. Storage engines are built as shared libraries and can be loaded at runtime by the server. Most storage engines provide an alternative way of storing the table data. By doing this they add functionality to the server in terms of transactional support, special indexing methods, data warehousing and archiving facilities or even clustering and high-availability capabilities.

To use a particular engine, you specify the name of the engine when creating a table in MySQL. For example:

CREATE TABLE my_test_tab (
  n_id           INTEGER PRIMARY KEY AUTO_INCREMENT,
  n_text         LONGBLOB,
  n_string       VARCHAR(255)
) ENGINE=PBXT;


This example creates a table using the PBXT storage engine.

The PBXT engine is a general purpose transactional storage engine. PBXT is fully "ACID" compliant. This means PBXT can be used as a replacement for other MySQL transactional engines, such as InnoDB.

PBXT features include the following:

MVCC Support:
MVCC stands for Multi-version Concurrency Control. MVCC allows reading the database without locking.

Fully ACID compliant:
This means that all transactions are: atomic, consistent, isolated and durable.
Row-level locking:
When updating, PBXT uses row-level locking. Row-level locking is also used during SELECT FOR UPDATE.
Fast Rollback and Recovery:
PBXT uses a specialized method to identify garbage which makes "undo" unnecessary. This make both rollback of transactions and recovery after restart very fast.
Deadlock Detection:
PBXT identifies all kinds of deadlocks immediately.
Write-once:
PBXT uses a log-based storage which makes it possible to write transactional data directly to the database, without first being written to the transaction log.
Referential Integrity:
PBXT supports foreign key definitions, including cascaded updates and deletes.
BLOB streaming:
In combination with the BLOB Streaming engine PBXT can stream binary and media directly in and out of the database.


2. How to build PBXT

PBXT can be built as a standalone, pluggable storage engine. This creates a shared library which can be installed by a running MySQL server. Note that MySQL 5.1 or 6.0 is required for this functionality.

This section describes how to build the pluggable storage engine on MacOS X and Linux. How to build PBXT under Windows is explained in section 4.

To build PBXT you will need the following:

A UNIX user: <unix-user>, For example: my-user
A "build" directory: <build-dir>. For example: /home/my-user/build
A MySQL test directory: <mysql-dir>. For example: /home/my-user/mysql
The MySQL 5.1 source tree: <mysql-src>.tar.gz. For example: mysql-5.1.38-rc.tar.gz
The PBXT source tree: <pbxt-src>.tar.gz. For example: pbxt-1.0.06-beta.tar.gz
If you already have download and compiled MySQL then skip to 2.4.

2.1 Download MySQL Source Distribution

Download the latest source distribution of MySQL from the MySQL web-site: MySQL 5.1 or MySQL 6.0. You will find the "Compressed GNU TAR archive (tar.gz)" version at the bottom of the download page.

Unpack the .tar.gz in your build directory:

$ cd <build-dir>
$ gunzip -c <mysql-src>.tar.gz | tar -x

This will create the following directory: <build-dir>/<mysql-src>

2.2 Configure and build MySQL 5.1

Configure MySQL according to your requirements. For example:

$ ./configure --prefix=<mysql-dir> --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-plugins=max-no-ndb --with-embedded-server --enable-local-infile --with-mysqld-user=<unix-user>

After configuration, make and install MySQL:

$ make install

This will install MySQL in the directory <mysql-dir>.

2.3 MySQL Configuration Options

You may want to change or specify the following configuration options according to your requirements:

--prefix=<mysql-dir>

This options specifies the MySQL installation directory. The default is /usr/local.

This means that by default, make install will install all the files in /usr/local/bin, /usr/local/lib etc.

This is inconvenient for 2 reasons:

You need root privileges to install in the default location.
You may already have a production version of MySQL installed here.
The directory /usr/local/mysql is often used. This directory also requires root privileges for installation.

--with-mysqld-user=<unix-user>

Specify an alternative user for the mysqld executable (default is mysql). When started, mysqld will attempt change to running as this user. If the user that started mysqld is not already this user, or has not been started as root, this will fail.

To avoid having to start mysqld as root, set --with-mysqld-user to the name of the user you are using to build mysql.

--with-debug=yes/no/full

For development or debugging purposes use the option --with-debug=yes or --with-debug=full. If you wish to perform performance tests, then make sure you use --with-debug=no, or omit this option.

Note that whichever option you use, you must build PBXT with the same options or it will not load, or otherwise crash (see below).

2.4 Install the MySQL database

Before you can start the MySQL server you have to install the mysql database which contains the system information about the MySQL installation:

$ cd <mysql-dir>
$ bin/mysqld_install_db --no-defaults

Use the --no-defaults option to ignore any my.cnf file that may be installed on your system. This may have been installed as part of a standard or default MySQL installation on your system.

The mysqld_install_db script creates the MySQL data directory: <mysql-dir>/var, or <mysql-dir>/data.

2.5 Start the MySQL server

You can start the MySQL in the foreground as follows:

$ cd <mysql-dir>
$ libexec/mysqld --no-defaults

Starting MySQL in the foreground will print any errors that may occur immediately to the console. The saves having to hunt for the log file if an error occurs, and MySQL fails to start.

To start MySQL in the background enter the following:

$ bin/mysqld_safe &

You can shutdown the MySQL server as follows:

$ bin/mysqladmin -uroot shutdown

2.6 Determine the MySQL plugin directory

The MySQL plugin directory, is the directory searched by MySQL when loading pluggable storage engine shared libraries.

You can determine this directory by first starting the MySQL shell:

$ bin/mysql -uroot

Now enter the following:

mysql> show variables like "%plugin%";
+---------------+--------------------------------------+
| Variable_name | Value                                |
+---------------+--------------------------------------+
| plugin_dir    | /home/my-user/mysql/lib/mysql/plugin |
+---------------+--------------------------------------+
1 row in set (0.01 sec)
If you are using MySQL 5.1.24 you can expect the plugin directory to be <mysql-dir>/lib/mysql/plugin. Before this version 5.1.24 it was <mysql-dir>/lib/mysql.

2.7 Download PBXT

You can download the PBXT source distribution from www.primebase.org or from launchpad.net.

Unpack the .tar.gz in your build directory:

$ cd <build-dir>
$ gunzip -c <pbxt-src>.tar.gz | tar -x

This will create the directory: <build-dir>/<pbxt-src>

Alternatively you can checkout the latest source tree from Launchpad.net using a bazaar client, as follows

$ cd <build-dir>
$ bzr branch lp:pbxt <pbxt-src>

2.8 Configure and build PBXT

Configure PBXT as follows:

$ ./configure --with-mysql=<build-dir>/<mysql-src> --with-plugindir=<mysql-dir>/lib/mysql/plugin

Note, the --with-mysql option is required but --with-plugindir may be omitted. If used --with-plugindir should be set to the value of the plugin_dir system variable in step 2.6 above.

Now make and install PBXT:

$ make
$ make install

These commands will build the PBXT plug-in, which is a shared library called libpbxt.so, and copy the plug-in to the MySQL plugin directory. It will also build the xtstat executable, and copy it to the bin directory (see Monitoring PBXT using xtstat).

Before you can use the PBXT storage engine you need to install the plug-in as described in the next section: Installing PBXT as a "pluggable" Storage Engine.

2.9 PBXT Configuration options

PBXT configure supports the following options:

--with-mysql=<build-dir>/<mysql-src>

This option is required and specifies the path to the MySQL source tree.

--with-plugindir=<mysql-plugin-dir>

Use this option to specify where the pluggable storage engine should be installed. This is usually in the lib/mysql/plugin directory in the MySQL home/installation directory. In our example above, this is the directory: /home/my-user/mysql/lib/mysql/plugin.

If you omit the --with-plugindir option then it will automatically be set to <mysql-dir>/lib/mysql/plugin.

--with-debug=no/yes/only/full/prof

Set this option to yes if you wish to debug PBXT. It is possible to debug PBXT even if the MySQL server was not built with the debug option on.

If --with-debug is omitted then the debug and optimization flags used will be identical to those used by MySQL.

Option supported are:

no - No debugging. This builds an optimized version of PBXT, even if MySQL was built with debug on.
yes - Debugging on. This builds PBXT for debug symbols enabled (-g), and turns off optimization.
only - This option turns debug symbols on but retains the optimization options set for MySQL.
full - Full debugging. This builds PBXT for debug symbols enabled, and also turns on assertions, memory checking and other debug code.
prof - Profile version. This builds an optimized version of the plug-in which will generate profiling information.




3. Installing PBXT as a "pluggable" Storage Engine

PBXT is "pluggable", which means that it can be loaded dynamically by MySQL at runtime. When PBXT is built outside of the MySQL source tree it creates a shared library called libpbxt.so, which can be installed and loaded by the MySQL server.

To install the plug, it has to be copied to the MySQL plugin directory. This can be determined by retrieving the value of the plugin_dir system variable:

mysql> show variables like "%plugin%";
+---------------+----------------------------+
| Variable_name | Value                      |
+---------------+----------------------------+
| plugin_dir    | /usr/local/mysql/lib/mysql |
+---------------+----------------------------+
1 row in set (0.01 sec)
Once you have copied the libpbxt.so to the plugin directory, you install the plugin by entering the following command:

mysql> INSTALL PLUGIN pbxt SONAME 'libpbxt.so';

The server will load and register the PBXT plug-in in the mysql.plugin table. The plug-in is then available whenever the server is started.

Once you have installed the plug-in, you can create tables that use the PBXT engine by setting ENGINE=PBXT in the table declaration. For example:

mysql> CREATE TABLE t1 (c1 int, c2 text) engine=pbxt;

You can also convert existing tables to PBXT, for example

mysql> ALTER TABLE t1 engine=pbxt;

Note that if you use the correct value for the --libdir option when configuring PBXT, then the plug-in will be copied to the MySQL plugin directory when you execute make install.




4. Building PBXT as part of the MySQL source tree

PBXT can also built directly as part of the MySQL source tree. To do this, just copy the PBXT source code tree into the MySQL source storage directory. Here you should rename the PBXT directory to pbxt, for example:

cd storage
wget http://www.primebase.org/download/pbxt-1.0.06-beta.tar.gz
gunzip -c pbxt-1.0.06-beta.tar.gz | tar -x
rm pbxt-1.0.06-beta.tar.gz
mv pbxt-1.0.06-beta pbxt


Now return to the top-most directory of the MySQL source tree and enter the following:

rm -rf autom4te.cache/
aclocal
autoconf
autoheader
automake -a

Now the MySQL configure command will recognize the PBXT storage engine, for example:

./configure --help

...

=== PBXT Storage Engine ===
Plugin Name: pbxt
Description: MVCC-based transactional engine
Supports build: static and dynamic
Configurations: max, max-no-ndb


You can now build MySQL normally, and the PBXT storage engine will be compiled in as part of the build process.




5. Building PBXT under Windows

5.1 Download the MySQL sources

Download the MySQL source tree and unpack the archive in a working directory (for example C:\workdir).

5.2 Install the PBXT sources

Move the PBXT package into the MySQL storage directory, and rename it to 'pbxt'.

For example, if you are using MySQL 5.1.38, the path to this directory would then be:

C:\workdir\mysql-5.1.38-rc\storage\pbxt

5.3. Configure the build with PBXT

To configure the build with PBXT, use the WITH_PBXT_STORAGE_ENGINE option. For example:

win\configure WITH_PBXT_STORAGE_ENGINE WITH_INNOBASE_STORAGE_ENGINE WITH_BLACKHOLE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE WITH_ARCHIVE_STORAGE_ENGINE WITH_FEDERATED_STORAGE_ENGINE __NT__

5.4 Generate MS Visual Studio projects

Generation of the MS Visual Studio projects requires CMake:

For Visual Studio 8 (Microsoft Visual Studio 2005), execute:

win\build-vs8

For Visual Studio 7.1, execute:

win\build-vs71

Confirm that the following project file has been generated:

storage\pbxt\pbxt.vproj

5.5 Build MySQL

Double-click on the file mysql.sln (in the mysql-5.1.38-rc directory) to open it with Visual Studio, and build the solution.

NOTE: You will find more details about how to build MySQL for window in the file win\README.




6. PBXT System Variables

The following system variables are available for controlling the behavior of the PBXT engine.

System variable can be set in the my.cnf file or on the mysqld command line. Variable that can be set dynamically can be set using the SET GLOBAL command which is sent to the server. System variables that can be set dynamically are specified as such below.

Variable that specify a number of bytes may include a unit indication after the value. For example: 100Kb, 64MB, etc. There should be no space between the number and the unit. If no unit is specified then byte is assumed. The recognized units are:

K - Kilobyte, 1024 byte
MB - Megabyte, 1024 K
GB - Gigabyte, 1024 MB
TB - Terabyte, 1024 GB
PB - Petabyte, 1024 TB

Variable that use this type of value are: pbxt_index_cache_size, pbxt_record_cache_size, pbxt_log_cache_size, pbxt_log_file_threshold, pbxt_checkpoint_frequency, pbxt_data_log_threshold, pbxt_log_buffer_size, pbxt_data_file_grow_size and pbxt_row_file_grow_size.

3.1 Cache Memory Variables

PBXT has 3 caches: index, record and log. The current memory usage in these 3 areas can be determined using SHOW ENGINE PBXT STATUS.

pbxt_index_cache_size
This is the amount of memory allocated to the index cache. Default value is 32MB. The memory allocated here is used only for caching index pages.


pbxt_record_cache_size
This is the amount of memory allocated to the record cache used to cache table data. The default value is 32MB. This memory is used to cache changes to the handle data (.xtd) and row pointer (.xtr) files.


pbxt_log_cache_size
The amount of memory allocated to the transaction log cache used to cache on transaction log data. The default is 16MB.


3.2 Transaction Manager Variables

The transaction manager variable control various aspects of the PBXT transactional system.

pbxt_log_file_threshold
The size of a transaction log before rollover, and a new log is created. The default value is 32MB.


pbxt_transaction_buffer_size
The size of the global transaction log buffer (the engine allocates 2 buffers of this size). The default is 1MB.


pbxt_checkpoint_frequency
The amount of data written to the transaction log before a checkpoint is performed. The default value is 24MB.


pbxt_sweeper_priority
Determines the priority of the background sweeper process.:

0 - Low (default).
1 - Normal (same as user threads).
2 - High.

The sweeper is responsible for removing deleted records and index entries (deleted records also result from UPDATE statements). If many old deleted records accumulate search operations become slower. Therefore it may improve performance to increase the priority of the sweeper on a machine with 4 or more cores.


pbxt_auto_increment_mode
The parameter determines how PBXT manages auto-increment values. There are 2 options:

0 - MySQL standard (default).
1 - Previous ID's are never re-used.

In the standard MySQL mode it is possible that an auto-increment value is re-issued. This occurs when the maximum auto-increment value is deleted, and then MySQL is restarted. This occurs because the next auto-increment value to be issued is determined at startup by retrieving the current maximum auto-increment value from the table

In mode 1, auto-increment values are never re-issued because PBXT automatically incrementing the table level AUTO_INCREMENT table option. The AUTO_INCREMENT table is incremented in steps of 100. Since this requires the table file to be flushed to disk, this can influence performance.


pbxt_flush_log_at_trx_commit
This variable specifies the durability of recently committed transactions. By reducing the durability, the speed of write operations can be increased:

0 - Lowest durability, the transaction log is not written or flushed on transaction commit. In this case it is possible to loose transactions if the server executable crashes.
1 - Full-durability, the transaction log is written and flushed on every transaction commit (default).
2 - Medium durabilty, the transaction log is written, but not flushed on transaction commit. In this case it is possible to loose transactions of the server machine crashes (for example, a power failer).

In all cases, the transaction log is flushed at least once every second. This means that it is only every possible to loose database changes that occurred within the last second.

3.3 Data Log Variables

PBXT stores part of the database in the data logs. This is mostly data from rows containing long VARCHAR fields or BLOB data. The data logs are managed by the "compactor" thread. When a record is deleted from a data log, the data is marked as garbage. When the total garbage in a data log reaches a certain threshold, the compactor thread compacts the data log by copying the valid data to a new data log, and deleting the old data log.

The following system variables control the way data logs are managed.

pbxt_data_log_threshold
The maximum size of a data log file. The default value is 64MB. PBXT can create a maximum of 32000 data logs, which are used by all tables. So the value of this variable can be increased to increase the total amount of data that can be stored in the database.


pbxt_garbage_threshold
The percentage of garbage in a data log file before it is compacted. This is a value between 1 and 99. The default is 50.


pbxt_log_buffer_size
The size of the buffer used when writing a data log. The default is 256MB. The engine allocates one buffer pre thread, but only if the thread is required to write a data log.


pbxt_log_file_count
The number of log files on disk before logs that are no longer required are deleted, default value is 3. The number of logs on disk may exceed this number if the logs are still being read.

If a log has been read (i.e. the log is offline), it will be recycled for writing again, unless it must be deleted because the number of logs on disk exceeds this threshold. Recycling logs is an optimization because the writing a pre-allocated file is faster then writing to the end of a file.

Note: an exception to this rule is Mac OS X. On Mac OS X old log files are not recycled because writing pre-allocated file is slower, then writing to the end of file (see below).


pbxt_offline_log_function
This variable determines what happens to a transaction log when it is offline. A log is offline if PBXT is no longer reading or writing to the log. There are 3 possibilities:

0 - Recycle log (default). This means the log is renamed and written again.
1 - Delete log (default on Mac OS X).
2 - Keep log. The logs can be used to repeat all operations that were applied to the database.


3.4 File Grow Variables

The handle data and row pointers files are grown in chunks.

pbxt_data_file_grow_size
The grow size of the handle data (.xtd) files. The default is 2MB.


pbxt_row_file_grow_size
The grow size of the row pointer (.xtr) files. The default is 256Kb.





7. Table Options

    table_option:
        ENGINE [=] PBXT
        | AUTO_INCREMENT [=] value
        | [DEFAULT] CHARACTER SET [=] charset_name
        | [DEFAULT] COLLATE [=] collation_name
        | COMMENT [=] 'string'
        | AVG_ROW_LENGTH [=] byte_length


PBXT supports the following table options:

ENGINE [=] PBXT
Set the ENGINE option to PBXT to create a PBXT table.


AUTO_INCREMENT
This option determines the minimum auto-increment value on the table.


[DEFAULT] CHARACTER SET
Specify a default character set for the table. By default the database character set is used.


[DEFAULT] COLLATE
Specify a default collation for the table.


COMMENT
A comment for the table. Maximum of 60 characters.


AVG_ROW_LENGTH
Specifies the average row size of the table. This size will be used for the length of the fixed data section of a row. Use CHECK TABLE to determine the best value for the average row size of an existing table. Note that CHECK TABLE dumps the information required to the MySQL log.



8. Differences to other Engines

The following is a list of differences between PBXT and other storage engines that are shipped by default with MySQL.

8.1 AUTO_INCREMENT option in SHOW CREATE TABLE

On tables created with the AUTO_INCREMENT table option, PBXT displays the original value set by the CREATE TABLE or ALTER TABLE statement.

For example:

        CREATE TABLE t1 (
          ID int primary key AUTO_INCREMENT,
          NAME varchar(200)
        ) AUTO_INCREMENT = 1000 ENGINE=PBXT;
        INSERT t1 (NAME) VALUES ("abc"), ("def"), ("ghi");
        SHOW CREATE TABLE t1;


The result returned is:

        CREATE TABLE `t1` (
          `ID` int(11) NOT NULL AUTO_INCREMENT,
          `NAME` varchar(200) DEFAULT NULL,
          PRIMARY KEY (`ID`);
        ) ENGINE=PBXT AUTO_INCREMENT=1000 DEFAULT CHARSET=latin1


With ENGINE=MyISAM, the result is:

        CREATE TABLE `t1` (
          `ID` int(11) NOT NULL AUTO_INCREMENT,
          `NAME` varchar(200) DEFAULT NULL,
          PRIMARY KEY (`ID`);
        ) ENGINE=MyISAM AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1


9. Monitoring PBXT using xtstat

The executable xtstat can be used to monitor all internal activity of PBXT. The binary is built and installed automatically, along with the plug-in when you execute make install, as described above. xtstat is installed in the bin directory.

xtstat polls the INFORMATION_SCHEMA.PBXT_STATISTICS table. The poll interval can be set using the --delay option, and is 1 second by default.

For the most statistics xtstat will display the difference in values between the current and previous polls. For example, if bytes written current value is 1000, and on the previous call it was 800, then xtstat display 200. This means that 200 bytes were written to disk in the intervening period.

Invoke xtstat as follows:

        $ xtstat [ options ]

For example:

        $ xtstat -D10
In order to poll every 10 seconds.

Note that statistic counters are never reset, even if a rollback occurs. For example, if an UPDATE statement is rolled back, the xtstat will still indicate that one write statement (see stat-write below) was executed.

If MySQL shuts down are crashes, xtstat will attempt to reconnect. xtstat can be terminated any time using the CTRL-C key cimbination.

Before PBXT has recovered, not all statistics are available. In particular, the statistics relating to PBXT background threads are not available (including the sweep and chkpnt statistics).

9.1 Command line options

xtstat options are as follows:

-?, --help
Prints help text.


-h, --host=value
Connect to host.


-u, --user=value
User for login if not current user.


-p, --password[=value]
Password to use when connecting to server. If password is not given it's asked from the tty.


-d, --database=value
Database to be used (pbxt or information_schema required), default is information_schema.


-P, --port=value
Port number to use for connection.


-S, --socket=value
Socket file to use for connection.


-D, --delay=value
Delay in seconds between polls of the database.


--protocol=value
Connection protocol to use: default/tcp/socket/pipe/memory.


--display=value
Columns to display: use short names separated by |, partial match allowed.
Use --display=all to display all columns available.

Connection options will also be taken from the MySQL config file if available.

9.2 Size indicators

Values display by xtstat are either a time in milliseconds, or a value in bytes, or a counter. If these values are to large to be displayed then the value is rounded and a size indicator is added.

The following size indicators are used:

K - Kilobytes (1,024 bytes)
M - Megabytes (1,048,576 bytes)
G - Gigabytes (1,073,741,024 bytes)
T - Terabytes (1,099,511,627,776 bytes)
t - thousands (1,000s)
m - millions (1,000,000s)
b - billions (1,000,000,000s)

9.3 Statistics

The following is a list of the statistics displayed by xtstat. Each statistic as a 2 part display name. The first part is the category and the second part is the type.

You can select categories and types for display, as you require. For example --display=read will display all read activity, --display=xact|stat will display transaction and statement activity.

Note, for diagnostics it is best to capture all statistics. The reason is because you never now where a problem might turn up, so without certain statistics you may not be able to identify the problem.

 Display name Name Description
 time-curr Current Time The current time in seconds
 time-msec Time Since Last Call Time passed in milliseconds since last statistics call
 xact-commt Commit Count Number of transactions committed
 xact-rollb Rollback Count Number of transactions rolled back
 xact-waits Wait for Xact Count Number of times waited for another transaction
 xact-dirty Dirty Xact Count Number of transactions still to be cleaned up
 stat-read Read Statements Number of SELECT statements
 stat-write Write Statements Number of UPDATE/INSERT/DELETE statements
 rec-in Record Bytes Read Bytes read from the record/row files
 rec-out Record Bytes Written Bytes written from the record/row files
 rec-syncs/ms Record File Flushes Number of flushes to record/row files/time taken in milliseconds
 rec-hits Record Cache Hits Hits when accessing the record cache
 rec-miss Record Cache Misses Misses when accessing the record cache
 rec-frees Record Cache Frees Number of record cache pages freed
 rec-%use Record Cache Usage Percentage of record cache in use
 ind-in Index Bytes Read Bytes read from the index files
 ind-out Index Bytes Written Bytes written from the index files
 ind-syncs/ms Index File Flushes Number of flushes to index files/time taken in milliseconds
 ind-hits Index Cache Hits Hits when accessing the index cache
 ind-miss Index Cache Misses Misses when accessing the index cache
 ind-%use Index Cache Usage Percentage of index cache used
 ilog-in Index Log Bytes In Bytes read from the index log files
 ilog-out Index Log Bytes Out Bytes written from the index log files
 ilog-syncs/ms Index Log File Syncs Number of flushes to index log files/time taken in milliseconds
 xlog-in Xact Log Bytes In Bytes read from the transaction log files
 xlog-out Xact Log Bytes Out Bytes written from the transaction log files
 xlog-syncs Xact Log File Syncs Number of flushes to transaction log files
 xlog-msec Xact Log Sync Time The time in milliseconds to flush transaction log files
 xlog-hits Xact Log Cache Hits Hits when accessing the transaction log cache
 xlog-miss Xact Log Cache Misses Misses when accessing the transaction log cache
 xlog-%use Xact Log Cache Usage Percentage of transaction log cache used
 data-in Data Log Bytes In Bytes read from the data log files
 data-out Data Log Bytes Out Bytes written from the data log files
 data-syncs Data Log File Syncs Number of flushes to data log files
 data-msec Data Log Sync Time The time in milliseconds spent flushing data log files
 to-chkpt Bytes to Checkpoint Bytes written to the log since the last checkpoint
 to-write Log Bytes to Write Bytes written to the log, still to be written to the database
 to-sweep Log Bytes to Sweep Bytes written to the log, still to be read by the sweeper
 sweep-waits Sweeper Wait on Xact Attempts to cleanup a transaction
 scan-index Index Scan Count Number of index scans
 scan-table Table Scan Count Number of table scans
 row-sel Select Row Count Number of rows selected
 row-ins Insert Row Count Number of rows inserted
 row-upd Update Row Count Number of rows updated
 row-del Delete Row Count Number of rows deleted






ขอบพระคุณที่มา   http://www.primebase.org/documentation/#sysvar 

ท่านใดมีข้อมูลเพิ่มเติมครับ   

31
MySQL / XtraDB on Maria5.1.42 VS XtraDB on MySQL5.1.42-Percona
« เมื่อ: กุมภาพันธ์ 04, 2010, 18:30:04 PM »
XtraDB on Maria5.1.42 VS  XtraDB on MySQL5.1.42-Percona



http://mariadb.cdn.cacheboy.net/download/mariadb-5.1.42/distro/

http://www.percona.com/mysql/xtradb/5.1.42-9/RPM/

ตัวไหนจะแรงและเร็วกว่ากัน

 ::) ::) ::) ::)

32
MySQL / MariaDB 5.1.42 >>>New
« เมื่อ: กุมภาพันธ์ 02, 2010, 17:24:09 PM »
MariaDB 5.1.42 >>>New


http://askmonty.org/wiki/index.php/MariaDB:Download


แต่ยังไม่มีตัวติดตั้งสำหรับ  CentOS
 


33
MySQL / MySQL 5.1.43>>>>>New
« เมื่อ: มกราคม 31, 2010, 11:44:19 AM »

34
MySQL / MySQL 5.1.42 >>>>>> New
« เมื่อ: มกราคม 05, 2010, 13:41:09 PM »

35
MySQL / MySQL 5.5 >>>>>>New
« เมื่อ: ธันวาคม 17, 2009, 10:36:32 AM »
MySQL 5.5 >>>>>>New   

http://download.softagency.net/MySQL/Downloads/MySQL-5.5/

รอการทดสอบครับ


36
MySQL / MySQL 5.1.41 >>>>>>>New
« เมื่อ: ธันวาคม 01, 2009, 16:14:55 PM »
MySQL 5.1.41 >>>>>>>New    ออกแล้วนะครับ 


    ;D ;D ;D ;D ;D

37
Linux / ภาพการติดตั้ง Ubuntu-9.10-sever+MySQL
« เมื่อ: พฤศจิกายน 04, 2009, 13:33:38 PM »
ภาพการติดตั้ง Ubuntu-9.10-sever+MySQL   สำหรับ  hosxp  database    เร็วๆนี้ครับ





38
MySQL / MySQL 5.1.40 >>>>>New
« เมื่อ: ตุลาคม 20, 2009, 22:25:26 PM »
MySQL 5.1.40 >>>>>New

http://download.softagency.net/MySQL/Downloads/MySQL-5.1/


กำลังทดสอบครับ



39
Linux / CentOS 5.4 >>>มาแล้วครับ
« เมื่อ: ตุลาคม 20, 2009, 08:58:44 AM »

40
ปัญหาส่งข้อมูล DRGs 12 แฟ้ม        แฟ้ม IPD    ฟิลด์  warddsc   มีรหัส  ward แค่  3  ward  เท่านั้น  เช่น  ของผม

11 , 12, 09 ประมาณนั้น ทั้งที่มี รหัส ward  เป็น  10  กว่า รหัส   ปัจจุบันใช้ hosxp 3.52.9.9 ท่านใดเป็นบ้างครับ

...ขอบพระคุณครับ



41
MySQL / MySQL 5.1.39>>>>New
« เมื่อ: กันยายน 24, 2009, 09:10:48 AM »
MySQL 5.1.39>>>>New


-http://mirror-fpt-telecom.fpt.net/mysql/Downloads/MySQL-5.1/

-http://www.percona.com/mysql/TESTING/5.1.39-8/RPM/


 ;D ;D ;D ;D ;D

42
Linux / ภาพการติดตั้ง RHEL 5.4+MySQL 5.1.38
« เมื่อ: กันยายน 15, 2009, 16:43:53 PM »
หลังจากที่จับ CentOS มาตลอด จนถึง  CentOS 5.3  ครั้งนี้ได้ไปพบ  RHEL 5.4   >>>Redhat Enterprise Linux 5.4
ซึ่งเป็นต้นแบบของ  CentOS   อีกที เลยเข้าไปโหลดลองดู   หน้าไม่ต่างกันกับ CentOS มากเท่าไหร่เพราะเป็นสายพันธุ์เดียวกัน  พ่อ ลูก กัน ซะอย่างนั้น   คงไม่นาน  CentOS 5.4  น่าออกเร็วๆนี้ ผมเดาเอานะครับ     ;D ;D ;D ;D 
เลยจับมา setup RHEL 5.4+ MySQL 5.1.38  ซะเลย  รออีกนิดครับ  เร็วๆนี้



 

43
MySQL / MySQL 5.1.38 >>>>>>>New
« เมื่อ: กันยายน 11, 2009, 09:50:04 AM »
MySQL 5.1.38 >>>>>>>New

www.mysql.com

 ;D ;D ;D ;D ;D ;D

44
hosxp 3.52.6.xx - hosxp 3.52.8.25    ส่วนค่ารักษาฯผป.ใน ใน ใบงบหน้าฯ โปรแกรม ไม่ตัด ยอดที่ ชำระเงิน  ในช่องเบิกไม่ได้    แต่จะรวมค่ารักษาทั้งหมด ในช่อง เบิกได้ครับ   ทั้งๆที่ ตั้งค่าให้ชำระเงิน แต่กลับไปรวมในส่วนลูกหนี้ครับ

เช่น  สิทธิ์เบิก กรมบัญชีกลาง   

- ค่าห้องเบิกได้ 600 บาท
- ชำระค่าห้องส่วนเกิน 50 บาท
พอไปดูที่ ใบงบหน้า  จะมารวม ที่ เบิกได้  650   ครับ
แต่ข้อมูลตัวเดียวกัน ไปดูที่ hosxp 3.52.5.6   แยกให้ปกติครับ  ........



45
Linux / CentOS 4.8 >>>>ครับ
« เมื่อ: สิงหาคม 26, 2009, 13:58:07 PM »

46
ปัญหา Hosxp 3.52.7.20  เรื่องค่ารักษาพยาบาลผป.ใน เช่น หมวดค่าห้องค่าอาหาร โปรแกรมไม่ตัดส่วนที่ชำระเอง   จะรวมทั้งหมดไว้ที่ลูกหนี้ครับ    ก่อน up ใช้ hosxp 3.50.5.6  ยังปกติดีครับ    .......ขอบพระคุณครับ



47
MySQL / MySQL5.1.37 >>>>>New
« เมื่อ: สิงหาคม 04, 2009, 21:53:33 PM »
MySQL5.1.37  >>>>>New   


ftp://mirror.in.th/mysql/Downloads/MySQL-5.1/

 กำลังทดสอบครับ


48
ปัจจุบัน   ใช้  hosxp 3.52.7.20  เพิ่ง   up  ค่ำ วันอาทิตย์     วันนี้ วันจันทน์   พอ บ่าย 3 โมงเย็นเกิดปัญหาดังนี้

1. ส่วนอื่นปกติดี   พอจะเข้าหน้าจอ บันทึกการวินิจฉัย  ผป.นอก    เกิดปัญหา ดังนี้รูป1   
 2.ต้อง  ยกเลิก  จึงจะเข้าหน้าจอ รูป 2   แต่โปรแกรม ไม่แสดงรายชื่อ ผป.ครับ  ...ต้องแก้อย่างไร....ขอบพระคุณครับ

49
Report Exchange / อยากทราบชื่อ report ตัวนี้ครับ
« เมื่อ: กรกฎาคม 21, 2009, 17:44:13 PM »
อยากทราบชื่อ report ตัวนี้ครับ  มีอะไรบ้าง

รายงาน>>>>>>>สรุปรายงานค่ารักษาพยาบาล  ตามรูป  .....ขอบพระคุณครับ



50
Linux / ภาพการติดตั้ง Fedora 11 + MySQL 5.1.30
« เมื่อ: มิถุนายน 10, 2009, 18:21:02 PM »
Fodora 11 มีอะไรใหม่บ้าง

-ใช้เวลาบูท 20 วินาที จนถึงหน้าต่าง Login
-ใช้ EXT4 เป็น default filesystem   >>>>>ตัวนี้น่าสนใจครับ  เขาว่าดีกว่า EXT3  รองรับ พื้นที่  HD  มากขึ้น
-ใช้ rpm เวอร์ชัน 4.7
-กราฟิกที่ดีกว่าเดิม เพราะใช้  X server 1.6

ที่มา  อ.โสทร

http://linux.sothorn.org/node/592


พบกันเร็วๆ นี้ครับ    ;D ;D ;D ;D ;D ;D ;D ;D ;D







หน้า: [1] 2 3 4