当前位置:网站首页>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


边栏推荐
- Data warehouse: detailed explanation of hierarchical design
- Yygh-8-appointment registration
- Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]]
- 深度學習19種損失函數
- MR-WordCount
- Configure multiple database connections using the SSM framework
- Apple MDM Bypass 免越狱绕过MDM配置锁 免费
- Jenkins继续集成2
- 学术搜索相关论文
- Oracle condition, circular statement
猜你喜欢

mac下安装多个版本php并且进行管理

【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images

Difficulty calculation of Ethereum classic

YYGH-7-用户管理

5g network overall architecture
![Taobao seo training video course [22 lectures]](/img/81/21e844542b35010760d061abe905e9.jpg)
Taobao seo training video course [22 lectures]

高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988

Jenkins continuous integration 1

Slow content advertising: the long-term principle of brand growth

函数栈帧的创建和销毁
随机推荐
Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall
Idea automatically adds comments when creating classes
Capacity scheduling absolute value configuration queue usage and pit avoidance
深度學習19種損失函數
The custom cube UI pop-up dialog supports multiple and multiple types of input boxes
Data center: Seven Swords of data governance
YYGH-6-微信登录
Object对象转 List集合
API learning of OpenGL (2007) gltexcoordpointer
Small ball playing
Academic search related papers
Data middle office: an article that takes you to understand data middle office in simple terms
Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
pkg打包node工程(express)
mac下安装多个版本php并且进行管理
Important basis for ERP software company selection
若依实现下拉框
Caused by: com. fasterxml. jackson. databind. Exc.invalidformatexception: exception resolution
cocoapod中的第三方库怎么引用本地头文件
mysql常用函数

