You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+91Lines changed: 91 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ A collection of views, functions and procedures to help MySQL administrators get
4
4
5
5
There are install files available for 5.6 and 5.7 respectively. To load these, you must position yourself within the directory that you downloaded to, as these top level files SOURCE individual files that are shared across versions in most cases (though not all).
6
6
7
+
## Installation
8
+
7
9
The objects should all be created as the root user (but run with the privileges of the invoker).
8
10
9
11
For instance if you download to /tmp/mysql-sys/, and want to install the 5.6 version you should:
@@ -18,3 +20,92 @@ Or if you would like to log in to the client, and install the 5.7 version:
18
20
SOURCE ./sys_57.sql
19
21
20
22
Alternatively, you could just choose to load individual files based on your needs, but beware, certain objects have dependencies on other objects. You will need to ensure that these are also loaded.
23
+
24
+
## Overview of objects
25
+
26
+
### Procedures
27
+
28
+
#### create_synonym_db
29
+
30
+
##### Description
31
+
32
+
Takes a source database name and synonym name, and then creates the synonym database with views that point to all of the tables within the source database.
33
+
34
+
Useful for creating a "ps" synonym for "performance_schema", or "is" instead of "information_schema", for example.
35
+
36
+
##### Parameters
37
+
38
+
* in_db_name (VARCHAR(64)):
39
+
** The database name that you would like to create a synonym for.
0 commit comments