SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de Jainul Musani

Plus de 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
 

Dernier

DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxAvaniJani1
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfChristalin Nelson
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...Nguyen Thanh Tu Collection
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPCeline George
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 

Dernier (20)

DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdf
 
Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERP
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 

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