当前位置:网站首页>Mysql-8 download, installation and configuration tutorial under Windows
Mysql-8 download, installation and configuration tutorial under Windows
2022-06-27 07:42:00 【Doctor Ni】
One 、 download mysql database
Download from the official website MySQL Community version
Two 、 install mysql database
2.1 Unzip the installation file
2.2 To configure mysql:MySQL Edit under the installation directory of my.ini file
[mysqld]# Set the character set used by the server to utf-8character-set-server=utf8# binding IPv4 Address bind-address = 0.0.0.0# Set up mysql Port number port = 3306# Set up mysql Installation directory ( Can see bin that will do )basedir=D:\mysql8# Set up mysql Database data storage directory ( Can see my.ini File directory )datadir=D:\mysql8\data# Maximum connections allowed max_connections=2000# The default storage engine that will be used when creating a new table default-storage-engine=INNODB# Set up mysql And the default encoding of the database [mysql]default-character-set=utf8[mysql.server]default-character-set=utf8# Set client default character set [client]default-character-set=utf8
2.3 install mysql
- stay cmd The terminal uses the administrator to execute the installation command
# Installation command mysqld --install# Unload command mysqld --remove
2.4 initialization mysql
# mysql Database initialization mysqld --initialize --user=root --console
2.5 start-up / close mysql service
# start-up mysql service net start mysql# stop it mysql service net stop mysql
2.6 Sign in mysql
mysql -uroot -p
2.7 modify mysql Password
# Set up mysql Password set password = password(' password ');# sign out mysql database exit
2.8 To configure mysql Environment variables of
1. ' This computer '-->' attribute '-->' Advanced system setup '-->' environment variable '2. Create a new system variable under the system variable Variable name :MYSQL_HOME A variable's value :D:\mysql8(MySQL Installation directory )3. stay path Add environment variable %MYSQL_HOME%\bin
3、 ... and 、mysql Database add users
Create a new user and grant permissions
# Format specification grant jurisdiction on database . surface to user name @ Connected ip Address identified by' password ';# example , Give the code yes 1234 Of test All permissions of all tables of all databases of the user grant all on *.* to [email protected]'%' identified by'1234'
边栏推荐
猜你喜欢
js用switch输出成绩是否合格
Testing network connectivity with the blackbox exporter
One person manages 1000 servers? This automatic operation and maintenance tool must be mastered
JS use the switch statement to output the corresponding English day of the week according to 1-7
JS to judge the odd and even function and find the function of circular area
Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file
Error in idea connection database
File and multipartfile overview
一个人管理1000台服务器?这款自动化运维工具一定要掌握
js中输入三个值,并且由小到大输出
随机推荐
Coal crusher
js打印99乘法表
二叉树结构以及堆结构基础
Self test in the second week of major 4
基础知识 | js基础
多表联查--07--- Hash join
索引+sql练习优化
1-4 进制表示与转换
js来打印1-100间的质数并求总个数优化版
Installation and functions of uview
PostgreSQL encounters permission denied in Windows system
js中判断成绩是否合格,范围在0-100,否则重新输入
Speech signal processing - concept (4): Fourier transform, short-time Fourier transform, wavelet transform
guava 教程收集一些案例慢慢写 google工具类
(resolved) NPM suddenly reports an error cannot find module 'd:\program files\nodejs\node_ modules\npm\bin\npm-cli. js‘
JS use the switch statement to output the corresponding English day of the week according to 1-7
(笔记)Anaconda-Navigator闪退解决方法
JDBC事务提交事例
How can I import data from Oracle into fastdfs?
游戏六边形地图的实现