Showing posts with label MySQL. Show all posts
Showing posts with label MySQL. Show all posts

Tuesday, 12 November 2013

Difference between MYISAM and InnoDB

I am writing this article to all those PHP follower to understand the difference between MYISAM and INNODB.

MYISAM:
1. MYISAM supports Table-level Locking
2. MyISAM designed for need of speed
3. MyISAM does not support foreign keys hence we call MySQL with MYISAM is DBMS
4. MyISAM stores its tables, data and indexes in diskspace using separate three different files. (tablename.FRM, tablename.MYD, tablename.MYI)
5. MYISAM not supports transaction. You cannot commit and rollback with MYISAM. Once you issue a command it’s done.

INNODB:
1. InnoDB supports Row-level Locking
2. InnoDB designed for maximum performance when processing high volume of data
3. InnoDB support foreign keys hence we call MySQL with InnoDB is RDBMS
4. InnoDB stores its tables and indexes in a tablespace
5. InnoDB supports transaction. You can commit and rollback with InnoD

Tuesday, 5 November 2013

Memcache Installation:



    Refer the setup file (memcached-1.2.6-win32-bin.zip) or download it.
   Download from the following URL:
     http://code.google.com/p/memcached/downloads/detail?name=memcached-1.2.6.tar.gz&can=1&q=
    Refer the installation note to install memcache server.

OR

    Create 'memcached' folder under C drive, then put memcached.exe file.
    Go to command prompt and run the command 'c:\memcached\memcached.exe -d install' to install memcache.
    To Start the server : run the command 'c:\memcached\memcached.exe -d start'
    To connect memcache with php, check the php_memcache.dll enabled in php.ini and its availability in php/ext/php_memcache.dll.
        Add it in php.ini file : extension=php_memcache.dll
        Copy 'php_memcache.dll' file and put it under ext folder[Location : C:\PHP\ext]
        Then restart the apache service