当前位置:网站首页>Windows下mysql-8下载、安装、配置教程
Windows下mysql-8下载、安装、配置教程
2022-06-27 07:39:00 【博士尼】
一、下载mysql数据库
官网下载MySQL社区版本
二、安装mysql数据库
2.1 解压缩安装文件
2.2 配置mysql:MySQL的安装目录下编辑my.ini文件
[mysqld]# 设置服务端使用的字符集为utf-8character-set-server=utf8# 绑定IPv4地址bind-address = 0.0.0.0# 设置mysql的端口号port = 3306# 设置mysql的安装目录(能看到bin即可)basedir=D:\mysql8# 设置mysql数据库的数据的存放目录(能看到my.ini文件的目录)datadir=D:\mysql8\data# 允许最大连接数max_connections=2000# 创建新表时将使用的默认存储引擎default-storage-engine=INNODB# 设置mysql以及数据库的默认编码[mysql]default-character-set=utf8[mysql.server]default-character-set=utf8# 设置客户端默认字符集[client]default-character-set=utf82.3 安装mysql
- 在cmd终端使用管理员执行安装命令
# 安装命令mysqld --install# 卸载命令mysqld --remove2.4 初始化mysql
# mysql数据库初始化mysqld --initialize --user=root --console2.5 启动/关闭mysql服务
# 启动mysql服务net start mysql# 停止mysql服务net stop mysql2.6 登录mysql
mysql -uroot -p2.7 修改mysql的密码
# 设置mysql的密码set password = password('密码');# 退出mysql数据库 exit2.8 配置mysql的环境变量
1. '此电脑'-->'属性'-->'高级系统设置'-->'环境变量'2. 在系统变量下新建系统变量 变量名:MYSQL_HOME 变量值:D:\mysql8(MySQL的安装目录)3. 在path下新增环境变量 %MYSQL_HOME%\bin三、mysql数据库添加用户
新建用户并授予权限
# 格式说明grant 权限 on 数据库.表 to 用户名@连接的ip地址 identified by'密码';# 实例,给密码是1234的test用户所有数据库的所有表的所有权限grant all on *.* to [email protected]'%' identified by'1234'边栏推荐
- PostgreSQL encounters permission denied in Windows system
- Websocket database listening
- Guava scheduled task
- VNC Viewer方式的远程连接树莓派
- 使用 Blackbox Exporter 测试网络连通性
- 无论LCD和OLED显示技术有多好,都无法替代这个古老的显示数码管
- Installation and functions of uview
- Guava tutorial collect some cases and write Google tool classes slowly
- Cookie encryption 7 fidder analysis phase
- 【编译原理】山东大学编译原理复习提纲
猜你喜欢

(已解决) MINet 进行测试时报错如下 raise NotImplementedError

Error in idea connection database

js求所有水仙花数
![[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment](/img/ac/44e0ecd04fbea5efd39d2cc75dea59.jpg)
[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment

Gérer 1000 serveurs par personne? Cet outil d'automatisation o & M doit être maîtrisé

Goodbye, agile Scrum

JS, and output from small to large
![[compilation principles] review outline of compilation principles of Shandong University](/img/a6/b522a728ff21085411e7452f95872a.png)
[compilation principles] review outline of compilation principles of Shandong University

「短视频」临夏消防救援支队开展消防安全培训授课

【软件工程】山东大学软件工程复习提纲
随机推荐
JS output all prime numbers between 1-100 and calculate the total number
js用while循环计算假如投资多年的利率为5%,试求从1000块增长到5000块,需要花费多少年
攻防演习防御体系构建之第二篇之应对攻击的常用策略
【Kevin三连弹之三】Rust真的比C慢吗?进一步分析queen微测评
碎煤机crusher
Set the address book function to database maintenance, and add user name and password
什么是浮选机?
Window right click management
Implementation principle of similarity method in Oracle
yarn create vite 报错 ‘D:\Program‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
MySQL
Programming life - what do you think of the 35 year old bottleneck of programmers?
磁选机是什么?
R 语言Analyzing wine data
File and multipartfile overview
hutool对称加密
JS output shape
js打印99乘法表
webscoket 数据库监听
What is a magnetic separator?