mysql 5.7.18 winx64 free installation configuration method

mysql 5.7.18 winx64 free installation configuration method

1. Download

2. Decompression

3. Add the path environment variable, and point the path to the bin directory where mysql is located

4. Create a data folder in the main directory

5. Register Windows system services

Create a new my.ini file and copy it to the c:\windows directory. The content is as follows:

[client]
port=3306
default-character-set=utf8
[mysqld] 
# Set to the installation directory of MYSQL basedir=C:\_04Tools\mysql-5.7.18-winx64
# Set to the MYSQL data directory datadir=C:\_04Tools\mysql-5.7.18-winx64\data
port=3306
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
# Enable query cache explicit_defaults_for_timestamp=true

Open cm, enter the mysql bin directory, and enter the service installation command:

 mysqld -install

If Install/Remove of the Service Denied! appears, go to C:\Window\System32, find CMD.EXE, right-click and choose to run as administrator, then go to the corresponding directory and execute the command, and everything will be OK.

6. Start MySQL service

Order:

net start mysql

If an error occurs, find the .rr file in the data directory to view the specific error information. Remember to clear the contents of the data directory after fixing the error.

If the above command still fails, try mysqld --initilize --user=mysql --datadir=data

Or enable the service via Control Panel --> Administrative Tools --> Services.

7. Change the root password

set password for root@localhost = password('123');

After successfully changing the password, log in: mysql -u root -p, enter password

If an error occurs: mysql access denied for user 'root'@'localhost' (using password: YES), add the following to the last line of the my.ini file:

 skip-grant-tables

After restarting the service, log in again and succeed

The above is the MySQL 5.7.18 winx64 free installation configuration method introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • MySQL 5.7.21 winx64 free installation version configuration method graphic tutorial
  • win10 mysql 5.6.35 winx64 free installation version configuration tutorial
  • MySQL 5.7.17 winx64 free installation version configuration method graphic tutorial
  • Mysql 5.7.17 winx64 free installation version, installation and configuration graphic tutorial under win10 environment
  • MySql 5.6.14 winx64 configuration method (free installation version)
  • MySql 8.0.11-Winxp64 (free installation version) configuration tutorial

<<:  Handwritten Vue2.0 data hijacking example

>>:  Summary of common commands in Dockerfile

Recommend

Detailed installation and use of docker-compose

Docker Compose is a Docker tool for defining and ...

HTML weight loss Streamline HTML tags to create web pages

HTML 4 HTML (not XHTML), MIME type is text/html, ...

Various methods to implement the prompt function of text box in html

You can use the attribute in HTML5 <input="...

Vue.js implements calendar function

This article example shares the specific code of ...

JavaScript selector functions querySelector and querySelectorAll

Table of contents 1. querySelector queries a sing...

Solution to win10 without Hyper-V

Are you still looking for a way to enable Hyper-v...

Introduction to Javascript DOM, nodes and element acquisition

Table of contents DOM node Element node: Text nod...

Use of hasOwnProperty method of js attribute object

Object's hasOwnProperty() method returns a Bo...

MySQL 5.5.56 installation-free version configuration method

The configuration method of MySQL 5.5.56 free ins...

Practical record of MySQL 5.6 master-slave error reporting

1. Problem symptoms Version: MySQL 5.6, using the...

MySQL dual-machine hot standby implementation solution [testable]

Table of contents 1. Concept 2. Environmental Des...

Introduction to root directory expansion under Linux system

1. Check Linux disk status df -lh The lsblk comma...

Talk about nextTick in Vue

When the data changes, the DOM view is not update...