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

    564 MySQL Technical Reference for Version 4.0.3 mysql_change_user() fails unless the connected user can be authenticated or if he doesn't have permission to use the database.  In this case the user and database are not changed The db parameter may be set to NULL if you don't want to have a default database. Return Values Zero for success.  Non-zero if an error occurred. Errors The same that you can get from mysql_real_connect(). CR_COMMANDS_OUT_OF_SYNC Commands were executed in an improper order. CR_SERVER_GONE_ERROR The MySQL server has gone away. CR_SERVER_LOST The connection to the server was lost during the query. CR_UNKNOWN_ERROR An unknown error occurred. ER_UNKNOWN_COM_ERROR The MySQL server doesn't implement this command (probably an old server) ER_ACCESS_DENIED_ERROR The user or password was wrong. ER_BAD_DB_ERROR The database didn't exist. ER_DBACCESS_DENIED_ERROR The user did not have access rights to the database. ER_WRONG_DB_NAME The database name was too long. Example if (mysql_change_user(&mysql, "user", "password", "new_database")) { fprintf(stderr, "Failed to change user.   Error: %s\n", mysql_error(&mysql)); } 8.4.3.3  mysql_character_set_name() const char *mysql_character_set_name(MYSQL *mysql)
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    MERCHANT ACCOUNTS
    DEDICATED SERVERS
    E-COMMERCE HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN
    REGISTRATION
    MANAGE
    YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    Corporate Info
    ABOUT US
    OUR NETWORK
    CONTACT US
    SITE MAP
    Copyright © 2002 Dyntex Group, Inc. All Rights Reserved
  • 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