SlideShare a Scribd company logo
1 of 2
Download to read offline
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

Web Technology Management Lecture IV
Web Technology Management Lecture IVWeb Technology Management Lecture IV
Web Technology Management Lecture IV
sopekmir
 
Apache
ApacheApache
Apache
jtpond
 
My sql essentials
My sql essentialsMy sql essentials
My sql essentials
Minhaj Kazi
 

What's hot (19)

I3 product &amp; solutions details 2016
I3 product &amp; solutions details   2016I3 product &amp; solutions details   2016
I3 product &amp; solutions details 2016
 
Install oracle grid infrastructure on linux 6.6
Install oracle grid infrastructure on linux 6.6Install oracle grid infrastructure on linux 6.6
Install oracle grid infrastructure on linux 6.6
 
Eouc 12 on 12c osama mustafa
Eouc 12 on 12c osama mustafaEouc 12 on 12c osama mustafa
Eouc 12 on 12c osama mustafa
 
12c on RHEL7
12c on RHEL712c on RHEL7
12c on RHEL7
 
Web Technology Management Lecture IV
Web Technology Management Lecture IVWeb Technology Management Lecture IV
Web Technology Management Lecture IV
 
Install oracle siebel on windows 2008 r2
Install oracle siebel on windows 2008 r2Install oracle siebel on windows 2008 r2
Install oracle siebel on windows 2008 r2
 
J2ee user managment using dwh builder
J2ee user managment using dwh builderJ2ee user managment using dwh builder
J2ee user managment using dwh builder
 
Install oracle oam web gate on windows
Install oracle oam web gate on windowsInstall oracle oam web gate on windows
Install oracle oam web gate on windows
 
Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1
 
Oracle to MySQL DatabaseLink
Oracle to MySQL DatabaseLinkOracle to MySQL DatabaseLink
Oracle to MySQL DatabaseLink
 
Mysql
MysqlMysql
Mysql
 
Installing Complex Event Processing On Linux
Installing Complex Event Processing On LinuxInstalling Complex Event Processing On Linux
Installing Complex Event Processing On Linux
 
Apache
ApacheApache
Apache
 
Presentation_On_25June09
Presentation_On_25June09Presentation_On_25June09
Presentation_On_25June09
 
Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016
 
My sql essentials
My sql essentialsMy sql essentials
My sql essentials
 
Install oracle solaris 11.2 using gui
Install oracle solaris 11.2 using guiInstall oracle solaris 11.2 using gui
Install oracle solaris 11.2 using gui
 
Fosdem17 honeypot your database server
Fosdem17 honeypot your database serverFosdem17 honeypot your database server
Fosdem17 honeypot your database server
 
Ebs clone r12.2.4
Ebs clone r12.2.4Ebs clone r12.2.4
Ebs clone r12.2.4
 

Similar to My sql 5.6 installation and upgradation steps in centos

图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Netxms install guide
Netxms install guideNetxms install guide
Netxms install guide
Naga Raju N
 

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

Mysql
Mysql Mysql
Mysql
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
Getting started with my sql
Getting started with my sqlGetting started with my sql
Getting started with my sql
 
Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10
 
MySQL Shell: the best DBA tool !
MySQL Shell: the best DBA tool !MySQL Shell: the best DBA tool !
MySQL Shell: the best DBA tool !
 
Build MySQL virtual enviroment
Build MySQL virtual enviromentBuild MySQL virtual enviroment
Build MySQL virtual enviroment
 
OTRS
OTRSOTRS
OTRS
 
Dru lavigne servers-tutorial
Dru lavigne servers-tutorialDru lavigne servers-tutorial
Dru lavigne servers-tutorial
 
Hdf installing-hdf
Hdf installing-hdfHdf installing-hdf
Hdf installing-hdf
 
Mysql repos testing.odp
Mysql repos testing.odpMysql repos testing.odp
Mysql repos testing.odp
 
Solaris mysql sop
Solaris mysql sopSolaris mysql sop
Solaris mysql sop
 
Mysql ppt
Mysql pptMysql ppt
Mysql ppt
 
Netxms install guide
Netxms install guideNetxms install guide
Netxms install guide
 
Mysql-Basics.pptx
Mysql-Basics.pptxMysql-Basics.pptx
Mysql-Basics.pptx
 
Sql installation
Sql installationSql installation
Sql installation
 
Automatic upgrade and new error logging in my sql 8.0
Automatic upgrade and new error logging in my sql 8.0Automatic upgrade and new error logging in my sql 8.0
Automatic upgrade and new error logging in my sql 8.0
 
Multiple instances on linux
Multiple instances on linuxMultiple instances on linux
Multiple instances on linux
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
How to configure esx to pass an audit
How to configure esx to pass an auditHow to configure esx to pass an audit
How to configure esx to pass an audit
 
MySQL Replication Update - DEbconf 2020 presentation
MySQL Replication Update - DEbconf 2020 presentationMySQL Replication Update - DEbconf 2020 presentation
MySQL Replication Update - DEbconf 2020 presentation
 

More from Pawan Kumar (6)

Apache ofbiz
Apache ofbizApache ofbiz
Apache ofbiz
 
monitoring linux system
monitoring linux system monitoring linux system
monitoring linux system
 
Ftp server linux
Ftp server linuxFtp server linux
Ftp server linux
 
Virtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerVirtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic Server
 
MySQL with DRBD/Pacemaker/Corosync on Linux
 MySQL with DRBD/Pacemaker/Corosync on Linux MySQL with DRBD/Pacemaker/Corosync on Linux
MySQL with DRBD/Pacemaker/Corosync on Linux
 
Nagios pawan kumar- stpl 30042012
Nagios pawan kumar- stpl 30042012Nagios pawan kumar- stpl 30042012
Nagios pawan kumar- stpl 30042012
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

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