<< 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 191 If you want to use another database directory for the second server,  you can use the  -- datadir=path option to safe_mysqld. Note also that starting several MySQL servers (mysqlds) in di erent machines and letting them access one data directory over NFS is generally a bad idea!  The problem is that the NFS  will become the bottleneck with the speed.  It is not meant for such use.  And last but not least, you would still have to come up with a solution how to make sure that two or more mysqlds are not interfering with each other.  At the moment there is no platform that would 100% reliable do the le locking (lockd daemon usually) in every situation. Yet there would be one more possible risk with NFS; it would make the work even more complicated for lockd daemon to handle.  So make it easy for your self and forget about the idea.  The working solution is to have one computer with an operating system that eciently handles threads and have several CPUs in it. When you want to connect to a MySQL server that is running with a di erent port than the port that is compiled into your client, you can use one of the following methods:    Start   the   client   with   --host 'hostname' --port=port_number   to   connect   with TCP/IP, or [--host localhost] --socket=file_name to connect via a Unix socket.    In your C or Perl programs, you can give the port or socket arguments when connecting to the MySQL server.    If your are using the Perl DBD::mysql module you can read the options from the MySQL option les.  See Section 4.1.2 [Option les], page 186. $dsn = "DBI:mysql:test;mysql_read_default_group=client; mysql_read_default_file=/usr/local/mysql/data/my.cnf" $dbh = DBI->connect($dsn, $user, $password);    Set the MYSQL_UNIX_PORT and MYSQL_TCP_PORT environment variables to point to the Unix  socket  and  TCP/IP  port  before  you  start  your  clients.   If  you  normally  use  a speci c socket or port, you should place commands to set these environment variables in your `.login' le.  See Appendix F [Environment variables], page 770.    Specify the default socket and TCP/IP port in the `.my.cnf' le in your home directory. See Section 4.1.2 [Option les], page 186. 4.2  General Security Issues and the MySQL Access Privilege System MySQL has an advanced but non-standard security/privilege system. This section describes how it works. 4.2.1  General Security Guidelines Anyone using MySQL on a computer connected to the Internet should read this section to avoid the most common security mistakes. In discussing security, we emphasize the necessity of fully protecting the entire server host (not  simply  the  MySQL  server)  against  all  types  of  applicable  attacks:   eavesdropping,
     

    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