<< 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 8:  MySQL APIs 607    Put  common  options  in  the  [server]  section.   These  will  be  read  by  both  MySQL versions.    Put client/server speci c options in the [mysqld] section.    Put embedded MySQL speci c options in the [embedded] section.    Put application speci c options in a [ApplicationName_SERVER] section. 8.4.9.5  Things left to do in Embedded Server (TODO)    Currently we only provide a static version of the  mysqld  library, in the future we will also provide a shared library for this.    We are going to provide options to leave out some parts of MySQL to make the library smaller.    There is still a lot of speed optimisation to do.    Errors are written to stderr.  We will add an option to specify a lename for these.    We have to change InnoDB to not be so verbose when using in the embedded version. 8.4.9.6  A Simple Embedded Server Example This example program and make le should work without any changes on a Linux or FreeBSD system.   For  other  operating  systems,  minor  changes  will  be  needed.   This  example  is designed to give enough details to understand the problem, without the clutter that is a necessary part of a real application. To  try  out  the  example,  create  an  `test_libmysqld'  directory  at  the  same  level  as  the mysql-4.0 source directory.  Save the `test_libmysqld.c' source and the `GNUmakefile' in the directory, and run GNU `make' from inside the `test_libmysqld' directory. `test_libmysqld.c' /* * A simple example client, using the embedded MySQL server library */ #include <mysql.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> MYSQL *db_connect(const char *dbname); void db_disconnect(MYSQL *db); void db_do_query(MYSQL *db, const char *query); const char *server_groups[] = { "test_libmysqld_SERVER", "embedded", "server", NULL };
     

    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