How to install the green version of MySQL Community Server 5.7.16 and implement remote login

How to install the green version of MySQL Community Server 5.7.16 and implement remote login

1. Download MySQL Community Server 5.7.16 and install it

2. Go to the bin directory of the MySQL installation directory, enter cmd in the file address bar and press Enter

3. Enter the command: mysqld --initialize-insecure --console

4. Enter the command: mysqld -install

5. mysql -u root--skip-password

6.ALTER USER 'root'@'localhost'IDENTIFIEDBY '123456';

7.\quit

8. mysql -h localhost -uroot -p

Installation Complete

Authorize remote login

Log in as an administrator

Execute command: grant all PRIVILEGES on *.* to zhanghao@'%' identified by '123456';

Refresh takes effect: flush privileges;

Command Explanation:

all PRIVILEGES means granting all permissions to the specified user. This can also be replaced by granting a specific permission, for example:

select,insert,update,delete,create,drop , etc. Specific permissions are separated by half-angle commas.

*.* indicates which table the above permissions apply to. The first * refers to the database, and the following * refers to all tables. For all tables in a certain database, the authorization is "database name.*", and for a certain table in a certain database, the authorization is "database name.table name".

zhanghao indicates which user you want to authorize. This user can be an existing user or a non-existent user.

Summarize

The above is the method that I introduced to you to install the green version of MySQL Community Server 5.7.16 and realize remote login. I hope it will be helpful to you. If you have any questions, please leave me a message and I 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:
  • A quick solution to the first login failure in mysql5.7.20
  • Solution to the root password login problem in MySQL 5.7
  • Solve the problem of ERROR 1045 (28000): Access denied for user ''root''@''localhost'' when logging in after installing MySQL 5.7.17 on Ubuntu 16.04
  • Tutorial on logging into MySQL after installing Mysql 5.7.17
  • Solve the problem of being unable to log in after installing MySQL 5.7 without a data folder
  • Solution to the problem of Access denied for user'root'@'localhost' (using password: YES) in MySQL 8.0 login under win10

<<:  Angular framework detailed explanation of view abstract definition

>>:  How to use multi-core CPU to speed up your Linux commands (GNU Parallel)

Recommend

Docker uses the nsenter tool to enter the container

When using Docker containers, it is more convenie...

CocosCreator Universal Framework Design Network

Table of contents Preface Using websocket Constru...

Detailed tutorial on configuring nginx for https encrypted access

environment: 1 CentOS Linux release 7.5.1804 (Cor...

MySQL InnoDB MRR Optimization Guide

Preface MRR is the abbreviation of Multi-Range Re...

MySQL whole table encryption solution keyring_file detailed explanation

illustrate MySql Community Edition supports table...

Practical Optimization of MySQL Paging Limit

Preface When we use query statements, we often ne...

What are the advantages of MySQL MGR?

MGR (MySQL Group Replication) is a new feature ad...

Three notification bar scrolling effects implemented with pure CSS

Preface The notification bar component is a relat...

How to filter out certain libraries during mysql full backup

Use the --all-database parameter when performing ...

Detailed explanation of Linux curl form login or submission and cookie usage

Preface This article mainly explains how to imple...

Detailed analysis of MySQL 8.0 memory consumption

Table of contents 1. innodb_buffer_pool_size 2. i...

How to set up ssh password-free login to Linux server

Every time you log in to the test server, you alw...

Solution to Docker disk space cleaning

Some time ago, I encountered the problem that the...

Data Structure - Tree (III): Multi-way Search Tree B-tree, B+ tree

Multi-way search tree Height of a complete binary...

Detailed installation and configuration tutorial of MySQL 5.7 under Win10

1. Unzip MySQL 5.7 2. Create a new configuration ...