MySQL Database Administrator
Prepare Exam 1Z0-883
Course overview
Lesson I. Introduction
- MySQL AB
- MySQL: The RDBMS Architecture
- Client/Server
- Commands and Queries
- Main programs
- MySQL Engine
Chapter I : MySQL Architecture
Lesson 2. Installation & configuration
- Installation and files location
- The my.cnf file
- Automate startup services
- User access and Security
- Log files management
- Backup/Import/Export and Restore
Why MySQL ? (The problem)
Small business
Startup
Open System
Small budget
Introduction
Easy to install
Easy to deploy and use
Scalable
Stable
Fast
Adapt for web application
Database server
MySQL: What is it? (The solution)
Company that created the MySQL database, 1995
Acquired by Sun Microsystem, January 2008
Later acquired by Oracle
And MySQL AB ?
MySQL: The RDBMS
Distributed environment
 The Client : « mysql »
 Requirements
 The host – The server location (IP) in the network, Local or remote
 Username
 Password
 Port
Connection script
$ mysql –u root –h localhost –p
#You are invite to type in the password at the prompt
Client/Server
The Server « mysqld »
 The daemon running on a computer
 listen to a specific port for incoming connection
 Treats request and response to clients
Common commands
CREATE – Create a database and/or a table
$ create database `mydb`;
$ create table `users` (`name` varchar(10) not null);
SELECT – Retrieves a set of data from a table in a database
$ select name from `users`;
INSERT – Adds a record data into the table
$ insert into `users`(name) values(‘My Name’);
UPDATE – Sets / Updates an existing data
$ update users where name=‘My Name’ set name=‘New Name’;
DELETE – Removes a record from the database
$ drop from users where name=‘New Name’;
Queries/Commands
Server
- Mysqld
- Mysqlsafe
- Mysql_multi
- Mysql.server
- Mysql_secure_installation
- Mysql_upgrade
Main programs
Client
- Mysql
- Mysqladmin
- Mysqlcheck
- Mysqldump
Mysql Administrative
- Mysqlaccess
They are components that handle the SQL operations for different table
types.
Transaction-safe tables
Nontransaction-safe tables
InnoDB the default storage engine
Determine the supported storage engines: $ SHOW ENGINES
Storage Engines 1
- InnoDB
- MyISAM
- Memory
- Merge
- Archive
- Federated
- NDB (NDBCLUSTER)
- CSV
- Blackhole
- Example
Storage Engines 2
Storage Engines: Make your choice
Linux: Install both the client and the server
$ sudo apt-get install mysql mysql-server
Check installation
$ sudo mysql –v
# Display the installed version
Installation & configuration
Follow intructions here
https://dev.mysql.com/doc/refman/5.6/en/mysql-installer-gui.html
Choose Full to install all components and features
MySQL on windows platform
Locate the MySQL Configuration file
On Ubuntu /etc/mysql/my.cnf
$ sudo nano /etc/mysql/my.cnf
# And from here you can modify the configuration to feed your needs. i.e changing
the client connection port
Configuration
The mysqld_safe
By default the server starts by the mysqld-safe
Activate automatic startup
$ sudo chkconfig --level 345 mysql on
Automate MySQL services at startup
Create account syntax
CREATE USER [IF NOT EXISTS]
user_specification [, user_specification] ...
[REQUIRE {NONE | ssl_option [[AND] ssl_option] ...}]
[WITH resource_option [resource_option] ...]
[password_option | lock_option] ...
CREATE USER 'jeffrey'@'localhost'
IDENTIFIED WITH sha256_password BY 'new-password'
PASSWORD EXPIRE INTERVAL 180 DAY;
User Account/Access and Security
GRANT
priv_type [(column_list)]
[, priv_type [(column_list)]] ...
ON [object_type] priv_level
TO user_specification [, user_specification] ...
[REQUIRE {NONE | ssl_option [[AND] ssl_option] ...}]
[WITH {GRANT OPTION | resource_option} ...]
CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'mypass';
GRANT ALL ON db1.* TO 'jeffrey'@'localhost';
GRANT SELECT ON db2.invoice TO 'jeffrey'@'localhost';
ALTER USER 'jeffrey'@'localhost' WITH MAX_QUERIES_PER_HOUR 90;
Grant access privileges
- Mysql general log location
/var/log/ -> mysql.err – mysql.log
- MySQL Error logs
/var/log/mysql/ -> error.log
MySQL LOG files
- Mysqldump
Can backup all king of storage engine
> mysqldump [options] db_name [tbl_name ...]
> mysqldump [options] --databases db_name ...
> mysqldump [options] --all-databases
[Options]: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
- Mysqlhotcopy
> mysqlhotcopy db_name [/path/to/new_directory]
> mysqlhotcopy db_name_1 ... db_name_n /path/to/new_directory
[Options]: http://dev.mysql.com/doc/refman/5.1/en/mysqlhotcopy.html
MYSQL Backup
The mysqlimport client provides a command-line interface to the LOAD DATA INFILE
SQL statement.
mysqlimport [options] db_name textfile1 [textfile2 ...]
[Options]: https://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html
MYSQL Import data
MYSQL Restore
$ mysql -u [uname] -p[pass] [db_to_restore] < [path to your
file .sql]
Thank you
Kwaye Kant – CEO Ksoft Solutions
Software Developer

More Related Content

PPT
PDF
My SQL conceptual architecture
PPT
MySQL Atchitecture and Concepts
PPTX
MySQL DBA
PPTX
MySQL Architecture and Engine
PDF
MySQL Storage Engines Landscape
PPT
MySQL and DB Engines
PDF
MySQL Storage Engines
My SQL conceptual architecture
MySQL Atchitecture and Concepts
MySQL DBA
MySQL Architecture and Engine
MySQL Storage Engines Landscape
MySQL and DB Engines
MySQL Storage Engines

What's hot (13)

PPTX
MySQL database
PPT
MySQL Replication Basics
PDF
Introduction Mysql
PDF
MySQL Enterprise Backup (MEB)
PPT
Mysql Introduction
PPS
Introduction to Mysql
PDF
My S Q L Introduction for 1 day training
PPTX
Database storage engines
PDF
MySQL Backup & Recovery
PDF
Percona Xtrabackup - Highly Efficient Backups
PPTX
Advantage & Disadvantage of MySQL
PPT
MySQL ppt
MySQL database
MySQL Replication Basics
Introduction Mysql
MySQL Enterprise Backup (MEB)
Mysql Introduction
Introduction to Mysql
My S Q L Introduction for 1 day training
Database storage engines
MySQL Backup & Recovery
Percona Xtrabackup - Highly Efficient Backups
Advantage & Disadvantage of MySQL
MySQL ppt
Ad

Viewers also liked (20)

PDF
1&1 MySQL Experience at SkySQL Roadshow
PDF
MySQL 5.6, news in 5.7 and our HA options
PPTX
PHP mysql Introduction database
PDF
Designing For Ajax
PDF
Building Large jQuery Applications
PDF
MySQL 5.6 Replication Webinar
PDF
Beginning Jquery In Drupal Theming
PDF
Ajax for PHP Developers
ODP
The care and feeding of a MySQL database
PDF
MySQL 5.6 - Operations and Diagnostics Improvements
PDF
BITS: Introduction to relational databases and MySQL - SQL
PDF
MySQL For Linux Sysadmins
PDF
MySQL Query Optimization (Basics)
PPTX
MySQL Introduction
PPTX
Understanding angular js
PDF
jQuery for beginners
PDF
Learning jQuery in 30 minutes
PDF
Introduction to MySQL
PPT
User Interface Design in Software Engineering SE15
PDF
CBSE XII Database Concepts And MySQL Presentation
1&1 MySQL Experience at SkySQL Roadshow
MySQL 5.6, news in 5.7 and our HA options
PHP mysql Introduction database
Designing For Ajax
Building Large jQuery Applications
MySQL 5.6 Replication Webinar
Beginning Jquery In Drupal Theming
Ajax for PHP Developers
The care and feeding of a MySQL database
MySQL 5.6 - Operations and Diagnostics Improvements
BITS: Introduction to relational databases and MySQL - SQL
MySQL For Linux Sysadmins
MySQL Query Optimization (Basics)
MySQL Introduction
Understanding angular js
jQuery for beginners
Learning jQuery in 30 minutes
Introduction to MySQL
User Interface Design in Software Engineering SE15
CBSE XII Database Concepts And MySQL Presentation
Ad

Similar to MySQL DBA OCP 1Z0-883 (20)

PDF
BITS: Introduction to MySQL - Introduction and Installation
PDF
MySQL Backup and Security Best Practices
PDF
Mysql tutorial 5257
PDF
Percona Live '18 Tutorial: The Accidental DBA
PPT
My sql with querys
PPT
Mysql ppt
PDF
Mysql tutorial
PDF
My SQL 101
PDF
My First 100 days with a MySQL DBMS (WP)
PPTX
Mysql-Basics.pptx
PDF
SULTHAN's PHP, MySQL & wordpress
DOC
My sql technical reference manual
PDF
Mysql nowwhat
PDF
Curso de MySQL 5.7
ODP
Sql installation
PPT
My sql basic
PPT
PDF
Mysql administration
BITS: Introduction to MySQL - Introduction and Installation
MySQL Backup and Security Best Practices
Mysql tutorial 5257
Percona Live '18 Tutorial: The Accidental DBA
My sql with querys
Mysql ppt
Mysql tutorial
My SQL 101
My First 100 days with a MySQL DBMS (WP)
Mysql-Basics.pptx
SULTHAN's PHP, MySQL & wordpress
My sql technical reference manual
Mysql nowwhat
Curso de MySQL 5.7
Sql installation
My sql basic
Mysql administration

Recently uploaded (20)

PDF
Addressing the challenges of harmonizing law and artificial intelligence tech...
PPTX
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
PDF
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
PDF
【AI論文解説】高速・高品質な生成を実現するFlow Map Models(Part 1~3)
PDF
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
PDF
Examining Bias in AI Generated News Content.pdf
PDF
Advancements in abstractive text summarization: a deep learning approach
PPTX
Strategic Picks — Prioritising the Right Agentic Use Cases [2/6]
PDF
Altius execution marketplace concept.pdf
PDF
Intravenous drug administration application for pediatric patients via augmen...
PPTX
CRM(Customer Relationship Managmnet) Presentation
PDF
Peak of Data & AI Encore: Scalable Design & Infrastructure
PDF
Introduction to c language from lecture slides
PDF
“Introduction to Designing with AI Agents,” a Presentation from Amazon Web Se...
PDF
ment.tech-How to Develop an AI Agent Healthcare App like Sully AI (1).pdf
PDF
Applying Agentic AI in Enterprise Automation
PDF
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
PDF
NewMind AI Journal Monthly Chronicles - August 2025
PDF
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
PDF
Child-friendly e-learning for artificial intelligence education in Indonesia:...
Addressing the challenges of harmonizing law and artificial intelligence tech...
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
【AI論文解説】高速・高品質な生成を実現するFlow Map Models(Part 1~3)
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
Examining Bias in AI Generated News Content.pdf
Advancements in abstractive text summarization: a deep learning approach
Strategic Picks — Prioritising the Right Agentic Use Cases [2/6]
Altius execution marketplace concept.pdf
Intravenous drug administration application for pediatric patients via augmen...
CRM(Customer Relationship Managmnet) Presentation
Peak of Data & AI Encore: Scalable Design & Infrastructure
Introduction to c language from lecture slides
“Introduction to Designing with AI Agents,” a Presentation from Amazon Web Se...
ment.tech-How to Develop an AI Agent Healthcare App like Sully AI (1).pdf
Applying Agentic AI in Enterprise Automation
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
NewMind AI Journal Monthly Chronicles - August 2025
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
Child-friendly e-learning for artificial intelligence education in Indonesia:...

MySQL DBA OCP 1Z0-883

  • 2. Course overview Lesson I. Introduction - MySQL AB - MySQL: The RDBMS Architecture - Client/Server - Commands and Queries - Main programs - MySQL Engine Chapter I : MySQL Architecture Lesson 2. Installation & configuration - Installation and files location - The my.cnf file - Automate startup services - User access and Security - Log files management - Backup/Import/Export and Restore
  • 3. Why MySQL ? (The problem) Small business Startup Open System Small budget Introduction
  • 4. Easy to install Easy to deploy and use Scalable Stable Fast Adapt for web application Database server MySQL: What is it? (The solution)
  • 5. Company that created the MySQL database, 1995 Acquired by Sun Microsystem, January 2008 Later acquired by Oracle And MySQL AB ?
  • 7. Distributed environment  The Client : « mysql »  Requirements  The host – The server location (IP) in the network, Local or remote  Username  Password  Port Connection script $ mysql –u root –h localhost –p #You are invite to type in the password at the prompt Client/Server
  • 8. The Server « mysqld »  The daemon running on a computer  listen to a specific port for incoming connection  Treats request and response to clients
  • 9. Common commands CREATE – Create a database and/or a table $ create database `mydb`; $ create table `users` (`name` varchar(10) not null); SELECT – Retrieves a set of data from a table in a database $ select name from `users`; INSERT – Adds a record data into the table $ insert into `users`(name) values(‘My Name’); UPDATE – Sets / Updates an existing data $ update users where name=‘My Name’ set name=‘New Name’; DELETE – Removes a record from the database $ drop from users where name=‘New Name’; Queries/Commands
  • 10. Server - Mysqld - Mysqlsafe - Mysql_multi - Mysql.server - Mysql_secure_installation - Mysql_upgrade Main programs Client - Mysql - Mysqladmin - Mysqlcheck - Mysqldump Mysql Administrative - Mysqlaccess
  • 11. They are components that handle the SQL operations for different table types. Transaction-safe tables Nontransaction-safe tables InnoDB the default storage engine Determine the supported storage engines: $ SHOW ENGINES Storage Engines 1
  • 12. - InnoDB - MyISAM - Memory - Merge - Archive - Federated - NDB (NDBCLUSTER) - CSV - Blackhole - Example Storage Engines 2
  • 13. Storage Engines: Make your choice
  • 14. Linux: Install both the client and the server $ sudo apt-get install mysql mysql-server Check installation $ sudo mysql –v # Display the installed version Installation & configuration
  • 16. Locate the MySQL Configuration file On Ubuntu /etc/mysql/my.cnf $ sudo nano /etc/mysql/my.cnf # And from here you can modify the configuration to feed your needs. i.e changing the client connection port Configuration
  • 17. The mysqld_safe By default the server starts by the mysqld-safe Activate automatic startup $ sudo chkconfig --level 345 mysql on Automate MySQL services at startup
  • 18. Create account syntax CREATE USER [IF NOT EXISTS] user_specification [, user_specification] ... [REQUIRE {NONE | ssl_option [[AND] ssl_option] ...}] [WITH resource_option [resource_option] ...] [password_option | lock_option] ... CREATE USER 'jeffrey'@'localhost' IDENTIFIED WITH sha256_password BY 'new-password' PASSWORD EXPIRE INTERVAL 180 DAY; User Account/Access and Security
  • 19. GRANT priv_type [(column_list)] [, priv_type [(column_list)]] ... ON [object_type] priv_level TO user_specification [, user_specification] ... [REQUIRE {NONE | ssl_option [[AND] ssl_option] ...}] [WITH {GRANT OPTION | resource_option} ...] CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'mypass'; GRANT ALL ON db1.* TO 'jeffrey'@'localhost'; GRANT SELECT ON db2.invoice TO 'jeffrey'@'localhost'; ALTER USER 'jeffrey'@'localhost' WITH MAX_QUERIES_PER_HOUR 90; Grant access privileges
  • 20. - Mysql general log location /var/log/ -> mysql.err – mysql.log - MySQL Error logs /var/log/mysql/ -> error.log MySQL LOG files
  • 21. - Mysqldump Can backup all king of storage engine > mysqldump [options] db_name [tbl_name ...] > mysqldump [options] --databases db_name ... > mysqldump [options] --all-databases [Options]: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html - Mysqlhotcopy > mysqlhotcopy db_name [/path/to/new_directory] > mysqlhotcopy db_name_1 ... db_name_n /path/to/new_directory [Options]: http://dev.mysql.com/doc/refman/5.1/en/mysqlhotcopy.html MYSQL Backup
  • 22. The mysqlimport client provides a command-line interface to the LOAD DATA INFILE SQL statement. mysqlimport [options] db_name textfile1 [textfile2 ...] [Options]: https://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html MYSQL Import data
  • 23. MYSQL Restore $ mysql -u [uname] -p[pass] [db_to_restore] < [path to your file .sql]
  • 24. Thank you Kwaye Kant – CEO Ksoft Solutions Software Developer