SlideShare a Scribd company logo
MySQL on
Linux
jainul.musani@gmail.com 1
MySQL Database:
• MySQL is developed, marketed, and
supported by MySQL AB.
• Swedish company
MySQL on
Linux
2
MySQL Database:
• Fast
• Easy-to-use RDBMS
• For small and big businesses
MySQL on
Linux
3
MySQL Database -
Popular:
• an open-source license - nothing to pay
to use it.
• very powerful program
• handles a large subset of the
functionality of the most expensive and
powerful database packages
MySQL on
Linux
4
MySQL Database -
Popular:
• uses a standard form of the well-known
SQL data language.
• works on many operating systems
• with many languages including PHP,
PERL, C, C++, JAVA, etc.
MySQL on
Linux
5
MySQL Database -
Popular:
• works very quickly and works well even
with large data sets.
• very friendly to PHP - for web
development.
• supports large databases - up to 50
million rows or more in a table.
MySQL on
Linux
6
MySQL Database -
Popular:
• default file size limit for a table is 4GB –
[a theoretical limit of 8 million terabytes
(TB)].
• customizable - allows programmers to
modify the MySQL software to fit their
own specific environments.
MySQL on
Linux
7
Downloading MySQL
• All downloads for MySQL are located
at MySQL Downloads
1)http://www.mysql.com/downloads
2)http://dev.mysql.com/downloads/mysql
/5.1.html
MySQL on
Linux
8
Downloading MySQL
• Pick the version and the platform of MySQL
Community Server you want.
downloaded the “Red Hat Enterprise Linux 5 RPM
(x86)”
1. MySQL-client-community-5.1.25-0.rhel5.i386.rpm
2. MySQL-server-community-5.1.25-0.rhel5.i386.rpm
3. MySQL-devel-community-5.1.25-0.rhel5.i386.rpm
MySQL on
Linux
9
Downloading MySQL
• The recommended way to install MySQL on a
Linux system is via RPM. MySQL AB makes the
following RPMs available for download on its
web site:
1.MySQL - The MySQL database server, which
manages databases and tables, controls user
access, and processes SQL queries.
MySQL on
Linux
10
Downloading
MySQL
2. MySQL-client - MySQL client programs,
which make it possible to connect to and
interact with the server.
3. MySQL-devel - Libraries and header files that
come in handy when compiling other
programs that use MySQL.
4. MySQL-shared - Shared libraries for the
MySQL client.
5. MySQL-bench - Benchmark and performance
testing tools for the MySQL database server.
MySQL on
Linux
11
Downloading
MySQL
The MySQL RPMs listed here are all built
on a SuSE Linux system, but they'll
usually work on other Linux variants
with no difficulty.
MySQL on
Linux
12
Downloading
MySQL• Remove the existing default MySQL that
came with the Linux distribution:
Do not perform this on an system where the MySQL database
is getting used by some application
MySQL on
Linux
13
14
• Now, follow the following steps to
proceed for installation:
• Login to the system using root user.
• Switch to the directory containing the
RPMs:
• Install the MySQL database server by
executing the following command.
Remember to replace the filename in
italics with the file name of your RPM.
Installing
MySQL
15
Installing
MySQL
• This is optinal but recommanded step to
install the remaining RPMs_
Verifying MySQL
Installation
16
• After MySQL has been successfully installed,
the base tables have been initialized, and the
server has been started, you can verify that all
is working as it should via some simple tests.
• Use the mysqladmin Utility to Obtain Server
Status:
• Use mysqladmin binary to check server
version. This binary would be available in
/usr/bin on linux and in C:mysqlbin on
windows.
17
It will produce the following result on Linux
Verifying MySQL
Installation
Follows the steps below
to stop and start MySQL
18
Post Installation Steps:
19
MySQL ships with a blank password for
the root MySQL user. As soon as you have
successfully installed the database and
client, you need to set a root password as
follows:
Connect to MySQL
20
Now to make a connection to your MySQL
server, you would have to use the
following command:
Connect to MySQL
21
Running MySQL at boot
time:
22
If you want to run MySQL server at
boot time, then make sure you have
following entry in /etc/rc.local file.
Execute simple SQL
commands using MySQL
Client:
23
You can connect to your MySQL server
by using MySQL client
using mysql command.
At this moment, you do not need to
give any password as by default it will
be set to blank.
Execute simple SQL
commands using MySQL
Client:
24
Running and Shutting
down MySQL Server:
25
First check if your MySQL server is
running or not. You can use the
following command to check this:
If your MySql is running, then you will
see mysqld process listed out in your result.
Running and Shutting
down MySQL Server:
26
If server is not running, then you can
start it by using the following
command:
Running and Shutting
down MySQL Server:
27
if you want to shut down an already
running MySQL server, then you can
do it by using the following command:
Bibliography
1) https://dev.mysql.com/doc/refman/5.1/en/linux-
installation-rpm.html
2) http://www.tutorialspoint.com/mysql/mysql-
administration.htm
3) http://www.thegeekstuff.com/2008/07/howto-install-
mysql-on-linux/
4) http://www.cyberciti.biz/faq/how-to-install-mysql-
under-rhel/
28

More Related Content

PPTX
MongoDB-SESION01
PPTX
MongoDB-SESSION02
PPTX
Insight on MongoDB Change Stream - Abhishek.D, Mydbops Team
PDF
MySQL Rebuild using Logical Backups
PDF
MySQL Performance Schema in Action
PDF
Supercharging MySQL and MariaDB with Plug-ins (SCaLE 12x)
PDF
MongoDB 3.0 and WiredTiger (Event: An Evening with MongoDB Dallas 3/10/15)
PDF
Building Hybrid data cluster using PostgreSQL and MongoDB
MongoDB-SESION01
MongoDB-SESSION02
Insight on MongoDB Change Stream - Abhishek.D, Mydbops Team
MySQL Rebuild using Logical Backups
MySQL Performance Schema in Action
Supercharging MySQL and MariaDB with Plug-ins (SCaLE 12x)
MongoDB 3.0 and WiredTiger (Event: An Evening with MongoDB Dallas 3/10/15)
Building Hybrid data cluster using PostgreSQL and MongoDB

What's hot (20)

PPT
Getting started into mySQL
KEY
MongoDB Administration ~ Kevin Hanson
PPT
Mysql grand
PPTX
Running MongoDB 3.0 on AWS
PPTX
Mongo DB
PPTX
Best practices for running MySQL on production - Vaibhav Upadhyay
PDF
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
PDF
MySQL on AWS RDS
PDF
Evolution of DBA in the Cloud Era
PDF
MongoDB WiredTiger Internals
PPTX
Products.intro.forum version
PPTX
Sqlite
PPTX
SQL Server Integration Services Tips & Tricks
PDF
Let the Tiger Roar - MongoDB 3.0
PPTX
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
PPTX
WiredTiger Overview
PDF
Using ZFS file system with MySQL
PPTX
Advantage & Disadvantage of MySQL
PDF
Understanding and building big data Architectures - NoSQL
PPT
No SQL and MongoDB - Hyderabad Scalability Meetup
Getting started into mySQL
MongoDB Administration ~ Kevin Hanson
Mysql grand
Running MongoDB 3.0 on AWS
Mongo DB
Best practices for running MySQL on production - Vaibhav Upadhyay
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
MySQL on AWS RDS
Evolution of DBA in the Cloud Era
MongoDB WiredTiger Internals
Products.intro.forum version
Sqlite
SQL Server Integration Services Tips & Tricks
Let the Tiger Roar - MongoDB 3.0
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
WiredTiger Overview
Using ZFS file system with MySQL
Advantage & Disadvantage of MySQL
Understanding and building big data Architectures - NoSQL
No SQL and MongoDB - Hyderabad Scalability Meetup
Ad

Viewers also liked (20)

PPT
Linux13 concurrent versions system
PDF
Disabled Tourist Guide - Morroco
PPS
Linux16 RPM
PPT
Collection framework
PPS
Linux12 clustering onlinux
PPSX
Agile projectdevelopment
PDF
Feed management in an intensive shrimp farming system with bioflocs
PPS
Linux15 dynamic dns-2
PPS
Linux14 Dynamic DNS
PPT
Technique Of Shrimp Culture (Final) Vuong
PDF
Tilapia Cage Farm Management In Brazil
PPS
Difference WAMP and XAMPP
PPTX
Introduction to aquaculture
PDF
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
PDF
Overfishing & Aquaculture
PPTX
Cage culture
PPT
Cage Culture 3
PPTX
Presentation on Brick Masonry, Paint and Plastering
PDF
eCertificate-JAVA-2
PPS
SAP for Beginners
Linux13 concurrent versions system
Disabled Tourist Guide - Morroco
Linux16 RPM
Collection framework
Linux12 clustering onlinux
Agile projectdevelopment
Feed management in an intensive shrimp farming system with bioflocs
Linux15 dynamic dns-2
Linux14 Dynamic DNS
Technique Of Shrimp Culture (Final) Vuong
Tilapia Cage Farm Management In Brazil
Difference WAMP and XAMPP
Introduction to aquaculture
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Overfishing & Aquaculture
Cage culture
Cage Culture 3
Presentation on Brick Masonry, Paint and Plastering
eCertificate-JAVA-2
SAP for Beginners
Ad

Similar to Linux17 MySQL_installation (20)

PDF
Mysql tutorial 5257
PDF
Mysql tutorial
PDF
BITS: Introduction to MySQL - Introduction and Installation
PDF
My S Q L Introduction for 1 day training
PDF
My sql introduction for Bestcom
ODP
Sql installation
PPT
Mysql ppt
PDF
Welcome to MySQL
PPT
Mysqlppt3510
PPT
Mysqlppt3510
PPT
Introduction to MySQL - Part 1
PPT
Introduction to MySQL - Part 1
PPT
Introduction to MySQL - Part 1
PPT
Introduction to MySQL - Part 1
PPT
Introduction to MySQL - Part 1
DOC
Database Security Explained
PPTX
My sql on linux
PDF
Php mysql-tutorial-en
PPT
PDF
How to Install MySQL on Debian 12 In Just 8 Steps.pdf
Mysql tutorial 5257
Mysql tutorial
BITS: Introduction to MySQL - Introduction and Installation
My S Q L Introduction for 1 day training
My sql introduction for Bestcom
Sql installation
Mysql ppt
Welcome to MySQL
Mysqlppt3510
Mysqlppt3510
Introduction to MySQL - Part 1
Introduction to MySQL - Part 1
Introduction to MySQL - Part 1
Introduction to MySQL - Part 1
Introduction to MySQL - Part 1
Database Security Explained
My sql on linux
Php mysql-tutorial-en
How to Install MySQL on Debian 12 In Just 8 Steps.pdf

More from Jainul Musani (20)

PDF
Core Java Interface Concepts for BCA Studetns
PDF
Java Abstract and Final Class for BCA students
PDF
Java Collection Framework for BCA Students
PDF
Simple Calculator using JavaFx a part of Advance Java
PDF
JavaFx Introduction, Basic JavaFx Architecture
PDF
ASP.NET 2010, WebServices Full Example for BCA Students
PDF
Palindrome Programme in PHP for BCA students
PDF
Leap Year Program in PHP for BCA students
PDF
"PHP and MySQL CRUD Operations for Student Management System"
PDF
Python: The Versatile Programming Language - Introduction
PPTX
Python a Versatile Programming Language - Introduction
PDF
React js t8 - inlinecss
PDF
React js t7 - forms-events
PDF
React js t6 -lifecycle
PDF
React js t5 - state
PDF
React js t4 - components
PDF
React js t3 - es6
PDF
React js t2 - jsx
PDF
React js t1 - introduction
PPTX
ExpressJs Session01
Core Java Interface Concepts for BCA Studetns
Java Abstract and Final Class for BCA students
Java Collection Framework for BCA Students
Simple Calculator using JavaFx a part of Advance Java
JavaFx Introduction, Basic JavaFx Architecture
ASP.NET 2010, WebServices Full Example for BCA Students
Palindrome Programme in PHP for BCA students
Leap Year Program in PHP for BCA students
"PHP and MySQL CRUD Operations for Student Management System"
Python: The Versatile Programming Language - Introduction
Python a Versatile Programming Language - Introduction
React js t8 - inlinecss
React js t7 - forms-events
React js t6 -lifecycle
React js t5 - state
React js t4 - components
React js t3 - es6
React js t2 - jsx
React js t1 - introduction
ExpressJs Session01

Recently uploaded (20)

PDF
Basic Mud Logging Guide for educational purpose
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
master seminar digital applications in india
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Pre independence Education in Inndia.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Basic Mud Logging Guide for educational purpose
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O7-L3 Supply Chain Operations - ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Structure & Organelles in detailed.
Final Presentation General Medicine 03-08-2024.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
01-Introduction-to-Information-Management.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
master seminar digital applications in india
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pre independence Education in Inndia.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Supply Chain Operations Speaking Notes -ICLT Program

Linux17 MySQL_installation

  • 2. MySQL Database: • MySQL is developed, marketed, and supported by MySQL AB. • Swedish company MySQL on Linux 2
  • 3. MySQL Database: • Fast • Easy-to-use RDBMS • For small and big businesses MySQL on Linux 3
  • 4. MySQL Database - Popular: • an open-source license - nothing to pay to use it. • very powerful program • handles a large subset of the functionality of the most expensive and powerful database packages MySQL on Linux 4
  • 5. MySQL Database - Popular: • uses a standard form of the well-known SQL data language. • works on many operating systems • with many languages including PHP, PERL, C, C++, JAVA, etc. MySQL on Linux 5
  • 6. MySQL Database - Popular: • works very quickly and works well even with large data sets. • very friendly to PHP - for web development. • supports large databases - up to 50 million rows or more in a table. MySQL on Linux 6
  • 7. MySQL Database - Popular: • default file size limit for a table is 4GB – [a theoretical limit of 8 million terabytes (TB)]. • customizable - allows programmers to modify the MySQL software to fit their own specific environments. MySQL on Linux 7
  • 8. Downloading MySQL • All downloads for MySQL are located at MySQL Downloads 1)http://www.mysql.com/downloads 2)http://dev.mysql.com/downloads/mysql /5.1.html MySQL on Linux 8
  • 9. Downloading MySQL • Pick the version and the platform of MySQL Community Server you want. downloaded the “Red Hat Enterprise Linux 5 RPM (x86)” 1. MySQL-client-community-5.1.25-0.rhel5.i386.rpm 2. MySQL-server-community-5.1.25-0.rhel5.i386.rpm 3. MySQL-devel-community-5.1.25-0.rhel5.i386.rpm MySQL on Linux 9
  • 10. Downloading MySQL • The recommended way to install MySQL on a Linux system is via RPM. MySQL AB makes the following RPMs available for download on its web site: 1.MySQL - The MySQL database server, which manages databases and tables, controls user access, and processes SQL queries. MySQL on Linux 10
  • 11. Downloading MySQL 2. MySQL-client - MySQL client programs, which make it possible to connect to and interact with the server. 3. MySQL-devel - Libraries and header files that come in handy when compiling other programs that use MySQL. 4. MySQL-shared - Shared libraries for the MySQL client. 5. MySQL-bench - Benchmark and performance testing tools for the MySQL database server. MySQL on Linux 11
  • 12. Downloading MySQL The MySQL RPMs listed here are all built on a SuSE Linux system, but they'll usually work on other Linux variants with no difficulty. MySQL on Linux 12
  • 13. Downloading MySQL• Remove the existing default MySQL that came with the Linux distribution: Do not perform this on an system where the MySQL database is getting used by some application MySQL on Linux 13
  • 14. 14 • Now, follow the following steps to proceed for installation: • Login to the system using root user. • Switch to the directory containing the RPMs: • Install the MySQL database server by executing the following command. Remember to replace the filename in italics with the file name of your RPM. Installing MySQL
  • 15. 15 Installing MySQL • This is optinal but recommanded step to install the remaining RPMs_
  • 16. Verifying MySQL Installation 16 • After MySQL has been successfully installed, the base tables have been initialized, and the server has been started, you can verify that all is working as it should via some simple tests. • Use the mysqladmin Utility to Obtain Server Status: • Use mysqladmin binary to check server version. This binary would be available in /usr/bin on linux and in C:mysqlbin on windows.
  • 17. 17 It will produce the following result on Linux Verifying MySQL Installation
  • 18. Follows the steps below to stop and start MySQL 18
  • 19. Post Installation Steps: 19 MySQL ships with a blank password for the root MySQL user. As soon as you have successfully installed the database and client, you need to set a root password as follows:
  • 20. Connect to MySQL 20 Now to make a connection to your MySQL server, you would have to use the following command:
  • 22. Running MySQL at boot time: 22 If you want to run MySQL server at boot time, then make sure you have following entry in /etc/rc.local file.
  • 23. Execute simple SQL commands using MySQL Client: 23 You can connect to your MySQL server by using MySQL client using mysql command. At this moment, you do not need to give any password as by default it will be set to blank.
  • 24. Execute simple SQL commands using MySQL Client: 24
  • 25. Running and Shutting down MySQL Server: 25 First check if your MySQL server is running or not. You can use the following command to check this: If your MySql is running, then you will see mysqld process listed out in your result.
  • 26. Running and Shutting down MySQL Server: 26 If server is not running, then you can start it by using the following command:
  • 27. Running and Shutting down MySQL Server: 27 if you want to shut down an already running MySQL server, then you can do it by using the following command:
  • 28. Bibliography 1) https://dev.mysql.com/doc/refman/5.1/en/linux- installation-rpm.html 2) http://www.tutorialspoint.com/mysql/mysql- administration.htm 3) http://www.thegeekstuff.com/2008/07/howto-install- mysql-on-linux/ 4) http://www.cyberciti.biz/faq/how-to-install-mysql- under-rhel/ 28