<< 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

    Chapter 4:  Database Administration 197 There are two separate xes for this: If you don't con gure MySQL with  --enable-local-infile, then  LOAD DATA LOCAL  will be disabled by all clients, unless one calls mysql_options(... MYSQL_OPT_LOCAL_INFILE, 0) in the client.  See Section 8.4.3.38 [mysql_options()], page 586. For  the  mysql  command-line  client,  LOAD DATA LOCAL  can  be  enabled  by  specifying  the option --local-infile[=1], or disabled with --local-infile=0. By default, all MySQL clients and libraries are compiled with --enable-local-infile, to be compatible with MySQL 3.23.48 and before. One can disable all LOAD DATA LOCAL commands in the MySQL server by starting mysqld with --local-infile=0. In the case that LOAD DATA LOCAL INFILE is disabled in the server or the client, you will get the error message (1148): The used command is not allowed with this MySQL version 4.2.5  What the Privilege System Does The primary function of the MySQL privilege system is to authenticate a user connecting from a given host, and to associate that user with privileges on a database such as SELECT, INSERT, UPDATE and DELETE. Additional functionality includes the ability to have an anonymous user and to grant priv- ileges for MySQL-speci c functions such as  LOAD DATA INFILE  and administrative opera- tions. 4.2.6  How the Privilege System Works The MySQL privilege system ensures that all users may do exactly the things that they are supposed to be allowed to do.   When you connect to a MySQL server,  your identity is determined by  the host from which you connect  and  the user name you specify.   The system grants privileges according to your identity and what you want to do. MySQL considers both your hostname and user name in identifying you because there is little reason to assume that a given user name belongs to the same person everywhere on the Internet.  For example, the user  joe  who connects from  office.com  need not be the same person as the user joe who connects from elsewhere.com.  MySQL handles this by allowing you to distinguish users on di erent hosts that happen to have the same name: you can grant  joe  one set of privileges for connections from  office.com, and a di erent set of privileges for connections from elsewhere.com. MySQL access control involves two stages:    Stage 1:  The server checks whether you are even allowed to connect.    Stage 2:  Assuming you can connect,  the server checks each request you issue to see whether you have sucient privileges to perform it.  For example, if you try to select rows from a table in a database or drop a table from the database, the server makes sure you have the SELECT privilege for the table or the DROP privilege for the database.
     

    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