Tuesday, June 9, 2015

easy differences between innodb and myisam storage engine

1.InnoDB: InnoDB works on relational database way.
example: if you create two tables and create a relation first table to second table like first table has a primary key and second table has a foreign key, now if anyone wants to delete first table row then mysql will throw an error, as mysql won't accept this type of deletion.
1. MyISAM: MyISAM does not care about relational way.
example: in MyISAM you can delete the primary row/ parent data. in this way mysql will accept it.

----------------------------------------------------------------------------------------------------------
2. InnoDB: InnoDB works in row block way.
2. MyISAM: MyISAM works in table block way.

----------------------------------------------------------------------------------------------------------
3. InnoDB is good for write operation[insert, update, delete].
3. MyISAM is faster in read operation[fetching data].

Switch PHP version in Ubuntu OS or Zorin OS

First check where is installed your PHP by the below command: $ which php See PHP version by below command: $ php -v As I've installed P...