I recently started learning database, and I feel it is a very interesting course, but many of the things involved are new to me, so I want to organize my study notes here. The first thing to sort out is the installation and configuration methods of DBMS MySQL used in the course. Download >>> MySQL 5.7 Downloads Select the corresponding machine and bit number, and click Download. Unzip and configure 1. Unzip the downloaded MySQL compressed package. 2. Modify the configuration file: Copy and paste the following text into the my.txt file, change the suffix of my.txt to .ini and replace it with the configuration file (my-default.ini) in the original MySQL installation directory. [mysql] # Set the default character set of the mysql client to default-character-set=utf8 [mysqld] #Set port 3306 port = 3306 # Set the installation directory of mysql basedir=D:\MySql\mysql-5.7.12-winx64 # Set the storage directory of mysql database data datadir=D:\MySql\mysql-5.7.12-winx64\data # 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 that will be used when creating a new table default-storage-engine=INNODB Note: The specific paths of basedir and datadir should be filled in according to the actual installation path. Install 1. Enter the bin directory and start installing MySQL: 2. Initialize (create data directory), enter in the command line: 3. To install, enter in the command line: 4. Start the service and enter in the command line: 5. Create a user password: Environment variables In order to avoid switching directories every time in cmd, we add the MySQL bin directory to the Path environment variable: At this point, the installation and configuration of MySQL has been completed. 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:
|
<<: Best tools for taking screenshots and editing them in Linux
>>: Three ways to share component logic in React
1. Check the kali linux system version Command: c...
cause I recently started to refactor the project,...
CSS background: background:#00ffee; //Set the back...
[LeetCode] 177.Nth Highest Salary Write a SQL que...
Solution to forgetting MySQL password: [root@loca...
The picture is used as the background and the lin...
MySQL is now the database used by most companies ...
Table of contents Preface zx library $`command` c...
This article uses an example to illustrate the us...
Table of contents 1. How to use mixin? 2. Notes o...
Overview There are many open source network monit...
First, let’s take a look at the general practices...
Mysql left join is invalid and how to use it When...
In the UI cutting process, the page is often comp...
How to determine whether the current Linux system...