Installation configuration for MySQL

Source: Internet
Author: User

1. Installation
Download the installation files from the official website to E:\mysql
Open E:\mysql\my-default.ini, add the following lines at the end, and save as E:\mysql\my.ini

#--------------------------------------------------------[mysqld]basedir=e:/mysqldatadir=e:/ mysql/dataport=3306character_set_server=utf8[winmysqladmin]server=e:/mysql /bin/mysqld.exe#default-character-set=utf8[client]default-character-set=utf8#------ --------------------------------------------------
View Code

2. Configuration service (command line must run as Administrator)
1) Add MySQL to the service
switching paths, adding services

--Install MySQL--defaults-file="E:\mysql\my.ini"
View Code

Enter services.msc in the command line to see that MySQL has been added to the services
2) Start the service
net start MySQL
3) Stop the service
net stop MySQL
4) Delete Service
Mysqld–remove
3. Environment variables
Add E:\mysql\bin to Path
4. Operation
Log in to the database:
C:\users\uest>mysql-u root-p
Enter Password: * * * (password initial value can be set to root or empty)
...
To change the root password:
Mysql>use MySQL;
Mysql>update user Set Password=password (' NewPassword ') where user= ' root ';
Mysql>flush privileges;

Installation configuration for 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.