• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS / Innodb vs myisam (table engines row lock vs table lock)

Innodb vs myisam (table engines row lock vs table lock)

Innodb Default from MySQL 5.7 onwards.
Innodb designed for high-performance databases
Myisam : lack of transactions

Table of Contents

Toggle
  • MyISAM, is the lack of full table-level locking. This allows your queries to process faster.
  • Table locking vs row locking

MyISAM, is the lack of full table-level locking. This allows your queries to process faster.

Innodb row level locking but myisam full table level locking.
supporting foreign keys (RDBMS) and relationship constraints
Myisam not DBMS
Transactions log for auto recovery but myisam won’t.
SELECT TABLE_NAME, ENGINEFROM information_schema.
TABLES WHERE TABLE_SCHEMA = ‘database’ and ENGINE
Update with innodb
Change database tables storage engine in PHPmyadmin
ALTER TABLE wp_posts ENGINE=InnoDB;

Table locking vs row locking

When SQL gets update query (write /delete).
Total table locks up, other queries has to wait until
Write is done.
Reading not impacts (static sites).
Row level locks allows, other rowson a table
 can perform actions
Like read, write simultaneously.
Reading locking tables faster than checking
 rows & locking in large tables
default_storage_engine=InnoDB to the [mysqld] section of the system config file located at:  /etc/my.cnf
applies only to new tables.
Converting existing
mysql -Bse ‘ALTER TABLE database_name.table_name ENGINE=MyISAM;’
mysql -Bse ‘ALTER TABLE database_name.table_name ENGINE=InnoDB;’
Convert MyISAM Tables To InnoDB
take a backup
‘SELECT CONCAT(“ALTER TABLE “,table_schema,”.”,table_name,” ENGINE=InnoDB;”) FROM information_schema.tables WHERE table_schema NOT IN (“mysql”,”information_schema”,”performance_schema”) AND Engine = “MyISAM”;’ | while read -r i; do echo $i; mysql -e “$i”; done | tee convert-to-innodb.log

Primary Sidebar

MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS

  • mysqldump import /export mysql database command line, phpmyadmin, Cpanel, mysql workbench, xamp
  • mysql commands
  • phpmyadmin install / configure on nginx ubuntu 20.04 apache2 debian 10
  • improve mysql performance wordpress my.cnf file configuration
  • innodb buffer pool size measure & adjust by pages, read requests etc
  • mysql workbench tutorials (Sql Development , modelling, server admin export & import)
  • mysql errors
  • Innodb vs myisam (table engines row lock vs table lock)
  • mysql max connections limit check increase how to decide thread cache size
  • MySQL innodb memory allocation & usage calculation
  • MySQL query cache vs redis vs memcached buffer pool database cache
  • mysql 8 installation on ubuntu 20.4
  • mysql configuration file location linux , windows , mac
  • mysql root password change reset update set A-Z info
  • mysql user creation, password , grant permissions user management guide
  • mysql slow query log enable disable set query time ideal mysql long query time
  • mysql access denied for user 'root'@'localhost' (using password yes) no Error 1045
  • monitoring mysql with new relic
  • mysql restart ubuntu status start stop in linux windows reload
  • mysql open_files_limit increase to raise open file cache table definition cache
  • mysql memory limit setting increase or decrease allocation
  • mysqltuner installation suggestions
  • mysql auto backup ubuntu 22.04 using automysqlbackup
  • mysql high cpu usage cases and limiting cpu usage
  • mysql oom killer
  • mysql memory parameters
  • check mysql database size and table size
  • mysql find replace wordpress posts content
  • mysql import export database command line linux ubuntu debian wamp xamp
  • mysql interview questions and answers fresher to experience

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy