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

    144 MySQL Technical Reference for Version 4.0.3 3  Tutorial Introduction This chapter provides a tutorial introduction to MySQL by showing how to use the mysql client program to create and use a simple database.  mysql  (sometimes referred to as the \terminal monitor" or just \monitor") is an interactive program that allows you to connect to a MySQL server, run queries, and view the results.   mysql  may also be used in batch mode:  you place your queries in a le beforehand, then tell mysql to execute the contents of the le.  Both ways of using mysql are covered here. To see a list of options provided by mysql, invoke it with the --help option: shell> mysql --help This chapter assumes that mysql is installed on your machine and that a MySQL server is available to which you can connect.  If this is not true, contact your MySQL administrator. (If you are the administrator, you will need to consult other sections of this manual.) This chapter describes the entire process of setting up and using a database.   If you are interested only in accessing an already-existing database,  you may want to skip over the sections that describe how to create the database and the tables it contains. Because this chapter is tutorial in nature, many details are necessarily left out.  Consult the relevant sections of the manual for more information on the topics covered here. 3.1  Connecting to and Disconnecting from the Server To  connect  to  the  server,  you'll  usually  need  to  provide  a  MySQL  user  name  when  you invoke mysql and, most likely, a password.  If the server runs on a machine other than the one where you log in, you'll also need to specify a hostname.  Contact your administrator to nd out what connection parameters you should use to connect (that is, what host, user name, and password to use).  Once you know the proper parameters, you should be able to connect like this: shell> mysql -h host -u user -p Enter password: ******** The ******** represents your password; enter it when mysql displays the Enter password: prompt. If that works, you should see some introductory information followed by a mysql> prompt: shell> mysql -h host -u user -p Enter password: ******** Welcome to the MySQL monitor.   Commands end with ; or \g. Your MySQL connection id is 459 to server version: 3.22.20a-log Type 'help' for help. mysql> The prompt tells you that mysql is ready for you to enter commands.
     

    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