Change mysql default port number in linux

In this post we will learn about how to change mysql default port number in linux.This is a simple tip but it has many benefits. Question: What are the benefits of changing the default port no. 3306 in mysql-server ? Answer: For security point of view we generally change the port no. of MySQL Server … Read more

Setup MySQL master slave replication in CentOS 6

In this tutorial we will learn about how to setup MySQL Master Slave replication in CentOS 6.4.In Master-Slave replication one database server (Master) can replicate the databases to one or more MySQL database Server(slave). The Slave server is not required to be connected always with Master Server, once slave server is up and when you … Read more

How to rename table in mysql using command line

In this post we will know how to rename table in mysql using command line. It is basic and important command for MySQL database administration. We are doing this practical in MySQL server version 5.5.29. Syntax: Replace the table_name and NEW_TABLE_NAME as per your requirement. ALTER TABLE table_name RENAME NEW_TABLE_NAME Example: See the below given … Read more

How to copy existing table in mysql

In this post we will learn about how to copy the existing table in mysql. The newly copied table does not have data means it will be blank but it has similar rows information from its parent table. After copying the table you have to insert the data by using INSERT command. Follow the given … Read more