On DBs
Category: MySQL

How to Change a Default MySQL/MariaDB Data Directory in Linux
After installing the components of a LAMP stack on a CentOS/RHEL 7 server, there are a couple of things you may want to do. Some of them have to do with increasing the security of …

How to Change Root Password of MySQL or MariaDB in Linux
If you’re installing MySQL or MariaDB in Linux for the first time, chances are you will be executing mysql_secure_installation script to secure your MySQL installation with basic settings. One of these settings is, database root …

How to Reset MySQL or MariaDB Root Password in Linux
If you are setting up a MySQL or MariaDB database server for the first time, chances are you will be running mysql_secure_installation soon afterwards to implement basic security settings. One of these settings is the …

Give your WordPress website some TLC this Valentine’s
Every WordPress website needs tender loving care, to keep up with the latest versions of software, new browsers & devices and the latest security patches. To give your users the best experience possible, make sure …

Big WordPress Problem – Slow WP Admin / Uncached Pageloads Slow
Table of Contents Some problems are first world problems. Other problems are big WordPress problems. Slow WordPress Admin? Slow uncached pageloads? We deal with some big WordPress customers, and often their sites can become slow. …

Learn How to Use Several Functions of MySQL and MariaDB – Part 2
This is the second part of a 2-article series about the essentials of MariaDB / MySQL commands. Please refer to our previous article on this topic before proceeding. Learn MySQL/MariaDB Basics for Beginners – Part …

Learn MySQL / MariaDB for Beginners – Part 1
In this article we will show how to create a database (also known as a schema), tables (with data types), and explain how to perform Data Manipulation Language (DML) operations with data on a MySQL …

cPanel Server : Restoring MySQL SimLink.
If you’re unable to restart mysqld and troubleshooting the cause: if u log into SSH and go to /tmp you may see that there is no simlink To create a simlink you can do the …

Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (13)
Background It wasn’t working! But in more detail: An R1Soft restore had taken place, restoring from the backup server to the live server The files were MySQL data files originally from /var/lib/mysql/ The files were …

Turbo charging MySQL by setting up the query cache
To make sure MySQL uses the query cache, there are a few variables you need to set in the configuration file . Usually its my.cnf or my.ini so check on your server with the shell …

Moving mySQL DBs between servers
Moving mySQL DBs from one server to another: mysqldump -uUSER -pPASSWORD txp_database > txp_database.sql puts the entire thing in one nicely portable text file. on a new server it takes mysql -uUSER -pPASSWORD txp_database < …

Taking backup of mysql database using cron
Taking backup of mysql database using cron Create a file called database_backup.sh and also an empty directory called mysql_backup. The database_backup.sh script should have the following info :