Tag: MySQL

MySQL Plugin FEDERATED is disabled resolution

MySQL 5.6.xx  logs may contain a “Note” message that the “Plugin ‘FEDERATED’ is disabled.” The plugin has been available since MySQL 5.0.3 and is a storage engine that accesses data in tables of remote databases rather than local tables. There is a resolution to this. Log Entries 2019-11-12 21:52:18 2338 [Note] Plugin ‘FEDERATED’ is disabled. Resolution Then edit the my.cnf…

Read More »

MySQL RSA private key file not found resolution

MySQL 5.6  logs may contain a “Note” message that the RSA private key file not found … and [s]ome authentication plugins will not work. There is a resolution to this. Log Entries 2019-11-12 21:22:15 897 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work. 2019-11-12 21:22:15 897 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem….

Read More »

Apply an SSL to MySQL

There is a MySQL 5.6.x install that works wonderfully.  However, a cert was purchased and applied to everything else, so why not apply to the MySQL install too. I ran into a pitfall or two while attempting this, so I am going to write this up in the effort to avoid those pitfalls. The Key file Determine the version of…

Read More »

Change Forgotten MariaDB Root Password

This article details how to reset a forgotten MariaDB root password. I am not shedding any new light to this, this is here for a quick reference for me.  The source of this excellent article is at the bottom of the page. Stop the service and start MariaDB in safe mode. There may be a slight hang, just type mysql…

Read More »
MySQL

How to install a specific version of MySQL (or other app) via yum

To install an alternate version of, in this case, MySQL, rather than to accept the version that is available via the base and update yum repositories for CentOS, there are several ways of going about this.  You could install via tar.gz or download RPMs and yum install them directly; however, adding the official MySQL repository will work too.  It is…

Read More »
MySQL

Change Forgotten root password in MySQL 5.7.10

After trying several iterations from multiple websites, a combined effort between them made it possible to change the root password to a MySQL install for MysQL 5.7.10 which has changed over the more recent versions.  Anyway, if you were unsuccessful using other approaches, maybe you found this because you didn’t give up.  Hopefully, it will work for you as it…

Read More »
MySQL

MySQL Disable Bin Logging

One of the MySQL servers was running out of space, it turned out to be over 7GB of bin logs filling up the hard drive rather quickly. Since this server is not replicating, then a few modifications to the my.ini or my.cnf file will disable this “feature”. Edit the my.cnf file. Yours may be somewhere so search for it with…

Read More »
MySQL

MySQL Reset root Password

Every now and again a MySQL root password may have been forgotten or undocumented along the way, but that does not negate the need to access the MySQL server. There is a way to gain access to the MySQL server to change the password for root and eventually log in as root. Applies to: CentOS / RHEL / Scientific Linux…

Read More »
MySQL

A Working MySQL Database Automatic CRON Backup Script

After creating a usable MySQL database backup script and having tested it throughly, I put it in the /etc/cron.daily directory where I had expected it to run automatically.  I had even tested it from that directory manually with success.  After some time had past, I realized that the script was running as it read in the logs; however had only…

Read More »

Vsftpd FTP Server With Virtual Users ( MySQL + PAM )

vsftpd (“Very Secure FTP Daemon”) is an FTP server for Linux and supports PAM (“pluggable authentication modules”). A virtual user cannot login to the Linux system and is considered more secure than using a “real” user whom can login to a Linux system. This guide offers a script that demonstrates yet another way to setup a vsftpd server using PAM…

Read More »
MySQL

MySQL Rename a Database

Recently, I worked on a project where the database needed to be renamed. I found this script that worked perfectly. Source: StackOverflow

Read More »

MySQL Commands

There are many sites that will provide far greater detail and comment than this one. However, this is a list of basic commands that I have found repeatedly useful. MySQL Commands Create a database List all databases Switch to a database Show tables in a database Delete a database Delete a table Show data in a table Find a specific…

Read More »

A MySql ibdata1 Optimization Technique

A MySql database needed to be removed and upon deletion of that single database, the extremely large three gigabite ibdata1 (data) file remained. Here are the steps I took to reduce or shrink the file once the database was removed. Since there was no other use for this MySql installation, there remained the MySql system databases. Show Databases Backup Databases…

Read More »

BigDump for large MySQL Databases

BigDump performs a staggered import of large and very large MySQL dumps similar to those of the phpMyAdmin 2.x dumps into a new or an existing MySQL database. Other reasons for using this script is if in the even access to the server shell is not possible or for what ever the reason the import fails using phpMyAdmin due to…

Read More »

Configure Sockso 1.1.1 Personal Media Server to use MySQL

Sockso is a free, open-source, personal music server. It’s designed to be as simple as possible so that anyone with a mouse and some mp3’s can get their friends listening to their music across the internet or intranet in seconds! Having tested the latest version 1.1.1, I have found that this application to be quite efficent and useful in it’s…

Read More »

Instantly populate a FileZilla fzdefaults.xml file and distribute

A group of users needed to change from one FTP client application to another. There was no conversion available for the original FTP application, only a spreadsheet that had been maintained. There was a need to bulk add a couple of hundred ftp accounts into a new FTP client. The selected FTP client is FileZilla. A little known tidbit about…

Read More »

WordPress – How to Move Blog to New Domain or Location

In most cases, the host of a WordPress installation is not the same as the test installation. In the case of testing plugins, themes, and WordPress versions, an exact installation of the original WordPress install would be the best scenario. In other cases, a WordPress installation hosted by an ISP may need to be copied to another ISP. A name…

Read More »