MySQL

Rename MySQL Table

Rename MySQL table, sometimes we need to rename a table during a database update or for any other solid reason. In this short step by step guide we will show you how easy is to rename one or even more MySQL tables in a database using only MySQL client, the answer to “how do I rename a mysql table” question is right here in this short article. Please bear in mind that in our tutorial we have used MySQL 5.7 to rename tables but this solution could be easily applied even for lower or higher MySQL versions. As always, before […]

Category: MySQL | Published: 10/08/2018 | Updated: 07/11/2018

Copy MySQL Table

Copy MySQL table, the simple process of copying a MySQL database table will be now explained in this short tutorial. Quite often we need to check some new queries, features or simply we need perform some basic tests that can be very difficult or sometimes impossible to be taken on a live database table. Luckily MySQL can help us to copy a database table with or without indexes and triggers, a full table copy or we can simply take a simple table copy, just the data and nothing else. In this short tutorial we will guide you how to take […]

Category: MySQL | Published: | Updated: 08/11/2018

Access MySQL without password

Access MySQL without password locally may be sometimes needed and quite handy for various reasons like for example if you are a very passionate database developer or just occasionally doing DBA stuff and you desperately need to quickly access a specific database or table, can be quite annoying to type in your username and password each time you are using the console. In this very short tutorial we’ll talk about how to access MySQL without using a password locally via terminal window. We have tested this method using MySQL version 5.6 and 5.7 based on CentOS 7 operating system but […]

Category: MySQL | Published: | Updated: 05/11/2018

Dump MySQL Table and Import

In this tutorial called dump MySQL table and import we will learn how to export a single database table using mysqlpump utility instead of exporting an entire database and also we will guide you how to import a single database table using different methods. Exporting a single table can be very handy when you have to update or replace another database table that is not part of a cluster or maybe you simply need it for your development environment to perform some quick changes or various tests. In this example we will use MySQL 5.7 and MySQL Client (CLI) based […]

Category: MySQL | Published: 08/08/2018 | Updated: 23/04/2019

Create MySQL slave by cloning

In this tutorial called create MySQL slave by cloning we’ll try to guide you through a very detailed but in the same time simple process to create a MySQL slave, also known as MySQL replica, by using a fresh backup taken from an existing MySQL server referred here as MySQL master server. Assuming that our master database is 11TB large we’ll have to copy its data content from US, where the master server is located to another server located in a UK data centre, not quite an easy task with this amount of data or without using a costly commercial […]

Category: MySQL | Published: 06/07/2018 | Updated: 05/11/2018

MySQL GTID Replication Error

MySQL GTID replication error can happen unexpectedly for various reasons and as often as the classic master slave, circular or multi-master replication but in this short tutorial we will learn, step by step, how to skip MySQL GTID transaction error in order to keep in sync our MySQL slave server. Before we begin we need to say that all below steps were tested in a master-slave setup using MySQL 5.6 and MySQL 5.7, we think that this MySQL skipping transaction method detailed below can be easily applied even for newer MySQL versions like 8+. Please note that all below operations […]

Category: MySQL | Published: 28/06/2018 | Updated: 05/11/2018