<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    216 MySQL Technical Reference for Version 4.0.3 MAX_QUERIES_PER_HOUR #,   MAX_UPDATES_PER_HOUR #  and  MAX_CONNECTIONS_PER_HOUR # are new in MySQL version 4.0.2.  These options limit the number of queries/updates and logins the user can do during one hour.  If # is 0 (default), then this means that there are no limitations for that user.  See Section 4.3.6 [User resources], page 222. You cannot grant another user a privilege you don't have yourself; the GRANT privilege allows you to give away only those privileges you possess. Be  aware  that  when  you  grant  a  user  the  GRANT  privilege  at  a  particular  privilege  level, any privileges the user already possesses (or is given in the future!)  at that level are also grantable by that user.  Suppose you grant a user the INSERT privilege on a database.  If you then grant the SELECT privilege on the database and specify WITH GRANT OPTION, the user can give away not only the SELECT privilege, but also INSERT.  If you then grant the UPDATE  privilege to the user on the database, the user can give away the  INSERT,  SELECT and UPDATE. You should not grant ALTER privileges to a normal user.  If you do that, the user can try to subvert the privilege system by renaming tables! Note that if you are using table or column privileges for even one user, the server examines table and column privileges for all users and this will slow down MySQL a bit. When mysqld starts, all privileges are read into memory.  Database, table, and column priv- ileges take e ect at once, and user-level privileges take e ect the next time the user connects. Modi cations to the grant tables that you perform using GRANT or REVOKE are noticed by the server immediately.  If you modify the grant tables manually (using INSERT, UPDATE, etc.), you should execute a FLUSH PRIVILEGES statement or run mysqladmin flush-privileges to tell the server to reload the grant tables.  See Section 4.3.3 [Privilege changes], page 217. The biggest di erences between the ANSI SQL and MySQL versions of GRANT are:    In MySQL privileges are given for an username hostname combination and not only for an username.    ANSI  SQL  doesn't  have  global  or  database-level  privileges,  and  ANSI  SQL  doesn't support all privilege types that MySQL supports.  MySQL doesn't support the ANSI SQL TRIGGER or UNDER privileges.    ANSI SQL privileges are structured in a hierarchal manner.  If you remove an user, all privileges the user has granted are revoked.  In MySQL the granted privileges are not automatically revoked, but you have to revoke these yourself if needed.    In MySQL, if you have the  INSERT  privilege on only some of the columns in a table, you can execute INSERT statements on the table; the columns for which you don't have the INSERT privilege will be set to their default values.  ANSI SQL requires you to have the INSERT privilege on all columns.    When you drop a table in ANSI SQL, all privileges for the table are revoked.  If you revoke a privilege in ANSI SQL, all privileges that were granted based on this privilege are  also  revoked.   In  MySQL,  privileges  can  be  dropped  only  with  explicit  REVOKE commands or by manipulating the MySQL grant tables. For a description of using REQUIRE, see Section 4.3.9 [Secure connections], page 225. 4.3.2  MySQL User Names and Passwords
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN REGISTRATION
    MANAGE YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    SITE MAP
    Home
    Hosting Plans | Domain Registration | About Us | Contact Us | Site Map
    Terms of Use | Privacy Policy | Guarantees
    Merchant Accounts

    SpiritHost - web hosting for spiritual and education sites
    SpiritHit.com - Religious and Spiritual Portal
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide