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

    106 MySQL Technical Reference for Version 4.0.3 shell> mkdir DUMPDIR shell> mysqldump --tab=DUMPDIR db_name Then  transfer  the   les  in  the  DUMPDIR  directory  to  some  corresponding  directory  on  the target machine and load the les into MySQL there: shell> mysqladmin create db_name # create database shell> cat DUMPDIR/*.sql | mysql db_name # create tables in database shell> mysqlimport db_name DUMPDIR/*.txt # load data into tables Also, don't forget to copy the mysql database because that's where the grant tables (user, dbhost) are stored.  You may have to run commands as the MySQL root user on the new machine until you have the mysql database in place. After  you  import  the  mysql  database  on  the  new  machine,  execute  mysqladmin flush- privileges so that the server reloads the grant table information. 2.6  Operating System Speci c Notes 2.6.1  Linux Notes (All Linux Versions) The following notes regarding glibc apply only to the situation when you build MySQL yourself.  If you are running Linux on an x86 machine, in most cases it is much better for you to just use our binary.  We link our binaries against the best patched version of glibc we can come up with and with the best compiler options, in an attempt to make it suitable for a high-load server.  So if you read the following text, and are in doubt about what you should do, try our binary rst to see if it meets your needs, and worry about your own build only after you have discovered that our binary is not good enough.  In that case, we would appreciate a note about it, so we can build a better binary next time.  For a typical user, even for setups with a lot of concurrent connections and/or tables exceeding the 2G limit, our binary in most cases is the best choice. MySQL uses LinuxThreads on Linux.  If you are using an old Linux version that doesn't have glibc2, you must install LinuxThreads before trying to compile MySQL. You can get LinuxThreads at http://www.mysql.com/Downloads/Linux/. Note: we have seen some strange problems with Linux 2.2.14 and MySQL on SMP systems. If you have a SMP system, we recommend you upgrade to Linux 2.4 as soon as possible! Your system will be faster and more stable by doing this! Note that glibc versions before and including Version 2.1.1 have a fatal bug in pthread_ mutex_timedwait  handling, which is used when you do  INSERT DELAYED.  We recommend that you not use INSERT DELAYED before upgrading glibc. If you plan to have 1000+ concurrent connections, you will need to make some changes to LinuxThreads, recompile it, and relink MySQL against the new `libpthread.a'.  Increase PTHREAD_THREADS_MAX in `sysdeps/unix/sysv/linux/bits/local_lim.h' to 4096 and de- crease STACK_SIZE in `linuxthreads/internals.h' to 256 KB. The paths are relative to the root of glibc Note that MySQL will not be stable with around 600-1000 connections if STACK_SIZE is the default of 2 MB.
     

    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