MySQL free installation version configuration tutorial

MySQL free installation version configuration tutorial

This article shares the MySQL free installation configuration tutorial for your reference. The specific content is as follows

1. Download the MySQL installation-free version compressed package and decompress it to a custom directory, such as: D:\program0\mysql (the following takes this directory as an example)

2. Modify the my.ini file (maybe my-default.ini, manually modify it to my.ini);
Items that need to be configured:

basedir =D:\program0\mysql
datadir =D:\program0\mysql\data

#If you customize this directory, you must move all files in this directory to the new customized directory

port = 3306
server_id =10

3. Configure the default encoding for the newly created data path:
Also in the my.ini file,
Add character_set_server = gbk under [mysqld]

4. Add environment variables

Create a new variable MYSQL_HOME
Enter the variable name: MYSQL_HOME
Enter variable value: D:\program0\mysql
2) Add Path

Click the Edit button
Add variable values ​​in Variable Values:
`%MYSQL_HOME%\bin`
Note that you should add this variable after the original variable value, separated by ;. You cannot delete the original variable value.

5. Register mysql service:
1) From the console, go to the bin directory under the MySQL decompression directory (D:\program0\mysql\bin):
2) Enter the service installation command:

mysqld install mysql

#If `Install/Remove of the Service Denied` appears, select "Open as Administrator" when opening the cmd.exe program, and the same when starting the service.
#After successful installation, the service will be prompted to be successfully installed.
#Remove service command: `mysqld remove`

6. Start the mysql service: cmd enter the console

net start mysql

7. Close the mysql service: cmd enter the console

net stop mysql

8. Configure the root user password:

cmd: mysql -uroot
  mysql< use mysql;
  mysql< delete from user;
  mysql< grant all on *.* to root@'%' identified by "root" with grant option;
  mysql< flush privileges;
  mysql< quit;

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • The actual configuration method of MySQL free installation version
  • MYSQL ZIP installation-free version configuration steps and graphical management tool mysql-workbench
  • Detailed explanation and sharing of the configuration steps of the MySQL free installation version
  • MySQL 5.6 free installation version environment configuration graphic tutorial
  • Mysql default character set setting method (free installation version)
  • MySQL 5.7.9 free installation version configuration method graphic tutorial
  • MySql 5.6.14 winx64 configuration method (free installation version)
  • Mysql 5.7.17 winx64 free installation version, installation and configuration graphic tutorial under win10 environment
  • MySQL 5.7.17 free installation version configuration method graphic tutorial (windows10)
  • MySQL installation and configuration tutorial for win10 free installation version

<<:  How to install and uninstall open-vswitch in Linux

>>:  How to configure Basic Auth login authentication in Nginx

Recommend

Detailed analysis of binlog_format mode and configuration in MySQL

There are three main ways of MySQL replication: S...

Nginx Linux installation and deployment detailed tutorial

1. Introduction to Nginx Nginx is a web server th...

Implementation of Docker data volume operations

Getting Started with Data Volumes In the previous...

Common solutions for Mysql read-write separation expiration

The pitfalls of MySQL read-write separation The m...

How to build a MySQL PXC cluster

Table of contents 1. Introduction to PXC 1.1 Intr...

In-depth explanation of various binary object relationships in JavaScript

Table of contents Preface Relationships between v...

Simple writing of MYSQL stored procedures and functions

What is a stored procedure Simply put, it is a se...

How to quickly paginate MySQL data volumes of tens of millions

Preface In backend development, in order to preve...

VMware12.0 installation Ubuntu14.04 LTS tutorial

I have installed various images under virtual mac...

A detailed introduction to the CSS naming specification BEM from QQtabBar

BEM from QQtabBar First of all, what does BEM mea...

How to run the react project on WeChat official account

Table of contents 1. Use the a tag to preview or ...

Detailed steps to install Mysql5.7.19 using yum on Centos7

There is no mysql by default in the yum source of...

Reasons and solutions for prompting to save action after uploading files in form

The json data must be returned in html format That...