InnoDB is used in production at numerous large database sites requiring high performance.
Category Archives: My SQL
list storage engines – mysql
MyISAM Storage Engine
Storage engine should be mentioned when we careate tables
CREATE TABLE table (no INT) ENGINE = MYISAM;
Normally, it is unnecessary to use ENGINE to specify the MyISAM storage engine. MyISAM is the default engine unless the default has been changed. To ensure that MyISAM is used in situations where the default might have been changed, include the ENGINE option explicitly.
You can check or repair MyISAM tables with the mysqlcheck client or myisamchk utility.
All data values are stored with the low byte first. This makes the data machine and operating system independent.
All numeric key values are stored with the high byte first to permit better index compression.
Large files (up to 63-bit file length) are supported on file systems and operating systems that support large files.
There is a limit of 232 rows in a MyISAM table. If you build MySQL with the
The maximum number of indexes per MyISAM table is 64.
The maximum number of columns per index is 16.
The maximum key length is 1000 bytes.
When rows are inserted in sorted order ,the index tree is split so that the high node only contains one key. This improves space utilization in the index tree.
MyISAM supports concurrent inserts:
You can put the data file and index file in different directories on different physical devices
BLOB and TEXT columns can be indexed.
NULL values are permitted in indexed columns.
There is a flag in the MyISAM index file that indicates whether the table was closed correctly.
The sum of the lengths of the VARCHAR and CHAR columns in a table may be up to 64KB.
Storage Engines
Column 'ID' in field list is ambiguous
it is just because you have 2 tables with both a field ID, so the database engine will get confused about the table name from which the the data to be fixed
Use table1.id, or table2.id, based on the table you want the data
Order two columns with different orders – mysql
Use two ORDER BY fields
list values with ORDER BY – mysql
Close MySQL connection – PHP
<?php
mysql_close();
?>
Command to check the status of MySql server – Ubuntu linux
service mysql status EX:service mysql status mysql start/running, process 1300
