Demo of MySQL5.1 installation-free version

Source: Internet
Author: User

The following articles mainly describe the actual installation of the MySQL installation-free version. We first download the MySQL database and decompress it to D: \ MySQL51, and then D: \ MySQL51 \ bin is added to the related system environment variable Path.

Then you need to configure the MySQL database, change the my-small.ini TO my. ini, other files can also be taken directly to modify the name), edit the file my. ini

 
 
  1. [client]  
  2. #password = your_password 
  3. port = 3306 
  4. socket = /tmp/MySQL.sock  
  5. default-character-set = utf8 
  6. [MySQLd]  
  7. port = 3306 
  8. socket = /tmp/MySQL.sock  
  9. default-character-set = utf8 
  10. basedir=D:/MySQL51  
  11. datadir=D:/MySQL51/data  
  12. default-storage-engine = MyISAM 

Other configurations in MySQL5.1 installation without installation will not change. The default character encoding for clients and servers is utf8default-character-set = utf8); the MySQL installation directory and database save directory are configured, and the default database engine is MyISAM.

Run CMD to start the command line tool.

Input: MySQLd to start the service. Input MySQLd -- console to view the log output on the console ).

CMS starts the command line tool.

Enter MySQL-u root to log on to the database server. The password is blank by default. You can also set it in the configuration file. If the password is set, enter MySQL-u root-p, the next step is to enter the password. If the database runs on another server, enter MySQL-h ***. ***-u root-p. * **. ** Is the IP address or domain name of the database server.

The above content is an introduction to the installation of the free installation version of MySQL5.1. I hope you will have some gains.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.