Category: UC2006

Certification Primer II: MySQL 5.0 DBA

Contents

[edit] Certification Primer II: MySQL 5.0 DBA

[edit] Slide 5: Stored Procedures

[edit] Slide 6: Stored Procedures (Security)

[edit] Slide 7: Stored Procedures (Performance)

[edit] Slide 8: Questions on Stored Procedures

The USER() function returns the current MySQL username and hostname used to connect to the server. Because the security mode used INVOKER, the stored procedure is run as the user executing it, causing the USER() function to return the calling user's credentials.

[edit] Slide 10: MySQL User Accounts

[edit] Slide 11: Using Host in Users

[edit] Slide 12: Privileges

[edit] Slide 13: Privilege Storage

[edit] Slide 14: SQL Statements

[edit] Slide 16: Grant

[edit] Slide 19: Drop User

[edit] Slide 21: Show Grants

- USER() will return 'john'@'localhost' - CURRENT_USER() may return @'localhost' IF there is no 'john'@'localhost' or 'john'@'%' accounts defined, but an anonymous one from the localhost is.

[edit] Slide 22: Resource Limits

[edit] Slide 23: Client Access Control

[edit] Slide 24: Questions on privileges

Answer: B. GRANT SELECT, UPDATE ON WORLD.* TO bob@'%'

The first SQL statement creates the USAGE privilege for user 'bob'@'%'. The second SQL statement adds the SELECT privilege. The third SQL statement adds the UPDATE privilege.

[edit] Slide 25: Questions (2) on privileges

A. Yes

WITH GRANT OPTION allows the user to impart all or a subset of its privileges to other users.

[edit] Slide 29: Network Security

[edit] Slide 31: Questions on Security

[edit] Slide 32: Upgrade-Related Security

[edit] Slide 33: Questions

See: http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

[edit] Slide 35: Finding Queries

[edit] Slide 37: Explain: Sample Output

[edit] Slide 42: Types in Explain 4/5

[edit] Slide 47: Questions

[edit] Slide 48: General Table Optimization


[edit] Slide 52: MyISAM Optimizations

[edit] Slide 53: InnoDB Optimizations

[edit] Slide 54: Memory Optimizations

[edit] Slide 56: Questions

[edit] Slide 58: Server Variables/Status

[edit] Slide 59: Global Variables

[edit] MyISAM-specific

[edit] InnoDB-specific

[edit] Slide 60: Local Variables

[edit] Slide 61: Query Cache

[edit] Slide 62: Questions

Answer: C. max_connections

[edit] See Also

Retrieved from "http://forge.mysql.com/wiki/Certification_Primer_II:_MySQL_5.0_DBA"

This page has been accessed 2,664 times. This page was last modified 15:32, 5 July 2006.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...