Win7 64-bit mysql 5.7 download and installation FAQ, win75.7

Source: Internet
Author: User

Win7 64-bit mysql 5.7 download and installation FAQ, win75.7

1. Download MySQL from the official website:

This is what we are looking for, win7 64-bit

Click to download;

Yes, we do not need to log on to the registration. Just click the one in the red line.

2. installation and configuration:

Decompress the package to the local Folder:

Go to the directory and copy the my-default.ini file and rename it my. ini

Open my. ini for configuration

Code: (Change D: \ mysql \ mysql-5.6.17-winx64 to your own software path, save)

[Mysql] # set the default character set of the mysql client default-character-set = utf8 [mysqld] # set port 3306 = 3306 # set the mysql installation directory basedir = E: \ mysql \ mysql-5.7.11-winx64 # Set the storage directory of mysql database data datadir = E: \ mysql \ mysql-5.7.11-winx64 \ data (the data directory is not installed) # maximum number of connections allowed max_connections = 200 # The default character set used by the server is the 8-bit latin1 character set character-set-server = utf8 # The default storage engine used when creating a new table -engine = INNODB

Save and exit;

3. Go to the cmd command line to install mysql (run as an administrator; otherwise, access will fail)

Go to the bin directory of mysql.

Enter mysqld-install for Installation

Initialization is performed if no data file exists in the mysql directory.

Enter mysqld-initialize-insecure to automatically generate a password-less root user and generate a data folder.

Enter mysqld-initialize to automatically generate a root user with a random password.

(Note: This command cannot be executed if the data folder exists. You can delete all folders in the data directory first)

This completes the installation,

Enter net start mysql to start the service, and then you can log on to the database.

In the new mysql 5.7 version

This problem may occur, or the data folder does not exist.

Modify the root user password

Method 1: use the set password command

First, log on to MySQL.

Format: mysql> set password for username @ localhost = password ('new password ');

Example: mysql> set password for root @ localhost = password ('admin10000. com ');

In the preceding example, change the User root Password to admin).com.

Method 2: Use mysqladmin

Format: mysqladmin-u username-p old password New password

Example: mysqladmin-uroot-p123456 password admin).com

In the preceding example, change the user's original root password 123456 to the new password admin).com.

Method 3: Use UPDATE to directly edit the user table

First, log on to MySQL.

mysql> use mysql;mysql>update user set password=password(‘admin10000.com')where user='root' and host='localhost';mysql>flush privileges;

Method 4: When you forget the root password, you can.

Take windows as an example:

1. Disable the running MySQL service.

2. Open the DOS window and go to the mysql \ bin directory.

3. Enter mysqld-skip-grant-tables and press Enter. -Skip-grant-tables indicates that the permission table authentication is skipped when the MySQL service is started.

4. Open another DOS window (because the DOS window can no longer be moved) and go to the mysql \ bin directory.

5. Enter mysql and press Enter. If yes, the MySQL prompt> will appear.

6. Connect to the permission Database: use mysql ;.

6. Change the password: update user set password = password ("admin).com") where user = "root"; (do not forget the last plus points ).

7. Refresh permission (required): flush privileges ;.

8. Exit quit.

9. log out of the system and log on again. Log On with the username root and the new password admin).com.

The above is a summary of frequently asked questions about downloading and installing Win7 64-bit mysql 5.7. I hope it will be helpful to you. If you have any questions, please leave a message for me, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.