Different types of MySQL Storage Engines Compared

Download PDF version here Notes: Implemented in the server, rather than in the storage engine. Compressed MyISAM tables are supported only when using the compressed row format. Tables using the compressed row format with MyISAM are read only. Implemented in the server via encryption functions. Implemented in the server via encryption functions; In MySQL 5.7 and later, data-at-rest tablespace encryption is supported. Support for foreign keys is available in MySQL Cluster NDB 7.3 and later. InnoDB support for FULLTEXT indexes is available in MySQL 5.6 and later. InnoDB support for geospatial indexing is available in MySQL 5.7 and later. InnoDB utilizes hash indexes internally for its Adaptive Hash Index feature. See the discussion later in this section. ...

January 30, 2019 · 1 min · Harshvardhan Malpani

Some of the most important SQL commands.

SQL, Structured Query Language, is a programming language designed to manage data stored in relational databases. SQL operates through simple, declarative statements. This keeps data accurate and secure, and it helps maintain the integrity of databases, regardless of size. Most of the actions you need to perform on a database are done with SQL statements. SQL commands are grouped into four major categories depending on their functionality: Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control Language (TCL) Data Control Language (DCL) COMMANDS: SELECT SELECT column_name FROM table_name; SELECT statements are used to fetch data from a database ( extracts data from a database ). Every query will begin with SELECT. ...

January 24, 2019 · 2 min · Harshvardhan Malpani

Creating a table in PhpMyAdmin Xampp server.

Hello People. In this post we will discuss that how you can create a table in phpmyadmin xampp server for your php project. Before creating a table first you must create a database, because without database you can not create a table. steps to create a table in phpmyadmin. Start your Xampp server and open the following link in your browser. localhost/phpmyadmin . Now click on the New button. ...

January 16, 2019 · 1 min · Harshvardhan Malpani

Connection timeout with MySQL database.

MySQL disconnects automatically after some time. If you experience MySQL timeouts, it could be due to heavy or very long MySQL queries. You can try using mysql_reconnect command before every query, and it should be fine. MySQL server timeout can occur for many reasons but most commonly it is caused by either an application bug, a network timeout issue, or due to the MySQL server restarting. These steps could solve the issue. (By setting no time to MySQl.) ...

January 8, 2019 · 1 min · Harshvardhan Malpani

Your PHP installation appears to be missing the MySQL extension, required by WordPress

The error message “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” can appear when you are using a PHP version which is incompatible with your scripts version. Meaning your WordPress installation is most likely outdated. Since the ‘MySQL’ extension is no longer supported from PHP 7.0 and beyond, changing your PHP version to 5.6 or lower will fix the issue. This can be done via your website’s control panel’s PHP Configuration section. ...

December 28, 2018 · 3 min · Harshvardhan Malpani

How to repair a MySQL database?

Hello! Good to see you. This is going to be a very important article because we are about to discuss “How to repair a MySQL database?” Why repair MySQL Database? Databases can become corrupted for any number of reasons, from software defects to hardware issues. If this occurs, you can try to repair the database. Wondering how to do it? Just follow this article. REPAIRING MYSQL DATABASES: Let’s see how to repair MySQL database through Linux and Windows command line. ...

October 30, 2018 · 2 min · Harshvardhan Malpani

How to install WordPress manually through Cpanel?

Hello Everyone. This article is a step by step guide to install WordPress manually on your site through Cpanel. Now you might ask, Why would you install it manually? when I can use the auto installer. Offcourse auto-installer is a great feature which reduces our effort. These installers work great in many cases, but often stuff your site full of unwanted plugins and themes. In addition, these automated tools have a reputation for timing out or being completely unavailable at times, which can be frustrating if you’re on a deadline. ...

October 28, 2018 · 2 min · Harshvardhan Malpani

How to remove all tables from MySQL Database?

Connect to your mysql host and select the database to be used example: use notfavoritedb; where notfavoritedb is your database name, and then enter the sql commands given below: SET FOREIGN_KEY_CHECKS = 0; SET GROUP_CONCAT_MAX_LEN=32768; SET @tables = NULL; SELECT GROUP_CONCAT('`', table_name, '`') INTO @tables FROM information_schema.tables WHERE table_schema = (SELECT DATABASE()); SELECT IFNULL(@tables,'dummy') INTO @tables; SET @tables = CONCAT('DROP TABLE IF EXISTS ', @tables); PREPARE stmt FROM @tables; EXECUTE stmt; DEALLOCATE PREPARE stmt; SET FOREIGN_KEY_CHECKS = 1; exit; Reference: StackOverflow

October 19, 2018 · 1 min · Harshvardhan Malpani

[Forgot Password] [Can’t Log In] How to reset WordPress admin password without sending reset email?

So, admit it. We put really strong passwords and then we forget them. And you end up being locked out of your own website. So here is how you can reset it quickly. Go to your hosting control panel and then go to phpMyAdmin if available. Look into the database which is being used for your wordpress installation and click on Users table Inside users table, find the row responsible for your admin account. (check the user_nicename column for username match) and Press edit. ...

September 20, 2018 · 2 min · Harshvardhan Malpani

Simple joining of data from two different tables on basis of a common key

SELECT a.user_id,a.meta_value,b.user_login FROM `e_usermeta` a,`e_users` b where a.meta_key="phoneno" and a.user_id=b.ID SELECT a.user_id,a.meta_value,b.user_pass,b.user_login FROM `e_usermeta` a,`e_users` b where a.meta_key="phoneno" and a.user_id=b.ID order by b.user_login UPDATE `wp_users` a,`tmptable` b SET a.`user_pass`=b.`usp` where a.`user_login`=b.`ulogin`;

August 7, 2018 · 1 min · Harshvardhan Malpani