mysql_setpermission
This can be useful after transferring the files from a system with case-insensitive file names (such as
Windows) to a system with case-sensitive file names.
Invoke
mysql_fix_extensions
directory.
shell>
mysql_fix_extensions data_dir
4.6.15.
mysql_setpermission
Tables
mysql_setpermission
It interactively sets permissions in the MySQL grant tables.
Perl and requires that the
Installation
Notes").
Invoke
mysql_setpermission
shell>
mysql_setpermission [options]
should be either
options
connect to the MySQL server. The account used when you connect determines which permissions you
have when attempting to modify existing permissions in the grant tables.
mysql_setpermissions
file in your home directory, if the file exists.
.my.cnf
mysql_setpermission
•
--help
Display a help message and exit.
•
--host=host_name
Connect to the MySQL server on the given host.
•
--password=password
The password to use when connecting to the server. Note that the password value is not optional for
this option, unlike for other MySQL programs.
Specifying a password on the command line should be considered insecure. See
"End-User Guidelines for Password
password on the command line.
•
--port=port_num
The TCP/IP port number to use for the connection.
•
--socket=path
For connections to localhost, the Unix socket file to use.
•
--user=user_name
The MySQL user name to use when connecting to the server.
4.6.16.
mysql_tableinfo
mysql_tableinfo
DATABASES,
metadata.
like this, where
is a Perl script that was originally written and contributed by Luuk de Boer.
and
DBI
DBD::mysql
like this:
--help
also reads options from the
supports the following options:
[367]
[367]
[367]
[357]
[357]
[357]
— Generate Database Metadata
creates tables and populates them with database metadata. It uses
SHOW
TABLES,
SHOW TABLE
— Interactively Set Permissions in Grant Tables
data_dir
— Interactively Set Permissions in Grant
Perl modules be installed (see
[367]
to display the help message, or options that indicate how to
[client]
Security". You can use an option file to avoid giving the
STATUS,
SHOW
367
is the path name to the MySQL data
mysql_setpermission
Section 2.22, "Perl
and
groups in the
[perl]
COLUMNS, and
SHOW INDEX
is written in
Section 6.1.2.1,
SHOW
to obtain the
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers