MySQL installation configuration uses

Source: Internet
Author: User
Tags mysql client mysql delete

Compressed version

Download the Oracle website mysql compression pack

I use 64 bits.

1, extract to the specified directory disk such as: C:\mysql\mysql-5.7.10-winx64

2, new My.ini under Configuration directory

The contents are as follows:

[MySQL]

# Set the MySQL client default character set

Default-character-set=utf8

[Mysqld]

#设置3306端口

Port = 3306

# set up the MySQL installation directory

Basedir=c:\mysql\mysql-5.7.10-winx64

# Set up a storage directory for MySQL database data

Datadir=c:\mysql\mysql-5.7.10-winx64\data

Tmpdir=c:\mysql\mysql-5.7.10-winx64\data

# Maximum number of connections allowed

max_connections=200

# The character set used by the service side defaults to the 8-bit encoded latin1 character set

Character-set-server=utf8

# The default storage engine that will be used when creating a new table

Default-storage-engine=innodb

3. Start MySQL

Configure environment variables Path C:\mysql\mysql-5.7.10-winx64\bin;

Cmd.exe Run as Administrator

Execute command: CD C:\mysql\mysql-5.7.10-winx64\bin

Mysqld Install

net start MySQL

Mysql-u root-p

If the error can be performed for several reasons,

The following are the first steps to start MySQL before building a table in the library do the Operation

Turn off the service Windows Task Manager process Mysqld.exe whether it exists or not, delete

Uninitialized then performs a shutdown of the service net stop MySQL and then initializes the Mysqld initialize

It's still not working. net stop MySQL Delete mysqld-remove re-engage

Re-Mysqld-install

Login failure password Forget to wait for the fundamental login not to directly recharge the password set empty in to re-engage

Turn off service net stop MySQL and then execute mysqld--skip-grant-tables--user=root

Login Mysql-uroot set root password to root(set your own remembered password)

Mysql>set PASSWORD for ' root ' @ ' localhost ' = PASSWORD ('root');

Forgot password

mysqladmin-u root password Oldpass "root" is done.


MySQL installation configuration uses

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.