Earlier, we used to suggest Percona MySQL for WordPress. At this moment, we are inclined towards MariaDB. Although MariaDB is a fork of the "original" MySQL, these two database management systems are quite different in certain aspects. In real life, except 1-2 features, you will unable to feel the difference between MariaDB, Percona and MySQL. What Makes MySQL Different From MariaDB for … [Read more...]
Simple Bash Script For MySQL Database Backup
Regular MySQL backup is of utmost importance for any website running with a MySQL database, like WordPress. Because it is the MySQL which stores all the textual and other information. FTP usually have the theme files and post images. In this article, we will show how to write some simple bash scripts to automatically backup your MySQL at a particular time of the day from localhost or a backup … [Read more...]
Query Optimization Overview
When we talk about query optimization, we mean improving response times in a relational database management system, because optimization is the process of modifying a system to improve its efficiency or also the use of available resources. In relational databases, the SQL query language is the most commonly used by developers and developers to obtain information from the database. The … [Read more...]
The MySQL Query Cache For Page Speed Optimization
You'll notice that our earlier guide on MySQL optimization disabled MySQL Query Cache. Various WordPress Plugins exist for database caching, which are different from the thing we are talking about. Our discussion demands to tweak my.cnf file which is usually located at /etc/my.cnf in case of Ubuntu, Debian etc distro. The WordPress plugins decrease the count of queries to the database by caching … [Read more...]
MongoDB versus MySQL
MySQL is the most popular relational database which is free to use. It is normal for many of the MySQL users to think - why we will learn MongoDB or any noSQL? Typically, MongoDB is for a different type of applications to meet today's need. You can think the visitor tracking plugin for your WordPress website using MongoDB. It is not a good use-case of MongoDB, but probably points where MongoDB can … [Read more...]
How to Send Data from Arduino to MySQL Database
In our recent past discussions, we have send data from ESP32 Arduino to IBM Watson IoT by either using MQTT or by using HTTP POST. In the same way, we have discussed how with CouchDB we can send data from ESP32 Arduino. Also, we have discussed different types of cloud database for IoT. MySQL is widely used database for PHP driven web applications. We can send data from Arduino, ESP32 to MySQL … [Read more...]
MariaDB Vs Percona For WordPress Installation
Regular visitors of this website probably noticed we preferentially use Percona MySQL in our tutorials and scripts. Whereas, most of the sysadmin related websites and guides for installation of WordPress uses MariaDB. Here is a Practical Comparison of MariaDB Vs Percona For WordPress Installation. Do we have any special reason to prefer Percona MySQL? Yes. We are long term users of Percona. We are … [Read more...]
sqlmap Tutorial : WordPress SQL Injection Testing (White Hat)
We talked about SQL injection in older article. Here is a sqlmap tutorial for WordPress SQL injection testing for the beginners to test own website for potential vulnerabilities & fix them. This website and tutorial is intended for White Hat purposes only. Of course trying them upon others vulnerable WordPress installation will find the points and at the end it is possible to hack it. That is … [Read more...]
mysqlslap Tutorial : Basics on MySQL Stress Test Tool
Here is basic mysqlslap Tutorial to perform MySQL stress test. MySQL comes with mysqlslap, a benchmarking tool which can help you to test database servers. For MySQL optimization test, we usually use Major Hayden's MySQL Tuner Script. This mysqlslap tutorial is for the beginners. One should read in the way we normally handle MySQL database from command line. mysqlslap Tutorial : First … [Read more...]
MySQL InnoDB Optimization From my.cnf
On Rackspace Cloud Server PVHVM, We Can Further Optimize MySQL. Here are some performance tweaks for MySQL InnoDB optimization from my.cnf. WordPress or other PHP-MySQL based softwares usually have no default set choice for InnoDB or MyISAM as driving Engine. We previously discussed the topic - InnoDB actually performs better than MyISAM For WordPress, specially on multi-server configuration. You … [Read more...]
Delete MySQL Database From Command Line
Here is how to delete MySQL database from Command Line Interface or SSH using MySQL drop database command. It is quite simple and easy. Previously, we have shown how to export WordPress MySQL Database on Rackspace Deployment using only Command Line Interface. MySQL by default has quite powerful interactive interface. PHPMyAdmin is a risk itself if run for production environment. Before the reader … [Read more...]