SlideShare a Scribd company logo
MySQL 5.6 installation and upgradation. Step by step
configuration instructions.
******************************************************************
A MySQL server package (mysql­server­5.0.77­4.el5_5.4) is installed.
The current MySQL server package is provided by a different
vendor (CentOS) than MySQL AB, Sun Microsystems, Inc., or Oracle and/or its affiliates.
Some files may be installed to different locations, including log
files and the service startup script in /etc/init.d/.
Upgrading directly from MySQL 5.0 to MySQL 5.6 may not
be safe in all cases. A manual dump and restore using mysqldump is
recommended. It is important to review the MySQL manual's Upgrading
section for version­specific incompatibilities.
A manual upgrade is required.
­ Ensure that you have a complete, working backup of your data and my.cnf files.
­ Shut down the MySQL server cleanly
­ Remove the existing MySQL packages. Usually this command will
 list the packages you should remove:
 rpm ­qa | grep ­i '^mysql­'
 You may choose to use 'rpm ­­nodeps ­ev <package­name>' to remove
 the package which contains the mysqlclient shared library. The
 library will be reinstalled by the MySQL­shared­compat package.
­ Install the new MySQL packages supplied by Oracle and/or its affiliates
­ Ensure that the MySQL server is started
­ Run the 'mysql_upgrade' program
This is a brief description of the upgrade process. Important details
can be found in the MySQL manual, in the Upgrading section.
******************************************************************
 Mysql 5.6 RPM Installation steps
  [root@test45 /]#rpm ­ivh MySQL­server­5.6.13­1.linux_glibc2.5.x86_64.rpm 
  [root@test45 /]#rpm ­ivh MySQL­client­5.6.13­1.linux_glibc2.5.x86_64.rpm 
  [root@test45 /]# rpm ­ivh MySQL­devel­5.6.13­1.linux_glibc2.5.x86_64.rpm 
  
  [root@test45 /]#service mysql restart
Note :­ if you get below error then
Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe)
Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe)
[root@test45 mysql]# service mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe)
[root@test45 mysql]# mkdir /var/lib/bin
[root@test45 mysql]# service mysql restart
ERROR! MySQL server PID file could not be found!
Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe)
[root@test45 /]# find -name mysqlmanager
[root@test45 /]# find -name mysqld_safe
./usr/bin/mysqld_safe
[root@test45 /]# cp ./usr/bin/mysqld_safe /var/lib/bin/.
[root@test45 mysql]# service mysql restart
ERROR! MySQL server PID file could not be found!
Starting MySQL.. SUCCESS!
[root@test45 /]# service mysql status
SUCCESS! MySQL running (5697)
[root@test45 /]# rm -rf /usr/local/mysql/var/[MyNAS].pid
[root@test45 /]# !se
service mysql status
SUCCESS! MySQL running (5697)
Note:­ In Mysql5.6 A random root password has been set. You will find it in 
'/root/.mysql_secret'.
#vim /root/.mysql_secret
                                               Reset root password
#mysqladmin ­u root ­p'MUZOV9do' password *******
P@w@n Kumar

More Related Content

What's hot (19)

PDF
I3 product &amp; solutions details 2016
Denny NS
 
PDF
Install oracle grid infrastructure on linux 6.6
Osama Mustafa
 
PPTX
Eouc 12 on 12c osama mustafa
Osama Mustafa
 
PDF
12c on RHEL7
Osama Mustafa
 
PPTX
Web Technology Management Lecture IV
sopekmir
 
PDF
Install oracle siebel on windows 2008 r2
Osama Mustafa
 
PDF
J2ee user managment using dwh builder
Osama Mustafa
 
PDF
Install oracle oam web gate on windows
Osama Mustafa
 
PDF
Upgrade OBIEE to 11.1.1.7.1
Osama Mustafa
 
PDF
Oracle to MySQL DatabaseLink
Osama Mustafa
 
PDF
Installing Complex Event Processing On Linux
Osama Mustafa
 
PPT
Apache
jtpond
 
ODP
Presentation_On_25June09
Sanjay Kumar
 
PPT
Codership's galera cluster installation and quickstart webinar march 2016
Sakari Keskitalo
 
PPT
My sql essentials
Minhaj Kazi
 
PDF
Install oracle solaris 11.2 using gui
Osama Mustafa
 
PPTX
Fosdem17 honeypot your database server
Georgi Kodinov
 
PDF
Ebs clone r12.2.4
Osama Mustafa
 
I3 product &amp; solutions details 2016
Denny NS
 
Install oracle grid infrastructure on linux 6.6
Osama Mustafa
 
Eouc 12 on 12c osama mustafa
Osama Mustafa
 
12c on RHEL7
Osama Mustafa
 
Web Technology Management Lecture IV
sopekmir
 
Install oracle siebel on windows 2008 r2
Osama Mustafa
 
J2ee user managment using dwh builder
Osama Mustafa
 
Install oracle oam web gate on windows
Osama Mustafa
 
Upgrade OBIEE to 11.1.1.7.1
Osama Mustafa
 
Oracle to MySQL DatabaseLink
Osama Mustafa
 
Installing Complex Event Processing On Linux
Osama Mustafa
 
Apache
jtpond
 
Presentation_On_25June09
Sanjay Kumar
 
Codership's galera cluster installation and quickstart webinar march 2016
Sakari Keskitalo
 
My sql essentials
Minhaj Kazi
 
Install oracle solaris 11.2 using gui
Osama Mustafa
 
Fosdem17 honeypot your database server
Georgi Kodinov
 
Ebs clone r12.2.4
Osama Mustafa
 

Similar to My sql 5.6 installation and upgradation steps in centos (20)

PPT
Mysql
Mindtree
 
DOCX
Upgrading mysql version 5.5.30 to 5.6.10
Vasudeva Rao
 
PDF
Mysql repos testing.odp
Ramana Yeruva
 
DOCX
OTRS
Muhammad Qazi
 
PPT
Mysql ppt
Sanmuga Nathan
 
PDF
MySQL for Beginners - part 1
Ivan Zoratti
 
PDF
My S Q L Introduction for 1 day training
Ivan Tu
 
PDF
My sql introduction for Bestcom
Ivan Tu
 
PDF
Curso de MySQL 5.7
Eduardo Legatti
 
PPS
Linux17 MySQL_installation
Jainul Musani
 
PDF
Instalar MySQL CentOS
Moisés Elías Araya
 
PDF
Mysql reference
glmalpica
 
PPTX
Build MySQL virtual enviroment
Taras Vasylyuk
 
PDF
Mysql 56-experiences-bugs-solutions-50mins
Valeriy Kravchuk
 
PDF
SULTHAN's PHP, MySQL & wordpress
SULTHAN BASHA
 
ODP
Sql installation
Balakumaran Arunachalam
 
PDF
Multiple instances on linux
Vasudeva Rao
 
PDF
MariaDB Server & MySQL Security Essentials 2016
Colin Charles
 
PPT
My sql
anandha ganesh
 
PDF
How to Install MySQL on Debian 12 In Just 8 Steps.pdf
Green Webpage
 
Mysql
Mindtree
 
Upgrading mysql version 5.5.30 to 5.6.10
Vasudeva Rao
 
Mysql repos testing.odp
Ramana Yeruva
 
Mysql ppt
Sanmuga Nathan
 
MySQL for Beginners - part 1
Ivan Zoratti
 
My S Q L Introduction for 1 day training
Ivan Tu
 
My sql introduction for Bestcom
Ivan Tu
 
Curso de MySQL 5.7
Eduardo Legatti
 
Linux17 MySQL_installation
Jainul Musani
 
Instalar MySQL CentOS
Moisés Elías Araya
 
Mysql reference
glmalpica
 
Build MySQL virtual enviroment
Taras Vasylyuk
 
Mysql 56-experiences-bugs-solutions-50mins
Valeriy Kravchuk
 
SULTHAN's PHP, MySQL & wordpress
SULTHAN BASHA
 
Sql installation
Balakumaran Arunachalam
 
Multiple instances on linux
Vasudeva Rao
 
MariaDB Server & MySQL Security Essentials 2016
Colin Charles
 
How to Install MySQL on Debian 12 In Just 8 Steps.pdf
Green Webpage
 
Ad

More from Pawan Kumar (6)

PDF
Apache ofbiz
Pawan Kumar
 
PDF
monitoring linux system
Pawan Kumar
 
PDF
Ftp server linux
Pawan Kumar
 
ODP
Virtual Hosts Configuration with Weblogic Server
Pawan Kumar
 
PDF
MySQL with DRBD/Pacemaker/Corosync on Linux
Pawan Kumar
 
PDF
Nagios pawan kumar- stpl 30042012
Pawan Kumar
 
Apache ofbiz
Pawan Kumar
 
monitoring linux system
Pawan Kumar
 
Ftp server linux
Pawan Kumar
 
Virtual Hosts Configuration with Weblogic Server
Pawan Kumar
 
MySQL with DRBD/Pacemaker/Corosync on Linux
Pawan Kumar
 
Nagios pawan kumar- stpl 30042012
Pawan Kumar
 
Ad

Recently uploaded (20)

PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Dimensions of Societal Planning in Commonism
StefanMz
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 

My sql 5.6 installation and upgradation steps in centos

  • 1. MySQL 5.6 installation and upgradation. Step by step configuration instructions. ****************************************************************** A MySQL server package (mysql­server­5.0.77­4.el5_5.4) is installed. The current MySQL server package is provided by a different vendor (CentOS) than MySQL AB, Sun Microsystems, Inc., or Oracle and/or its affiliates. Some files may be installed to different locations, including log files and the service startup script in /etc/init.d/. Upgrading directly from MySQL 5.0 to MySQL 5.6 may not be safe in all cases. A manual dump and restore using mysqldump is recommended. It is important to review the MySQL manual's Upgrading section for version­specific incompatibilities. A manual upgrade is required. ­ Ensure that you have a complete, working backup of your data and my.cnf files. ­ Shut down the MySQL server cleanly ­ Remove the existing MySQL packages. Usually this command will  list the packages you should remove:  rpm ­qa | grep ­i '^mysql­'  You may choose to use 'rpm ­­nodeps ­ev <package­name>' to remove  the package which contains the mysqlclient shared library. The  library will be reinstalled by the MySQL­shared­compat package. ­ Install the new MySQL packages supplied by Oracle and/or its affiliates ­ Ensure that the MySQL server is started ­ Run the 'mysql_upgrade' program This is a brief description of the upgrade process. Important details can be found in the MySQL manual, in the Upgrading section. ******************************************************************  Mysql 5.6 RPM Installation steps   [root@test45 /]#rpm ­ivh MySQL­server­5.6.13­1.linux_glibc2.5.x86_64.rpm    [root@test45 /]#rpm ­ivh MySQL­client­5.6.13­1.linux_glibc2.5.x86_64.rpm    [root@test45 /]# rpm ­ivh MySQL­devel­5.6.13­1.linux_glibc2.5.x86_64.rpm       [root@test45 /]#service mysql restart
  • 2. Note :­ if you get below error then Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe) Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe) [root@test45 mysql]# service mysql restart Shutting down MySQL.. SUCCESS! Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe) [root@test45 mysql]# mkdir /var/lib/bin [root@test45 mysql]# service mysql restart ERROR! MySQL server PID file could not be found! Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/bin/mysqld_safe) [root@test45 /]# find -name mysqlmanager [root@test45 /]# find -name mysqld_safe ./usr/bin/mysqld_safe [root@test45 /]# cp ./usr/bin/mysqld_safe /var/lib/bin/. [root@test45 mysql]# service mysql restart ERROR! MySQL server PID file could not be found! Starting MySQL.. SUCCESS! [root@test45 /]# service mysql status SUCCESS! MySQL running (5697) [root@test45 /]# rm -rf /usr/local/mysql/var/[MyNAS].pid [root@test45 /]# !se service mysql status SUCCESS! MySQL running (5697) Note:­ In Mysql5.6 A random root password has been set. You will find it in  '/root/.mysql_secret'. #vim /root/.mysql_secret                                                Reset root password #mysqladmin ­u root ­p'MUZOV9do' password ******* P@w@n Kumar