ITN270.001 Wake Tech1 ITN270 Advanced Internet Databases Lecture 14. Introduction to MySQL Administration and the MySQL Data Directory Topics: –Overview.

Slides:



Advertisements
Similar presentations
MySQL DBA Spring Topics in the MySQL AB DBA Course I Describe the MySQL Architecture, general operational characteristics and resources utilized.
Advertisements

MySQL Access Privilege System
 Overview User Accounts Groups User Rights Permissions.
Introduction to MySQL Administration.  Server startup and shutdown ◦ How to manually start and stop it from the command line ◦ How to arrange an automated.
Exploring the UNIX File System and File Security
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Nine Managing File System Access.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
Database Backup and Recovery
OPERATING SYSTEMS AND SYSTEMS SOFTWARE. SYSTEMS SOFTWARE Systems software consists of the programs that control the operations of the computer and its.
1 Client/Server Database Tutorial. SQL Server Connection through MS Access FACBUSAD1 SQL server MS Access MGD B106 Computer or your own PC Remote SQL.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
A crash course in njit’s Afs
Hosting Control Panels Allows users to manage their various hosted services in single place.  Creating webspaces  Creating FTP accounts  Creating .
Anders Karlsson Principal Sales Engineer, MySQL MySQL Embedded - Getting started with libmysqld.
Configuring the Windows 2000 Environment. Overview Configuring and Managing Hardware Configuring Display Options Configuring System Settings Configuring.
Linux Operations and Administration
Guide To UNIX Using Linux Fourth Edition
Your Interactive Guide to the Digital World Discovering Computers 2012.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring, Managing, and Troubleshooting Resource Access.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
MySQL Would You Like Some Transactions With That Table?
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Views, Indexes and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Haiman Tian 1.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
Explain the purpose of an operating system
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
MySQL. Dept. of Computing Science, University of Aberdeen2 In this lecture you will learn The main subsystems in MySQL architecture The different storage.
ITN Wake Tech1 ITN270 Advanced Internet Databases Lecture 15. General MySQL Administration Topics: –Securing a New MySQL Installation –MySQL Server.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Index and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Systems Management Server 2.0: Backup and Recovery Overview SMS Recovery Web Site location: Updated.
A Brief Documentation.  Provides basic information about connection, server, and client.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 15: Reliability and Security in Database Servers Instructor’s.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
MySQL Gubbins Richard Sinclair HepSysMan – 11/05/2012.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
STEP BY STEP INSTALLATION By Eng. BASSEM ALSAID. Step 1: Boot from windows server 2008 installation DVD, windows will load needed files for starting installation.
Oracle Applications 11i Concepts II Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems Brian Hitchcock.
ITN Wake Tech1 ITN270 Advanced Internet Databases Lecture 16. Security, Database Backups, Maintenance & Repair Topics: – Internal Security – External.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
Unit-8 Introduction Of MySql. Types of table in PHP MySQL supports various of table types or storage engines to allow you to optimize your database. The.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Chapter 9 Lecture 4. NetWare Novell’s network operating system Biggest competitor – Microsoft Windows.
Slide Set #24: Database security SY306 Web and Databases for Cyber Operations.
1 Backup and Replication Integration Techniques MySQL 6.0 Lars Thalmann, PhD Mats Kindahl, PhD Chuck Bell, PhD Replication and Backup Team Sun Microsystems.
Chapter 6 Database Administrator (DBA)
Would You Like Some Transactions With That Table?
Database application MySQL Database and PhpMyAdmin
Latihan Create a separate table with the same structure as the Booking table to hold archive records. Using the INSERT statement, copy the records from.
The Involuntary DBA Where there is Linux, you most likely will find MySQL or MariaDB. Like it or not, if you're working with Linux, you're a DBA.
1Z0-888 Oracle - VCE Questions
A Brief Introduction to MySQL
Exploring the UNIX File System and File Security
Chapter 8 Working with Databases and MySQL
File System Management
Database administration
Presentation transcript:

ITN Wake Tech1 ITN270 Advanced Internet Databases Lecture 14. Introduction to MySQL Administration and the MySQL Data Directory Topics: –Overview of Administrative Duties –MySQL Data Sirectory

ITN Wake Tech2 Overview of Administrative Duties The MySQL Server –mysqld MySQL Clients & Utilities –mysql allows you to send SQL to the server & get results –mysqladmin an administrative program shutting down checking status

ITN Wake Tech3 Overview of Administrative Duties MySQL Clients & Utilities –mysqlcheck –isamchk –myisamchk table analysis table optimization crash recovery –mysqldump backing up databases

ITN Wake Tech4 Overview of Administrative Duties The server’s language –SQL The MySQL data directory –structure where the files located –contents file system

ITN Wake Tech5 Administrative Duties Server startup & shutdown –mysqld start/stop User account maintenance –grant Log file maintenance –it may fill up your system Database backup & copying –mysqldump

ITN Wake Tech6 Administrative Duties Database replication –two servers have the same database –changes made in one propagate to the other Server configuration & tuning –retrieval –updates Multiple servers –each group may have its own server MySQL software updates

ITN Wake Tech7 Security File system security Server security –grant access priviliges

ITN Wake Tech8 Database Repair & Maintenance Crash recovery Preventive maintenance

ITN Wake Tech9 The MySQL Data Directory The MySQL Data Directory Stores –databases –status files –log files

ITN Wake Tech10 Location of the Data Directory Install from a source distribution –/usr/local/mysql/var Install from a binary distribution –/usr/local/mysql/data Install from a RPM file –/var/lib/mysql MS Windows –c:\mysql\data

ITN Wake Tech11 Location of the Data Directory Specification of the location of data directory --datadir = dir_name Ask the server for location –mysqladmin variables –or

ITN Wake Tech12 Structure of the Data Directory Contains all the databases & tables Tree structure –each database has a sub directory –tables in a database - files in the subdirectory Status & Log files

ITN Wake Tech13 How the MySQL Server Provides Access to Data

ITN Wake Tech14 How the MySQL Server Provides Access to Data When the server does not have exclusive control of the data directory –multiple servers on a single data directory –when run the table repair utilities

ITN Wake Tech15 How the MySQL Represents Databases in the File System Each database is a subdirectory under c:\mysql\data Show DATABASES –dir in Windows –ls in unix/Linux CREATE DATABASES db_name –cd DATADIR –mkdir db_name –chmod u=rwx,go-rwx dbname

ITN Wake Tech16 How the MySQL Represents Databases in the File System DROP DATABASE db_name –in UNIX cd DATADIR rm -rf db_name –in Windows cd DATADIR del /s db_name

ITN Wake Tech17 How the Tables are represented ISAM Tables –*.frm - description file for the format –*.ISD - data file for the contents –*.ISM - index information MyISAM Tables –*.frm - format –*.MYD - data –*.MYI - index files

ITN Wake Tech18 How the Tables are represented MERGE Tables –*.frm –*.MRG BDB Tables –*.frm - description –*.db - data & index InnoDB Tables –*.frm –tablespace

ITN Wake Tech19 OS constrains on Database & Table Naming Alphanumeric characters, _, $ 64 characters long other characters can be used by quoting the name in backticks case sensitivity

ITN Wake Tech20 Factors that Affect Maximum Table Size Internal Limits –ISAM:.ISD &.ISM <=4GB –MyISAM:.MYD &.MYI <= 4GB –BDB: 2 TetraBytes –InnoDB: 4Billion x 16KB OS limits: –2GB Data Type of AUTO_INCREMENT

ITN Wake Tech21 Implications of Data Directory Structure for System Performance Multiple files for one table Table opening time increases with the number of tables TIME VS SPACE –Combine tables need more space –More tables need more time Security –More user access same table if combined

ITN Wake Tech22 Status & Log Files Process ID file: –created when mysql starts –removed when shuts down MySQL Log files –General Log file Who is connecting From Where What queries thay are issuing

ITN Wake Tech23 Status & Log Files MySQL Log files –Update Log file queries that update the databases useful when there is a crash –Make sure they will not use up your file system space

ITN Wake Tech24 Relocating Data Directory Contents Relocation Methods –Specify your data directory at start up –Move the data & create a link Assessing the effects of relocation –disk space Relocating the entire data directory

ITN Wake Tech25 Relocating Data Directory Contents Relocating individual databases –shut down the server –copy or move database directory to ite new location –Remove the original database directory –Create a symlink –Restart the server