Windows 2012 install MySQL 5.7.22 Enterprise Edition

Source: Internet
Author: User

I. Environment description Operating system: Windows 2012 database: MySQL 5.7.12 Enterprise Edition II, Operation Step 1, planning MySQL installation files are stored in D:\mysql, the data directory is E:MYSQLDATA2, the configuration file location is d:\mysql\ My.ini content is as follows: [mysqld] port = 3306 basedir= d:\mysqldatadir= e:\mysqldatamax_connections=500 Character-set-server=utf8 Default-storage-engine=innodb sql_mode=no_engine_substitution,strict_trans_tables [MySQL] default-character-set= UTF83, installation service C:\USERS\ADMIN>D:D:\>CD Mysql\bind:\mysql\bin>.\mysqld-install 4, initialize Mysql.\mysqld-- Initialize-insecure--user=mysql5, start service d:\mysql\bin>net start Mysqlmysql service is starting. The MySQL service has started successfully. 6, Login database D:\mysql\bin>mysql-uroot-penter password:welcome to the MySQL monitor. Commands End With; or \g.your MySQL connection ID is 2Server version:5.7.22 mysql Community Server (GPL) Copyright (c) #, 2018, Oracle and /or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names trademarks of their respectiveowners. Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current INput statement.mysql>7, change password use mysql;update mysql.user set Authentication_string=password (' qwe12345 ') where user= ' Root ' and Host = ' localhost '; flush privileges;8, Shutdown service d:\mysql\bin>net Stop Mysqlmysql service is stopping. The MySQL service has stopped successfully.

Windows 2012 install MySQL 5.7.22 Enterprise Edition

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.