SlideShare a Scribd company logo
MySQL for Beginners - part 1
●
●
●
●
●
●
○
●
○
MySQL for Beginners - part 1
●
●
●
○
●
●
○
●
○
●
●
○
●
○
●
MySQL 5.0
MySQL 5.1
MariaDB 5.1
MariaDB 5.2
MariaDB 5.3
MySQL 5.5
MariaDB 5.5
MariaDB 10.0
MariaDB 10.1(1)
MySQL 5.6
MySQL 5.7Percona 5.7
Percona 5.6
Percona 5.5
Percona 5.5
XtraDB Cluster
Percona 5.6
XtraDB Cluster
MariaDB 5.5
Cluster
MariaDB 10.0
Cluster
MySQL AB
Sun Microsystems
Oracle
Percona
MariaDB
Missing:
- MySQL/NDB
Cluster
- WebScaleSQL
Percona &
MariaDB Cluster
include Galera
(1)
MariaDB 10.1
includes Galera
dev.mysql.com
downloads.mariadb.org
percona.com/downloads
scaledb@Ubuntu:~$ sudo apt-get install mysql-server
…
scaledb@Ubuntu:~$ sudo /etc/init.d/mysql start
…
scaledb@Ubuntu:~$ ps -awx | grep mysql
2555 ? Ssl 0:00 /usr/sbin/mysqld
scaledb@Ubuntu:~$ mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 43
Server version: 5.5.47-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
mysql>
mysql> s
--------------
mysql Ver 14.14 Distrib 5.5.47, for debian-linux-gnu (x86_64) using readline 6.3
Connection id: 43
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.5.47-0ubuntu0.14.04.1 (Ubuntu)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 5 min 16 sec
Threads: 1 Questions: 584 Slow queries: 0 Opens: 189 Flush tables: 1 Open tables: 41 Queries per second avg: 1.848
--------------
mysql>
$ sudo dpkg -i  mysql-community-server_5.7.11-1ubuntu14.
04_amd64.deb
$ rpm -i mysql-community-server-5.7.11-1.el7.x86_64.rpm
scaledb@Ubuntu:~$ cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
…
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
…
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
mysql>
mysql> grant all on *.* to root@'%';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MySQL for Beginners - part 1
MySQL for Beginners - part 1

More Related Content

What's hot (20)

PDF
DebConf16 BoF on MariaDB/MySQL packaging
Otto Kekäläinen
 
PDF
MariaDB with SphinxSE
Colin Charles
 
PPTX
MyDUMPER : Faster logical backups and restores
Mydbops
 
PDF
Making MySQL Administration a Breeze - A Look Into a MySQL DBA's Toolchest
Lenz Grimmer
 
PDF
Passwordless login with unix auth_socket
Otto Kekäläinen
 
PDF
MySQL Shell for Database Engineers
Mydbops
 
PPT
Apache
jtpond
 
PPTX
N:1 Replication meets MHA
do_aki
 
PPTX
Drupal, varnish, esi - Toulouse November 2
Marcus Deglos
 
PPT
Speeding Up The Snail
Marcus Deglos
 
PDF
Percona Xtrabackup - Highly Efficient Backups
Mydbops
 
PDF
Using ZFS file system with MySQL
Mydbops
 
PPTX
High performance and high availability proxies for MySQL
Mydbops
 
PDF
Galera cluster for high availability
Mydbops
 
PPTX
Performance all teh things
Marcus Deglos
 
PDF
MariaDB Server & MySQL Security Essentials 2016
Colin Charles
 
PDF
Configuring MongoDB HA Replica Set on AWS EC2
ShepHertz
 
PDF
MariaDB - the "new" MySQL is 5 years old and everywhere (LinuxCon Europe 2015)
Colin Charles
 
PPT
How to Contribute Code to MySQL?
Thava Alagu
 
PPTX
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 
DebConf16 BoF on MariaDB/MySQL packaging
Otto Kekäläinen
 
MariaDB with SphinxSE
Colin Charles
 
MyDUMPER : Faster logical backups and restores
Mydbops
 
Making MySQL Administration a Breeze - A Look Into a MySQL DBA's Toolchest
Lenz Grimmer
 
Passwordless login with unix auth_socket
Otto Kekäläinen
 
MySQL Shell for Database Engineers
Mydbops
 
Apache
jtpond
 
N:1 Replication meets MHA
do_aki
 
Drupal, varnish, esi - Toulouse November 2
Marcus Deglos
 
Speeding Up The Snail
Marcus Deglos
 
Percona Xtrabackup - Highly Efficient Backups
Mydbops
 
Using ZFS file system with MySQL
Mydbops
 
High performance and high availability proxies for MySQL
Mydbops
 
Galera cluster for high availability
Mydbops
 
Performance all teh things
Marcus Deglos
 
MariaDB Server & MySQL Security Essentials 2016
Colin Charles
 
Configuring MongoDB HA Replica Set on AWS EC2
ShepHertz
 
MariaDB - the "new" MySQL is 5 years old and everywhere (LinuxCon Europe 2015)
Colin Charles
 
How to Contribute Code to MySQL?
Thava Alagu
 
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 

Viewers also liked (7)

PDF
MySQL for beginners
Saeid Zebardast
 
PDF
Introduction to MySQL
Giuseppe Maxia
 
PDF
Installing MySQL for Python
Siva Arunachalam
 
PPTX
Database connectivity in python
baabtra.com - No. 1 supplier of quality freshers
 
PDF
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
Olivier DASINI
 
PDF
Mysql introduction
Prof. Wim Van Criekinge
 
PPT
Php MySql For Beginners
Priti Solanki
 
MySQL for beginners
Saeid Zebardast
 
Introduction to MySQL
Giuseppe Maxia
 
Installing MySQL for Python
Siva Arunachalam
 
Database connectivity in python
baabtra.com - No. 1 supplier of quality freshers
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
Olivier DASINI
 
Mysql introduction
Prof. Wim Van Criekinge
 
Php MySql For Beginners
Priti Solanki
 
Ad

Similar to MySQL for Beginners - part 1 (20)

PDF
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Colin Charles
 
PDF
MySQL 8.0 InnoDB Cluster demo
Keith Hollman
 
PDF
Multiple instances on linux
Vasudeva Rao
 
PPT
Mysql
Mindtree
 
PDF
MariaDB: in-depth (hands on training in Seoul)
Colin Charles
 
DOCX
OTRS
Muhammad Qazi
 
PDF
Curso de MySQL 5.7
Eduardo Legatti
 
PDF
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Colin Charles
 
PDF
MySQL features missing in MariaDB Server
Colin Charles
 
PPTX
Build MySQL virtual enviroment
Taras Vasylyuk
 
PDF
Instalar MySQL CentOS
Moisés Elías Araya
 
PDF
Differences between MariaDB 10.3 & MySQL 8.0
Colin Charles
 
PDF
Securing your MySQL / MariaDB Server data
Colin Charles
 
PDF
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
Insight Technology, Inc.
 
ODP
Sql installation
Balakumaran Arunachalam
 
PPT
Mysql ppt
Sanmuga Nathan
 
PDF
How to operate MySQL InnoDB Cluster with MySQL Shell
Frederic Descamps
 
PPS
Linux17 MySQL_installation
Jainul Musani
 
PDF
MariaDB Server Compatibility with MySQL
Colin Charles
 
DOCX
Multiple instances second method
Vasudeva Rao
 
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Colin Charles
 
MySQL 8.0 InnoDB Cluster demo
Keith Hollman
 
Multiple instances on linux
Vasudeva Rao
 
Mysql
Mindtree
 
MariaDB: in-depth (hands on training in Seoul)
Colin Charles
 
Curso de MySQL 5.7
Eduardo Legatti
 
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Colin Charles
 
MySQL features missing in MariaDB Server
Colin Charles
 
Build MySQL virtual enviroment
Taras Vasylyuk
 
Instalar MySQL CentOS
Moisés Elías Araya
 
Differences between MariaDB 10.3 & MySQL 8.0
Colin Charles
 
Securing your MySQL / MariaDB Server data
Colin Charles
 
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
Insight Technology, Inc.
 
Sql installation
Balakumaran Arunachalam
 
Mysql ppt
Sanmuga Nathan
 
How to operate MySQL InnoDB Cluster with MySQL Shell
Frederic Descamps
 
Linux17 MySQL_installation
Jainul Musani
 
MariaDB Server Compatibility with MySQL
Colin Charles
 
Multiple instances second method
Vasudeva Rao
 
Ad

More from Ivan Zoratti (20)

PDF
AI, ML and Graph Algorithms: Real Life Use Cases with Neo4j
Ivan Zoratti
 
PDF
Introducing the Open Edge Module
Ivan Zoratti
 
PDF
MySQL Performance Tuning London Meetup June 2017
Ivan Zoratti
 
PDF
NOSQL Meets Relational - The MySQL Ecosystem Gains More Flexibility
Ivan Zoratti
 
PDF
MariaDB ColumnStore - LONDON MySQL Meetup
Ivan Zoratti
 
PDF
ScaleDB Technical Presentation
Ivan Zoratti
 
PDF
Time Series From Collection To Analysis
Ivan Zoratti
 
PDF
ScaleDB Technical Presentation
Ivan Zoratti
 
PDF
Anatomy of a Proxy Server - MaxScale Internals
Ivan Zoratti
 
PDF
Orchestrating MySQL
Ivan Zoratti
 
PDF
GTIDs Explained
Ivan Zoratti
 
PDF
The Evolution of Open Source Databases
Ivan Zoratti
 
PDF
MaxScale for Effective MySQL Meetup NYC - 14.01.21
Ivan Zoratti
 
PDF
MariaDB 10 Tutorial - 13.11.11 - Percona Live London
Ivan Zoratti
 
PDF
SkySQL & MariaDB What's all the buzz?
Ivan Zoratti
 
PDF
MySQL & MariaDB - Innovation Happens Here
Ivan Zoratti
 
PDF
What can we learn from NoSQL technologies?
Ivan Zoratti
 
PDF
Big Data with MySQL
Ivan Zoratti
 
PDF
Sky Is The limit
Ivan Zoratti
 
KEY
The sky's the limit
Ivan Zoratti
 
AI, ML and Graph Algorithms: Real Life Use Cases with Neo4j
Ivan Zoratti
 
Introducing the Open Edge Module
Ivan Zoratti
 
MySQL Performance Tuning London Meetup June 2017
Ivan Zoratti
 
NOSQL Meets Relational - The MySQL Ecosystem Gains More Flexibility
Ivan Zoratti
 
MariaDB ColumnStore - LONDON MySQL Meetup
Ivan Zoratti
 
ScaleDB Technical Presentation
Ivan Zoratti
 
Time Series From Collection To Analysis
Ivan Zoratti
 
ScaleDB Technical Presentation
Ivan Zoratti
 
Anatomy of a Proxy Server - MaxScale Internals
Ivan Zoratti
 
Orchestrating MySQL
Ivan Zoratti
 
GTIDs Explained
Ivan Zoratti
 
The Evolution of Open Source Databases
Ivan Zoratti
 
MaxScale for Effective MySQL Meetup NYC - 14.01.21
Ivan Zoratti
 
MariaDB 10 Tutorial - 13.11.11 - Percona Live London
Ivan Zoratti
 
SkySQL & MariaDB What's all the buzz?
Ivan Zoratti
 
MySQL & MariaDB - Innovation Happens Here
Ivan Zoratti
 
What can we learn from NoSQL technologies?
Ivan Zoratti
 
Big Data with MySQL
Ivan Zoratti
 
Sky Is The limit
Ivan Zoratti
 
The sky's the limit
Ivan Zoratti
 

Recently uploaded (20)

PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PPTX
Engineering the Java Web Application (MVC)
abhishekoza1981
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PPTX
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Import Data Form Excel to Tally Services
Tally xperts
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 

MySQL for Beginners - part 1

  • 6.
  • 10. MySQL 5.0 MySQL 5.1 MariaDB 5.1 MariaDB 5.2 MariaDB 5.3 MySQL 5.5 MariaDB 5.5 MariaDB 10.0 MariaDB 10.1(1) MySQL 5.6 MySQL 5.7Percona 5.7 Percona 5.6 Percona 5.5 Percona 5.5 XtraDB Cluster Percona 5.6 XtraDB Cluster MariaDB 5.5 Cluster MariaDB 10.0 Cluster MySQL AB Sun Microsystems Oracle Percona MariaDB Missing: - MySQL/NDB Cluster - WebScaleSQL Percona & MariaDB Cluster include Galera (1) MariaDB 10.1 includes Galera
  • 14. scaledb@Ubuntu:~$ sudo apt-get install mysql-server … scaledb@Ubuntu:~$ sudo /etc/init.d/mysql start … scaledb@Ubuntu:~$ ps -awx | grep mysql 2555 ? Ssl 0:00 /usr/sbin/mysqld
  • 15. scaledb@Ubuntu:~$ mysql -uroot Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 43 Server version: 5.5.47-0ubuntu0.14.04.1 (Ubuntu) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. mysql>
  • 16. mysql> s -------------- mysql Ver 14.14 Distrib 5.5.47, for debian-linux-gnu (x86_64) using readline 6.3 Connection id: 43 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 5.5.47-0ubuntu0.14.04.1 (Ubuntu) Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client characterset: utf8 Conn. characterset: utf8 UNIX socket: /var/run/mysqld/mysqld.sock Uptime: 5 min 16 sec Threads: 1 Questions: 584 Slow queries: 0 Opens: 189 Flush tables: 1 Open tables: 41 Queries per second avg: 1.848 -------------- mysql>
  • 17. $ sudo dpkg -i mysql-community-server_5.7.11-1ubuntu14. 04_amd64.deb $ rpm -i mysql-community-server-5.7.11-1.el7.x86_64.rpm
  • 18. scaledb@Ubuntu:~$ cat /etc/mysql/my.cnf # # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-specific options. … [client] port = 3306 socket = /var/run/mysqld/mysqld.sock … [mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 mysql> mysql> grant all on *.* to root@'%'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)