Upgrading MySQL 5.1 to 5.6 service failed to start
|

Upgrading MySQL 5.1 to 5.6 service failed to start

Recently we got the system which has MySQL server version 5.1 was running. It was good chance for me to reproduce the issue and show practical answer on question asked on stackoverflow. Operating System: CentOS 6.5Arch : x86_54 Symptom MySQL service failed to start after upgrading from MySQL 5.1 to 5.6 version. Given below is…

mysqldump: Got error: 145: Table ‘./DB/table-name’ is marked as crashed
|

mysqldump: Got error: 145: Table ‘./DB/table-name’ is marked as crashed

It was time to take backup of mysql database of my server. I run the command mysqldump with some options and found the error, ” mysqldump: Got error: 145: Table ‘./DB/table-name’ is marked as crashed and should be repaired when using LOCK TABLES ” I have seen this error before but not written on this…

How to install mysql server 5.6 on Ubuntu 14.04 LTS ( Trusty Tahr )

How to install mysql server 5.6 on Ubuntu 14.04 LTS ( Trusty Tahr )

In this practical we will learn, how to install mysql server 5.6 on Ubuntu 14.04 LTS ( Trusty Tahr ).At the time of writing this post, MySQL Server has 5.6 version as stable release (release date – 11 April 2014). MySQL is a open source relational database management system (RDBMS). It is popularly used in…

Another MySQL daemon already running with the same unix socket
|

Another MySQL daemon already running with the same unix socket

In this post ,I am sharing the error message ” Another MySQL daemon already running with the same unix socket “. The error found in our own sharadchhetri.com blog while restarting the MySQL server.It is at 6:55 PM IST,I noticed the weird error message on blog,”Error establishing a database connection”.I log into the server and…

How to set delay replication in MySQL slave server
|

How to set delay replication in MySQL slave server

In this tutorial we will learn how to set delay replication in MySQL Master Slave replication. After setting this configuration,slave server deliberately lag behind the Master server as per the delay time you have set. The MySQL server version 5.6 has this feature and it has some benefits which will discuss in this post. Set…

How to configure multiple mysql instance in Ubuntu
|

How to configure multiple mysql instance in Ubuntu

How to configure multiple mysql instance in Ubuntu In this tutorial we will learn,how to configure multiple mysql instance in Ubuntu.Here multiple mysql instance means we can run multiple mysql server in single machine.We expect you have already install mysql-server in your system(if not then run the command apt-get install mysql-server). To configure multiple mysql…

How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4
|

How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4

In this tutorial we will learn about how to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4. Multiple instance means in single system we can create multiple MySQL server. These multiple mysql server will run in different ports.In this practical we expect you already have MySQL server installed in your system. To…

Setup MySQL master slave replication in CentOS 6
|

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…

Find mysql commands history without mysql server login
|

Find mysql commands history without mysql server login

This is a small tip to find mysql commands history without login into mysql server.When we login into MySQL server,generally we uses up and down arrow key to find the history of MySQL commands. Actually the MySQL commands history are saved in file called .mysql_history located in user’s home directory by which he/she logged into…

How to rename table in mysql using command line

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…