Lamp_01_win under Install configuration MySQL

Source: Internet
Author: User

1. Unzip MySQL server to D drive
Configuring Environment variables
Mysql_home D:\J2EE\apache-ant-1.9.7
PATH%mysql_home%\bin;


2. Modify the MySQL boot configuration file
My-default.ini
Note Copy the backup and then modify
Basedir = d:\\j2ee\\mysql-5.7.14-winx64
DataDir = D:\\j2ee\\mysql-5.7.14-winx64/data
Port = 3306


3. Installing the MySQL Service
Run command prompt cmd as Administrator and note that the directory will be in the MySQL bin directory

4. Start the MySQL service
Input net start MySQL
Discovery failed to start

The reason is that the version does not have the data directory initialized to generate the data directory by default
Mysqld--initialize-insecure automatically generate password-free root users
Start again, service started successfully

5.Test
Mysqlshow-u root MySQL to see if MySQL is configured successfully

6. Change the MySQL password
Mysqladmin-u root password "root";
Log in to MySQL

7. View the database

See only the SYS database on Workbench

Lamp_01_win under Install configuration MySQL

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.