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

    194 MySQL Technical Reference for Version 4.0.3    Use a PreparedStatement object and placeholders.    Do not transmit plain (unencrypted) data over the Internet.  These data are accessible to  everyone  who  has  the  time  and  ability  to  intercept  it  and  use  it  for  their  own purposes.  Instead, use an encrypted protocol such as SSL or SSH. MySQL supports internal SSL connections as of Version 4.0.0. SSH port-forwarding can be used to create an encrypted (and compressed) tunnel for the communication.    Learn to use the tcpdump and strings utilities.  For most cases, you can check whether MySQL data streams are unencrypted by issuing a command like the following: shell> tcpdump -l -i eth0 -w - src or dst port 3306 | strings (This works under Linux and should work with small modi cations under other sys- tems.)  Warning:  If you do not see data this doesn't always actually mean that it is encrypted.  If you need high security, you should consult with a security expert. 4.2.2  How to Make MySQL Secure Against Crackers When you connect to a MySQL server, you normally should use a password.  The password is not transmitted in clear text over the connection, however the encryption algorithm is not very strong, and with some e ort a clever attacker can crack the password if he is able to sni the trac between the client and the server.  If the connection between the client and the server goes through an untrusted network, you should use an SSH tunnel to encrypt the communication. All  other  information  is  transferred  as  text  that  can  be  read  by  anyone  who  is  able  to watch  the  connection.    If  you  are  concerned  about  this,  you  can  use  the  compressed protocol  (in  MySQL  Version  3.22  and  above)  to  make  things  much  harder.    To  make things even more secure you should use  ssh.  You can nd an Open Source ssh client at http://www.openssh.org/, and a commercial ssh client at http://www.ssh.com/.  With this, you can get an encrypted TCP/IP connection between a MySQL server and a MySQL client. If you are using MySQL 4.0, you can also use internal OpenSSL support.  See Section 4.3.9 [Secure connections], page 225. To make a MySQL system secure, you should strongly consider the following suggestions:    Use passwords for all MySQL users.  Remember that anyone can log in as any other person as simply as mysql -u other_user db_name if other_user has no password.  It is common behaviour with client/server applications that the client may specify any user name.  You can change the password of all users by editing the mysql_install_db script before you run it, or only the password for the MySQL root user like this: shell> mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD('new_password') -> WHERE user='root'; mysql> FLUSH PRIVILEGES;    Don't run the MySQL daemon as the Unix root user.  This is very dangerous, because any  user  with  the  FILE  privilege  will  be  able  to  create   les  as  root  (for  example, ~root/.bashrc). To prevent this, mysqld will refuse to run as root unless it is speci ed directly using a --user=root option.
     

    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