Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ab8851d6
Commit
ab8851d6
authored
Apr 17, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi Use @strong{lowercasename} consistently to refer to privileges.
manual.texi Minor mods to OPTIMIZE TABLE section.
parent
2eae0325
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
31 deletions
+32
-31
Docs/manual.texi
Docs/manual.texi
+32
-31
No files found.
Docs/manual.texi
View file @
ab8851d6
...
@@ -14265,7 +14265,7 @@ Don't show databases for which the user doesn't have any privileges.
...
@@ -14265,7 +14265,7 @@ Don't show databases for which the user doesn't have any privileges.
@item --safe-user-create
@item --safe-user-create
If this is enabled, a user can't create new users with the GRANT
If this is enabled, a user can't create new users with the GRANT
command, if the user doesn't have @
code{INSERT
} privilege to the
command, if the user doesn't have @
strong{insert
} privilege to the
@code{mysql.user} table or any column in this table.
@code{mysql.user} table or any column in this table.
@item --skip-concurrent-insert
@item --skip-concurrent-insert
...
@@ -15002,7 +15002,7 @@ mysql> FLUSH PRIVILEGES;
...
@@ -15002,7 +15002,7 @@ mysql> FLUSH PRIVILEGES;
@item
@item
Don't run the MySQL daemon as the Unix @code{root} user. This is
Don't run the MySQL daemon as the Unix @code{root} user. This is
very dangerous, because any user with
@code{FILE} privileges
will be able
very dangerous, because any user with
the @strong{file} privilege
will be able
to create files as @code{root} (for example, @code{~root/.bashrc}). To
to create files as @code{root} (for example, @code{~root/.bashrc}). To
prevent this, @code{mysqld} will refuse to run as @code{root} unless it
prevent this, @code{mysqld} will refuse to run as @code{root} unless it
is specified directly using a @code{--user=root} option.
is specified directly using a @code{--user=root} option.
...
@@ -15091,7 +15091,7 @@ some kind of privilege.
...
@@ -15091,7 +15091,7 @@ some kind of privilege.
@item --safe-user-create
@item --safe-user-create
If this is enabled, an user can't create new users with the @code{GRANT}
If this is enabled, an user can't create new users with the @code{GRANT}
command, if the user doesn't have
@code{INSERT} privilege to
the
command, if the user doesn't have
the @strong{insert} privilege for
the
@code{mysql.user} table. If you want to give a user access to just create
@code{mysql.user} table. If you want to give a user access to just create
new users with those privileges that the user has right to grant, you should
new users with those privileges that the user has right to grant, you should
give the user the following privilege:
give the user the following privilege:
...
@@ -16620,11 +16620,11 @@ MySQL the granted privileges are not automatically revoked, but
...
@@ -16620,11 +16620,11 @@ MySQL the granted privileges are not automatically revoked, but
you have to revoke these yourself if needed.
you have to revoke these yourself if needed.
@item
@item
I
f you in MySQL have the @code{INSERT} grant on only part
of the
I
n MySQL, if you have the @strong{insert} privilege on only some
of the
columns in a table, you can execute @code{INSERT} statements on the
columns in a table, you can execute @code{INSERT} statements on the
table; The columns for which you don't have the @
code{INSERT
} privilege
table; The columns for which you don't have the @
strong{insert
} privilege
will set to their default values. ANSI SQL requires you to have the
will
be
set to their default values. ANSI SQL requires you to have the
@
code{INSERT
} privilege on all columns.
@
strong{insert
} privilege on all columns.
@item
@item
When you drop a table in ANSI SQL, all privileges for the table are revoked.
When you drop a table in ANSI SQL, all privileges for the table are revoked.
...
@@ -16916,7 +16916,7 @@ This allows the user to execute the @code{mysqladmin reload},
...
@@ -16916,7 +16916,7 @@ This allows the user to execute the @code{mysqladmin reload},
@item dummy
@item dummy
A user who can connect without a password, but only from the local host. The
A user who can connect without a password, but only from the local host. The
global privileges are all set to @code{'N'} --- the @
code{USAGE
} privilege
global privileges are all set to @code{'N'} --- the @
strong{usage
} privilege
type allows you to create a user with no privileges. It is assumed that you
type allows you to create a user with no privileges. It is assumed that you
will grant database-specific privileges later.
will grant database-specific privileges later.
@end table
@end table
...
@@ -18887,11 +18887,12 @@ Deleted records are maintained in a linked list and subsequent @code{INSERT}
...
@@ -18887,11 +18887,12 @@ Deleted records are maintained in a linked list and subsequent @code{INSERT}
operations reuse old record positions. You can use @code{OPTIMIZE TABLE} to
operations reuse old record positions. You can use @code{OPTIMIZE TABLE} to
reclaim the unused space and to defragment the data file.
reclaim the unused space and to defragment the data file.
For the moment @code{OPTIMIZE TABLE} only works on @code{MyISAM} and
For the moment
,
@code{OPTIMIZE TABLE} only works on @code{MyISAM} and
@code{BDB} tables. For @code{BDB} tables, @code{OPTIMIZE TABLE} is
@code{BDB} tables. For @code{BDB} tables, @code{OPTIMIZE TABLE} is
currently mapped to @code{ANALYZE TABLE}. @xref{ANALYZE TABLE}.
currently mapped to @code{ANALYZE TABLE}.
@xref{ANALYZE TABLE, , @code{ANALYZE TABLE}}.
You can get
optimise table
to work on other table types by starting
You can get
@code{OPTIMIZE TABLE}
to work on other table types by starting
@code{mysqld} with @code{--skip-new} or @code{--safe-mode}, but in this
@code{mysqld} with @code{--skip-new} or @code{--safe-mode}, but in this
case @code{OPTIMIZE TABLE} is just mapped to @code{ALTER TABLE}.
case @code{OPTIMIZE TABLE} is just mapped to @code{ALTER TABLE}.
...
@@ -18906,7 +18907,7 @@ If the statistics are not up to date (and the repair couldn't be done
...
@@ -18906,7 +18907,7 @@ If the statistics are not up to date (and the repair couldn't be done
by sorting the index), update them.
by sorting the index), update them.
@end itemize
@end itemize
@code{OPTIMIZE TABLE} for
@code{MyISAM} tables is equvialent of
running
@code{OPTIMIZE TABLE} for
a @code{MyISAM} table is equivalent to
running
@code{myisamchk --quick --check-only-changed --sort-index --analyze}
@code{myisamchk --quick --check-only-changed --sort-index --analyze}
on the table.
on the table.
...
@@ -18965,7 +18966,7 @@ FLUSH flush_option [,flush_option]
...
@@ -18965,7 +18966,7 @@ FLUSH flush_option [,flush_option]
You should use the @code{FLUSH} command if you want to clear some of the
You should use the @code{FLUSH} command if you want to clear some of the
internal caches MySQL uses. To execute @code{FLUSH}, you must have
internal caches MySQL uses. To execute @code{FLUSH}, you must have
the @strong{
RELOAD
} privilege.
the @strong{
reload
} privilege.
@code{flush_option} can be any of the following:
@code{flush_option} can be any of the following:
...
@@ -19951,7 +19952,7 @@ Is ON if we only allow local (socket) connections.
...
@@ -19951,7 +19952,7 @@ Is ON if we only allow local (socket) connections.
@item @code{skip_show_databases}
@item @code{skip_show_databases}
This prevents people from doing @code{SHOW DATABASES} if they don't have
This prevents people from doing @code{SHOW DATABASES} if they don't have
the @
code{Process_priv
} privilege. This can improve security if you're
the @
strong{process
} privilege. This can improve security if you're
concerned about people being able to see what databases other users
concerned about people being able to see what databases other users
have. See also @code{safe_show_databases}.
have. See also @code{safe_show_databases}.
...
@@ -20068,7 +20069,7 @@ the first 100 characters of each query will be shown.
...
@@ -20068,7 +20069,7 @@ the first 100 characters of each query will be shown.
This command is very useful if you get the 'too many connections' error
This command is very useful if you get the 'too many connections' error
message and want to find out what's going on. MySQL reserves
message and want to find out what's going on. MySQL reserves
one extra connection for a client with the @
code{Process_priv
} privilege
one extra connection for a client with the @
strong{process
} privilege
to ensure that you should always be able to login and check the system
to ensure that you should always be able to login and check the system
(assuming you are not giving this privilege to all your users).
(assuming you are not giving this privilege to all your users).
...
@@ -22602,8 +22603,8 @@ documentation for @code{mysqlhotcopy}.
...
@@ -22602,8 +22603,8 @@ documentation for @code{mysqlhotcopy}.
from the option files.
from the option files.
To be able to execute @code{mysqlhotcopy} you need write access to the
To be able to execute @code{mysqlhotcopy} you need write access to the
backup directory,
@code{SELECT} privilege to
the tables you are about to
backup directory,
the @strong{select} privilege for
the tables you are about to
copy and the MySQL @
code{R
eload} privilege (to be able to
copy and the MySQL @
strong{r
eload} privilege (to be able to
execute @code{FLUSH TABLES}).
execute @code{FLUSH TABLES}).
...
@@ -23465,8 +23466,8 @@ Update queries that use user variables are not replication-safe (yet).
...
@@ -23465,8 +23466,8 @@ Update queries that use user variables are not replication-safe (yet).
@code{FLUSH} commands are not stored in the binary log and are because
@code{FLUSH} commands are not stored in the binary log and are because
of this not replicated to the slaves. This is not normally a problem as
of this not replicated to the slaves. This is not normally a problem as
@code{FLUSH} doesn't change anything. This does however mean that if you
@code{FLUSH} doesn't change anything. This does however mean that if you
update the
@code{MySQL} privilege tables directly without using
update the
MySQL privilege tables directly without using the
@code{GRANT} statement and you replicate the @code{
MySQL
} privilege
@code{GRANT} statement and you replicate the @code{
mysql
} privilege
database, you must do a @code{FLUSH PRIVILEGES} on your slaves to put
database, you must do a @code{FLUSH PRIVILEGES} on your slaves to put
the new privileges into effect.
the new privileges into effect.
@item
@item
...
@@ -23685,7 +23686,7 @@ Example: @code{master-host=db-master.mycompany.com}.
...
@@ -23685,7 +23686,7 @@ Example: @code{master-host=db-master.mycompany.com}.
@item @code{master-user=username} @tab
@item @code{master-user=username} @tab
The username the slave thread will use for authentication when connecting to
The username the slave thread will use for authentication when connecting to
the master. The user must have
@code{FILE
} privilege. If the master user
the master. The user must have
the @strong{file
} privilege. If the master user
is not set, user @code{test} is assumed. The value in @code{master.info} will
is not set, user @code{test} is assumed. The value in @code{master.info} will
take precedence if it can be read.
take precedence if it can be read.
...
@@ -32586,7 +32587,7 @@ If no @code{key_string} argument is given, @code{DES_DECRYPT()} examines
...
@@ -32586,7 +32587,7 @@ If no @code{key_string} argument is given, @code{DES_DECRYPT()} examines
the first byte of the encrypted string to determine the DES key number
the first byte of the encrypted string to determine the DES key number
that was used to encrypt the original string, then reads the key
that was used to encrypt the original string, then reads the key
from the @code{des-key-file} to decrypt the message. For this to work
from the @code{des-key-file} to decrypt the message. For this to work
the user must have the @
code{Process_priv
} privilege.
the user must have the @
strong{process
} privilege.
If you pass this function a @code{key_string} argument, that string
If you pass this function a @code{key_string} argument, that string
is used as the key for decrypting the message.
is used as the key for decrypting the message.
...
@@ -35169,8 +35170,8 @@ to the data file, the @code{RAID} handler will map the first
...
@@ -35169,8 +35170,8 @@ to the data file, the @code{RAID} handler will map the first
@code{UNION} is used when you want to use a collection of identical
@code{UNION} is used when you want to use a collection of identical
tables as one. This only works with MERGE tables. @xref{MERGE}.
tables as one. This only works with MERGE tables. @xref{MERGE}.
For the moment you need to have @
code{SELECT}, @code{UPDATE
}, and
For the moment you need to have @
strong{select}, @strong{update
}, and
@
code{DELETE
} privileges on the tables you map to a @code{MERGE} table.
@
strong{delete
} privileges on the tables you map to a @code{MERGE} table.
All mapped tables must be in the same database as the @code{MERGE} table.
All mapped tables must be in the same database as the @code{MERGE} table.
@item
@item
...
@@ -35308,8 +35309,8 @@ normally do @code{ALTER TABLE} that often this isn't that high on our TODO.
...
@@ -35308,8 +35309,8 @@ normally do @code{ALTER TABLE} that often this isn't that high on our TODO.
@itemize @bullet
@itemize @bullet
@item
@item
To use @code{ALTER TABLE}, you need @strong{
ALTER}, @strong{INSERT
},
To use @code{ALTER TABLE}, you need @strong{
alter}, @strong{insert
},
and @strong{
CREATE
} privileges on the table.
and @strong{
create
} privileges on the table.
@item
@item
@code{IGNORE} is a MySQL extension to ANSI SQL92.
@code{IGNORE} is a MySQL extension to ANSI SQL92.
...
@@ -35973,7 +35974,7 @@ The default behavior is to set the isolation level for the next (not started)
...
@@ -35973,7 +35974,7 @@ The default behavior is to set the isolation level for the next (not started)
transaction.
transaction.
If you set the @code{GLOBAL} privilege it will affect all new created threads.
If you set the @code{GLOBAL} privilege it will affect all new created threads.
You will need the @
code{PROCESS
} privilege to do do this.
You will need the @
strong{process
} privilege to do do this.
Setting the @code{SESSION} privilege will affect the following and all
Setting the @code{SESSION} privilege will affect the following and all
future transactions.
future transactions.
...
@@ -37144,8 +37145,8 @@ contains a list of the index files (@file{.MYI} files) that should
...
@@ -37144,8 +37145,8 @@ contains a list of the index files (@file{.MYI} files) that should
be used as one. All used tables must be in the same database as the
be used as one. All used tables must be in the same database as the
@code{MERGE} table itself.
@code{MERGE} table itself.
For the moment
you need to have @code{SELECT}, @code{UPDATE
}, and
For the moment
, you need to have @strong{select}, @strong{update
}, and
@
code{DELETE
} privileges on the tables you map to a @code{MERGE} table.
@
strong{delete
} privileges on the tables you map to a @code{MERGE} table.
@code{MERGE} tables can help you solve the following problems:
@code{MERGE} tables can help you solve the following problems:
...
@@ -49843,7 +49844,7 @@ Fixed problem with @code{UPDATE} and @code{BDB} tables.
...
@@ -49843,7 +49844,7 @@ Fixed problem with @code{UPDATE} and @code{BDB} tables.
Fixed hard bug in @code{BDB} tables when using key parts.
Fixed hard bug in @code{BDB} tables when using key parts.
@item
@item
Fixed problem when using @code{GRANT FILE ON database.* ...}; previously
Fixed problem when using @code{GRANT FILE ON database.* ...}; previously
we added the @
code{DROP
} privilege for the database.
we added the @
strong{drop
} privilege for the database.
@item
@item
Fixed @code{DELETE FROM tbl_name ... LIMIT 0} and
Fixed @code{DELETE FROM tbl_name ... LIMIT 0} and
@code{UPDATE FROM tbl_name ... LIMIT 0}, which acted as though the
@code{UPDATE FROM tbl_name ... LIMIT 0}, which acted as though the
...
@@ -52875,7 +52876,7 @@ Changed optimiser to make it better at deciding when to do a full join
...
@@ -52875,7 +52876,7 @@ Changed optimiser to make it better at deciding when to do a full join
and when using keys.
and when using keys.
@item
@item
You can now use @code{mysqladmin proc} to display information about your own
You can now use @code{mysqladmin proc} to display information about your own
threads. Only users with the @
code{Process_priv
} privilege can get
threads. Only users with the @
strong{process
} privilege can get
information about all threads.
information about all threads.
@item
@item
Added handling of formats @code{YYMMDD}, @code{YYYYMMDD},
Added handling of formats @code{YYMMDD}, @code{YYYYMMDD},
...
@@ -54351,7 +54352,7 @@ memory. Also added more checks to handle ``out of memory'' problems.
...
@@ -54351,7 +54352,7 @@ memory. Also added more checks to handle ``out of memory'' problems.
multiple threads.
multiple threads.
@item
@item
When the maximum connection limit is reached, one extra connection by a user
When the maximum connection limit is reached, one extra connection by a user
with the @strong{
PROCESS_ACL
} privilege is granted.
with the @strong{
process_acl
} privilege is granted.
@item
@item
Added @code{-O backlog=#} option to @code{mysqld}.
Added @code{-O backlog=#} option to @code{mysqld}.
@item
@item
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment