SlideShare a Scribd company logo
1 of 28
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

What's hot

Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQLSiddique Ibrahim
 
MongoDB Administration ~ Kevin Hanson
MongoDB Administration ~ Kevin HansonMongoDB Administration ~ Kevin Hanson
MongoDB Administration ~ Kevin Hansonhungarianhc
 
Running MongoDB 3.0 on AWS
Running MongoDB 3.0 on AWSRunning MongoDB 3.0 on AWS
Running MongoDB 3.0 on AWSMongoDB
 
Best practices for running MySQL on production - Vaibhav Upadhyay
Best practices for running MySQL on production - Vaibhav UpadhyayBest practices for running MySQL on production - Vaibhav Upadhyay
Best practices for running MySQL on production - Vaibhav UpadhyayMydbops
 
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...Ashnikbiz
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDSMydbops
 
Evolution of DBA in the Cloud Era
 Evolution of DBA in the Cloud Era Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud EraMydbops
 
MongoDB WiredTiger Internals
MongoDB WiredTiger InternalsMongoDB WiredTiger Internals
MongoDB WiredTiger InternalsNorberto Leite
 
Products.intro.forum version
Products.intro.forum versionProducts.intro.forum version
Products.intro.forum versionsqlserver.co.il
 
SQL Server Integration Services Tips & Tricks
SQL Server Integration Services Tips & TricksSQL Server Integration Services Tips & Tricks
SQL Server Integration Services Tips & TricksGuillermo Caicedo
 
Let the Tiger Roar - MongoDB 3.0
Let the Tiger Roar - MongoDB 3.0Let the Tiger Roar - MongoDB 3.0
Let the Tiger Roar - MongoDB 3.0Norberto Leite
 
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTigerLet the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTigerJon Rangel
 
WiredTiger Overview
WiredTiger OverviewWiredTiger Overview
WiredTiger OverviewWiredTiger
 
Using ZFS file system with MySQL
Using ZFS file system with MySQLUsing ZFS file system with MySQL
Using ZFS file system with MySQLMydbops
 
Advantage & Disadvantage of MySQL
Advantage & Disadvantage of MySQLAdvantage & Disadvantage of MySQL
Advantage & Disadvantage of MySQLKentAnderson43
 
Understanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQLUnderstanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQLHyderabad Scalability Meetup
 

What's hot (20)

Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQL
 
MongoDB Administration ~ Kevin Hanson
MongoDB Administration ~ Kevin HansonMongoDB Administration ~ Kevin Hanson
MongoDB Administration ~ Kevin Hanson
 
Mysql grand
Mysql grandMysql grand
Mysql grand
 
Running MongoDB 3.0 on AWS
Running MongoDB 3.0 on AWSRunning MongoDB 3.0 on AWS
Running MongoDB 3.0 on AWS
 
Mongo DB
Mongo DBMongo DB
Mongo DB
 
Best practices for running MySQL on production - Vaibhav Upadhyay
Best practices for running MySQL on production - Vaibhav UpadhyayBest practices for running MySQL on production - Vaibhav Upadhyay
Best practices for running MySQL on production - Vaibhav Upadhyay
 
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDS
 
Evolution of DBA in the Cloud Era
 Evolution of DBA in the Cloud Era Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud Era
 
MongoDB WiredTiger Internals
MongoDB WiredTiger InternalsMongoDB WiredTiger Internals
MongoDB WiredTiger Internals
 
Products.intro.forum version
Products.intro.forum versionProducts.intro.forum version
Products.intro.forum version
 
Sqlite
SqliteSqlite
Sqlite
 
SQL Server Integration Services Tips & Tricks
SQL Server Integration Services Tips & TricksSQL Server Integration Services Tips & Tricks
SQL Server Integration Services Tips & Tricks
 
Let the Tiger Roar - MongoDB 3.0
Let the Tiger Roar - MongoDB 3.0Let the Tiger Roar - MongoDB 3.0
Let the Tiger Roar - MongoDB 3.0
 
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTigerLet the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
 
WiredTiger Overview
WiredTiger OverviewWiredTiger Overview
WiredTiger Overview
 
Using ZFS file system with MySQL
Using ZFS file system with MySQLUsing ZFS file system with MySQL
Using ZFS file system with MySQL
 
Advantage & Disadvantage of MySQL
Advantage & Disadvantage of MySQLAdvantage & Disadvantage of MySQL
Advantage & Disadvantage of MySQL
 
Understanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQLUnderstanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQL
 
No SQL and MongoDB - Hyderabad Scalability Meetup
No SQL and MongoDB - Hyderabad Scalability MeetupNo SQL and MongoDB - Hyderabad Scalability Meetup
No SQL and MongoDB - Hyderabad Scalability Meetup
 

Viewers also liked

Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions systemJainul Musani
 
Disabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoDisabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoScott Rains
 
Collection framework
Collection frameworkCollection framework
Collection frameworkJainul Musani
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinuxJainul Musani
 
Agile projectdevelopment
Agile projectdevelopmentAgile projectdevelopment
Agile projectdevelopmentJainul Musani
 
Feed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocsFeed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocsInternational Aquafeed
 
Linux15 dynamic dns-2
Linux15 dynamic dns-2Linux15 dynamic dns-2
Linux15 dynamic dns-2Jainul Musani
 
Technique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongTechnique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongRidzaludin
 
Tilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilTilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilAlberto Nunes
 
Difference WAMP and XAMPP
Difference WAMP and XAMPPDifference WAMP and XAMPP
Difference WAMP and XAMPPJainul Musani
 
Introduction to aquaculture
Introduction to aquacultureIntroduction to aquaculture
Introduction to aquaculturekumarsaurabh544
 
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, MalaysiaPolyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, MalaysiaFayina19z
 
Overfishing & Aquaculture
Overfishing & AquacultureOverfishing & Aquaculture
Overfishing & Aquaculturetcooper66
 
Cage Culture 3
Cage Culture 3Cage Culture 3
Cage Culture 3Ridzaludin
 
Presentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and PlasteringPresentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and PlasteringAbontee
 

Viewers also liked (20)

Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions system
 
Disabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoDisabled Tourist Guide - Morroco
Disabled Tourist Guide - Morroco
 
Linux16 RPM
Linux16 RPMLinux16 RPM
Linux16 RPM
 
Collection framework
Collection frameworkCollection framework
Collection framework
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinux
 
Agile projectdevelopment
Agile projectdevelopmentAgile projectdevelopment
Agile projectdevelopment
 
Feed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocsFeed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocs
 
Linux15 dynamic dns-2
Linux15 dynamic dns-2Linux15 dynamic dns-2
Linux15 dynamic dns-2
 
Linux14 Dynamic DNS
Linux14 Dynamic DNSLinux14 Dynamic DNS
Linux14 Dynamic DNS
 
Technique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongTechnique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) Vuong
 
Tilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilTilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In Brazil
 
Difference WAMP and XAMPP
Difference WAMP and XAMPPDifference WAMP and XAMPP
Difference WAMP and XAMPP
 
Introduction to aquaculture
Introduction to aquacultureIntroduction to aquaculture
Introduction to aquaculture
 
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, MalaysiaPolyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
 
Overfishing & Aquaculture
Overfishing & AquacultureOverfishing & Aquaculture
Overfishing & Aquaculture
 
Cage culture
Cage cultureCage culture
Cage culture
 
Cage Culture 3
Cage Culture 3Cage Culture 3
Cage Culture 3
 
Presentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and PlasteringPresentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and Plastering
 
eCertificate-JAVA-2
eCertificate-JAVA-2eCertificate-JAVA-2
eCertificate-JAVA-2
 
SAP for Beginners
SAP for BeginnersSAP for Beginners
SAP for Beginners
 

Similar to Linux17 MySQL_installation

20090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp0220090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp02Vinamra Mittal
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlsqlhjalp
 
My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)Gustavo Rene Antunez
 
MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)Colin Charles
 
Mysql
MysqlMysql
MysqlSHC
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0Ted Wennmark
 
Getting started with my sql
Getting started with my sqlGetting started with my sql
Getting started with my sqlWeb Sky
 
The benefits of My sql
The benefits of My sqlThe benefits of My sql
The benefits of My sqlCacheWorks©
 
SQL Server in DevOps Town Hall Webinar
SQL Server in DevOps Town Hall WebinarSQL Server in DevOps Town Hall Webinar
SQL Server in DevOps Town Hall WebinarTravis Wright
 
SULTHAN's PHP, MySQL & wordpress
SULTHAN's PHP, MySQL & wordpressSULTHAN's PHP, MySQL & wordpress
SULTHAN's PHP, MySQL & wordpressSULTHAN BASHA
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesMaynooth University
 
My sql introduction for Bestcom
My sql introduction for BestcomMy sql introduction for Bestcom
My sql introduction for BestcomIvan Tu
 
My S Q L Introduction for 1 day training
My S Q L  Introduction for 1 day trainingMy S Q L  Introduction for 1 day training
My S Q L Introduction for 1 day trainingIvan Tu
 
DataDrivenMtl 20170906 - SQL Server 2017 on Linux
DataDrivenMtl 20170906 - SQL Server 2017 on LinuxDataDrivenMtl 20170906 - SQL Server 2017 on Linux
DataDrivenMtl 20170906 - SQL Server 2017 on LinuxMichael Albo, MSc IT, MBA
 

Similar to Linux17 MySQL_installation (20)

Mysql tutorial 5257
Mysql tutorial 5257Mysql tutorial 5257
Mysql tutorial 5257
 
Mysql tutorial
Mysql tutorialMysql tutorial
Mysql tutorial
 
20090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp0220090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp02
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdl
 
My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)
 
Sql installation
Sql installationSql installation
Sql installation
 
MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)
 
Mysql ppt
Mysql pptMysql ppt
Mysql ppt
 
Mysql
MysqlMysql
Mysql
 
My SQL 1
My SQL 1My SQL 1
My SQL 1
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0
 
Getting started with my sql
Getting started with my sqlGetting started with my sql
Getting started with my sql
 
The benefits of My sql
The benefits of My sqlThe benefits of My sql
The benefits of My sql
 
SQL Server in DevOps Town Hall Webinar
SQL Server in DevOps Town Hall WebinarSQL Server in DevOps Town Hall Webinar
SQL Server in DevOps Town Hall Webinar
 
SULTHAN's PHP, MySQL & wordpress
SULTHAN's PHP, MySQL & wordpressSULTHAN's PHP, MySQL & wordpress
SULTHAN's PHP, MySQL & wordpress
 
zLAMP
zLAMPzLAMP
zLAMP
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choices
 
My sql introduction for Bestcom
My sql introduction for BestcomMy sql introduction for Bestcom
My sql introduction for Bestcom
 
My S Q L Introduction for 1 day training
My S Q L  Introduction for 1 day trainingMy S Q L  Introduction for 1 day training
My S Q L Introduction for 1 day training
 
DataDrivenMtl 20170906 - SQL Server 2017 on Linux
DataDrivenMtl 20170906 - SQL Server 2017 on LinuxDataDrivenMtl 20170906 - SQL Server 2017 on Linux
DataDrivenMtl 20170906 - SQL Server 2017 on Linux
 

More from Jainul Musani

More from Jainul Musani (20)

React js t8 - inlinecss
React js   t8 - inlinecssReact js   t8 - inlinecss
React js t8 - inlinecss
 
React js t7 - forms-events
React js   t7 - forms-eventsReact js   t7 - forms-events
React js t7 - forms-events
 
React js t6 -lifecycle
React js   t6 -lifecycleReact js   t6 -lifecycle
React js t6 -lifecycle
 
React js t5 - state
React js   t5 - stateReact js   t5 - state
React js t5 - state
 
React js t4 - components
React js   t4 - componentsReact js   t4 - components
React js t4 - components
 
React js t3 - es6
React js   t3 - es6React js   t3 - es6
React js t3 - es6
 
React js t2 - jsx
React js   t2 - jsxReact js   t2 - jsx
React js t2 - jsx
 
React js t1 - introduction
React js   t1 - introductionReact js   t1 - introduction
React js t1 - introduction
 
ExpressJs Session01
ExpressJs Session01ExpressJs Session01
ExpressJs Session01
 
NodeJs Session03
NodeJs Session03NodeJs Session03
NodeJs Session03
 
NodeJs Session02
NodeJs Session02NodeJs Session02
NodeJs Session02
 
Nodejs Session01
Nodejs Session01Nodejs Session01
Nodejs Session01
 
Java exercise1
Java exercise1Java exercise1
Java exercise1
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
 
Cassandra-vs-MongoDB
Cassandra-vs-MongoDBCassandra-vs-MongoDB
Cassandra-vs-MongoDB
 
MongoDB-SESSION03
MongoDB-SESSION03MongoDB-SESSION03
MongoDB-SESSION03
 
4+1archi
4+1archi4+1archi
4+1archi
 
Python 1
Python 1Python 1
Python 1
 

Recently uploaded

ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Recently uploaded (20)

ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

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