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 explanation of MySQL date string timestamp conversion

The conversion between time, string and timestamp...

Web front-end development course What are the web front-end development tools

With the development of Internet technology, user...

Analysis of the Linux input subsystem framework principle

Input subsystem framework The linux input subsyst...

Docker and portainer configuration methods under Linux

1. Install and use Docer CE This article takes Ce...

Docker learning: the specific use of Container containers

Container is another core concept of Docker. Simp...

Steps for Docker to build a private warehouse Harbor

Harbor Harbor is an open source solution for buil...

Several reasons for not compressing HTML

The reason is simple: In HTML documents, multiple ...

Vue implements a small countdown function

Countdown function needs to be implemented in man...

How to replace all tags in html text

(?i) means do not match case. Replace all uppercas...

HTML Learning Notes--Detailed Explanation of HTML Syntax (Must Read)

1. What is HTML markup language? HTML is a markup...

Solution to ERROR 1366 when entering Chinese in MySQL

The following error occurs when entering Chinese ...

HTTP Status Codes

This status code provides information about the s...

Detailed explanation of Angular structural directive modules and styles

Table of contents 1. Structural instructions Modu...

MySQL optimization query_cache_limit parameter description

query_cache_limit query_cache_limit specifies the...