公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),

点击这里在线咨询客服
新站提交
  • 网站:51998
  • 待审:31
  • 小程序:12
  • 文章:1030137
  • 会员:747

1 zip文件解压到目录 D:Alantop_Diralantop_sdeMySQL-8.0.27

MySQL 8.0.27 zip 版本安装

 

2 在mysql-8.0.27目录下建立my.ini文件

[mysqld]

default_authentication_plugin=mysql_native_password

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
 
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
 
# These are commonly set, remove the # and set as required.
basedir = "D:\alantop_dir\alantop_sde\mysql-8.0.27"
datadir = "D:\alantop_dir\alantop_sde\mysql-8.0.27\Data"
port = 3306
# server_id = .....
 
 
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 
 
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
 
character-set-server = utf8mb4
 
performance_schema_max_table_instances = 600
table_definition_cache = 400
table_open_cache = 256
 
[mysql]
default-character-set = utf8mb4
 
[client]
default-character-set = utf8mb4

3 mysql初始化数据库和默认密码

mysqld --initialize --console

注意:键入上面命令后,控制台上会显示默认密码,如果没记住,可以从data文件中日志文件err中查询。

4 安装启动mysql服务

mysqld --install mysql
net start mysql

5 用heidisql登录,第一次登录会提示修改默认密码。

MySQL 8.0.27 zip 版本安装

 

6 查看修改用户加密方式

select host,user,plugin from mysql.user;
ALTER USER 'test1'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';
FLUSH PRIVILEGES;
MySQL 8.0.27 zip 版本安装

 

如果此处修改了密码认证方式,my.ini中的

default_authentication_plugin=mysql_native_password

这句可以删除掉。

采用mysql_native_password认证方式主要是兼容有些程序的密码认证方式。

分享到:
标签:MySQL
用户无头像

网友整理

注册时间:

网站:5 个   小程序:0 个  文章:12 篇

  • 51998

    网站

  • 12

    小程序

  • 1030137

    文章

  • 747

    会员

赶快注册账号,推广您的网站吧!
最新入驻小程序

数独大挑战2018-06-03

数独一种数学游戏,玩家需要根据9

答题星2018-06-03

您可以通过答题星轻松地创建试卷

全阶人生考试2018-06-03

各种考试题,题库,初中,高中,大学四六

运动步数有氧达人2018-06-03

记录运动步数,积累氧气值。还可偷

每日养生app2018-06-03

每日养生,天天健康

体育训练成绩评定2018-06-03

通用课目体育训练成绩评定