At 03:24 AM 28/11/2000, you wrote:
>what is the exact command/query to flush privileges? using mysql client or
>mysqladmin?


mysqladmin reload



   reload                Reload grant tables




[darryl@slab darryl]$ mysqladmin
mysqladmin  Ver 7.11 Distrib 3.22.27, for pc-linux-gnu on i686
TCX Datakonsult AB, by Monty
This software comes with NO WARRANTY: see the file PUBLIC for details.

Administer program for the mysqld demon
Usage: mysqladmin [OPTIONS] command command....

   -#, --debug=...       Output debug log. Often this is 'd:t:o,filename`
   -f, --force           Don't ask for confirmation on drop database; with
                         multiple commands, continue even if an error occurs
   -?, --help            Display this help and exit
   -C, --compress        Use compression in server/client protocol
   -h, --host=#          Connect to host
   -p, --password[=...]  Password to use when connecting to server
                         If password is not given it's asked from the tty
   -P  --port=...        Port number to use for connection
   -i, --sleep=sec       Execute commands again and again with a sleep between
   -s, --silent          Silently exit if one can't connect to server
   -S, --socket=...      Socket file to use for connection
   -t, --timeout=...     Timeout for connection to the mysqld server
   -u, --user=#          User for login if not current user
   -V, --version         Output version information and exit
   -w, --wait[=retries]  Wait and retry if connection is down

Where command is a one or more of: (Commands may be shortened)
   create databasename   Create a new database
   drop databasename     Delete a database and all its tables
   extended-status       Gives an extended status message from the server
   flush-hosts           Flush all cached hosts
   flush-logs            Flush all logs
   flush-status          Clear status variables
   flush-tables          Flush all tables
   flush-privileges      Reload grant tables (same as reload)
   kill id,id,...        Kill mysql threads
   password new-password Change old password to new-password
   ping                  Check if mysqld is alive
   processlist           Show list of active threads in server
   reload                Reload grant tables
   refresh               Flush all tables and close and open logfiles
   shutdown              Take server down
   status                Gives a short status message from the server
   variables             Prints variables available
   version               Get version info from server


Rgds,
darryl



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to