Install mysql in windows and windowsmysql

Source: Internet
Author: User

Install mysql in windows and windowsmysql
1. First, we need to download a mysql instance. Find the official elasticsearch download page and click the link to open it. Then we can find several types of data:MySQL Enterprise Edition,MySQL Cluster CGE,MySQL Community Edition (GPL), one of the first two is the Enterprise Edition, one is the cluster type, the last is the Community version, the first two are paid, of course, we choose to connect to the Community version, then we found that there are still many options, of course, they are free of charge. We chose "MySQL Community Server (GPL)", and then we chose the microsoft windows operating system, there are three versions available for us to choose, mySQL Installer versions, and then click Download. There is nothing to say. 2. decompress and configure 3 install start open command line, cd to the decompressed bin directory, then run mysqld-install, and then prompt "service successfully installed", indicating that the installation is successful. Then, net start mysql prompts "MySQL service is starting MySQL service successfully ". 4. Perform basic operations on the command line cd to the bin directory, and then input mysql to access the command line for operations. A. enter> mysql-u root-p press Enter (prompt) Enter password: Press Enter (Enter password blank) mysql> (wait for input, it indicates it has entered) B. view the Configuration port: mysql> show variables like 'Port'; datadir (data storage directory): mysql> show variables like 'datadir ': c. the database displays mysql> show databases; create mysql> create database db1; (prompt) query OK, 1 row affected (0.06sec)

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.