当前位置:网站首页>MySQL(一)——安装
MySQL(一)——安装
2022-06-28 06:04:00 【木棣%】
- 创建配置"my.ini"文件放在解压后文件中
- 配置文件内容如下
[mysqld]
# 设置3306端口
port=3306
# 设置mysql的安装目录
basedir=D:\MySQL\mysql-8.0.28-winx64
# 允许最大连接数
max_connections=200
# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统
max_connect_errors=10
# 服务端使用的字符集默认为UTF8
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 默认使用“mysql_native_password”插件认证
default_authentication_plugin=mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
- 以管理员身份打开命令提示符,进入bin目录下
#安装服务
mysqld install
#初始化 得到初始密码
mysqld --initialize --console
#启动MySQL服务
net start mysql
#登录
mysql -u root -p
#修改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
# 刷新数据库
FLUSH PRIVILEGES;
- 对接navicat
use mysql;
Database changed
边栏推荐
- Jenkins continues integration 2
- Academic search related papers
- 19 fonctions de perte d'apprentissage profond
- Ethereum Classic的难度计算|猿创征文
- CAD二次开发+NetTopologySuite+PGIS 引用多版本DLL问题
- 借助nz-pagination中的let-total解析ng-template
- Slow content advertising: the long-term principle of brand growth
- Configure redis from 0
- 函数栈帧的创建和销毁
- 6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature
猜你喜欢
The custom cube UI pop-up dialog supports multiple and multiple types of input boxes
Small ball playing
Filecoin hacker song developer competition
Where is the era bonus for developers?
mac下安装多个版本php并且进行管理
What are the advantages of e-mail marketing? Why do sellers of shopline independent station attach so much importance to it?
基于Kotlin+JetPack实现的MVVM框架的示例
Working principle of es9023 audio decoding chip
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded
随机推荐
bash install.sh ********错误
Data midrange: implementation and summary of AI midrange
安装 Ffmpefg
使用SSM框架,配置多个数据库连接
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall
YYGH-BUG-03
MR-WordCount
基于Kotlin+JetPack实现的MVVM框架的示例
Syn retransmission caused by IPVS
马赛克数据增强 mosaic
bash install. SH ******** error
mysql常用函数
自定义 cube-ui 弹出框dialog支持多个且多种类型的input框
Lenovo hybrid cloud Lenovo xcloud, new enterprise IT service portal
lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性
JSP
PKG package node project (express)
深度学习19种损失函数
socke.io長連接實現推送、版本控制、實時活躍用戶量統計