473,383 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Contribution: dump_grants

http://www.etsetb.upc.es/download/sources/dump_grants/

DESCRIPTION

This tool dumps the permissions granted to the users of the MySQL
database. It also could print a report of dangerous grants.
USAGE
Dump Grants will retrieve the permissions granted as sql commands
and will store it in a flat file. The name of the file will have
the week day, so historic versions of the permissions can be kept.


ARGS
--help : This text
--version : Prints the version of the tool
--hostname : DataBase Server Hostname
--backup-dir : Directory where the grants will be stored
If it's - the output is the STANDARD OUTPUT
--check-domain : Checks the trailing string of the hostname
--nodump : Won't store the data. The grants will be only checked.
STORING

In the backup directory there will be stored the grants. It will keep
one week of data like this:

mon_grants.sql
tue_grants.sql
...
CHECK DOMAIN

This is a feature not related to dumping the database, but to check
the domain of the grants.

The way to do it is like this:
$ dump_grants --host=SERVERNAME --check-domain=.My.Domain
REVOKE USAGE ON big.* FROM 'annmarie'@'%';
REVOKE USAGE ON *.* FROM 'root'@'horta';

The standard error will report the revokes suggested.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 1413

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Antoon Pardon | last post by:
Comments are welcome: http://www.pardon-sleeuwaegen.be/antoon/avltree.html
5
by: Ian Malone | last post by:
Hi, I'm wondering if it's possible for a document to contain a namespace which is a self-reference. e.g. in the following: <?xml version="1.0"?> <!DOCTYPE rdf:RDF > <rdf:RDF...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
0
by: ajayvaram | last post by:
Hi all, Im facing to write some XPATHs, My XML file as like as bellow.. <Plan...> ..... - <InvestmentAccount Id="InvestmentAccount01" Type="Post97NonPR" ...
0
by: Detlev Offenbach | last post by:
Hi, I am in the progress of writing a refactoring plugin for eric4 using the rope refactoring library. Unfortunately, this library does not contain a nice icon to be shown in an About Rope...
0
by: ajayvaram | last post by:
Hi all, Im facing to write some XPATHs, My XML file as like as bellow.. <Plan...> ..... - <InvestmentAccount Id="InvestmentAccount01" Type="Post97NonPR" ...
0
by: aj | last post by:
I wrote the following little *nix monitoring script when I needed to know more about a nocturnal critter that was grabbing too much CPU.. Perhaps you can use it. Just put something like this in...
1
by: MLH | last post by:
Douglas j.Steele contributed Wed, Aug 11 2004 6:15 pm. Replace$ is not available in A97. Chuck Grimsby took care of that with his airing of the JoeReplace FN. My Q here today is to Doug, in...
4
by: mskichu | last post by:
hi, I have a xml in which I want to replace the element(s) value with XSLT Xml message <Message> <case> <party1> <!-- there are other elements -->
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.