最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

Mysql安装配置,修改初试密码。

来源:懂视网 责编:小采 时间:2020-11-09 19:15:44
文档

Mysql安装配置,修改初试密码。

Mysql安装配置,修改初试密码。:绿色版本,解压缩D:/Software/mysql-advanced-5.6.18-winx64my-default.ini 改名my.inimy.ini内容如下# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.6/en/se
推荐度:
导读Mysql安装配置,修改初试密码。:绿色版本,解压缩D:/Software/mysql-advanced-5.6.18-winx64my-default.ini 改名my.inimy.ini内容如下# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.6/en/se

绿色版本,解压缩

D:/Software/mysql-advanced-5.6.18-winx64

my-default.ini 改名my.ini

my.ini内容如下

# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade to a newer version of MySQL.[client]default-character-set=utf8[mysqld]character_set_server=utf8# 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:/Software/mysql-advanced-5.6.18-winx64datadir = D:/Software/mysql-advanced-5.6.18-winx64/data# port = .....# 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

打开 Windows 环境变量设置, 新建变量名 MYSQL_HOME , 变量值为 MySQL 安装目录路径, 这里为 D:/Software/mysql-advanced-5.6.18-winx64

在 环境变量 的 Path 变量中添加 ;%MYSQL_HOME%/bin;

安装 MySQL 服务, 打开Windows命令提示符, 执行命令: mysqld --install MySQL --defaults-file="D:/Software/mysql-advanced-5.6.18-winx64/my.ini"

启动: net start MySQL

停止: net stop MySQL

卸载: sc delete MySQL

修改密码:

mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 1
Server version: 5.1.32-community MySQL Community Edition (GPL)
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql>use mysql

mysql> UPDATE user SET password=PASSWORD(’新密码’) WHERE User=’root’;

mysql> FLUSH PRIVILEGES;

mysql>quit;

文档

Mysql安装配置,修改初试密码。

Mysql安装配置,修改初试密码。:绿色版本,解压缩D:/Software/mysql-advanced-5.6.18-winx64my-default.ini 改名my.inimy.ini内容如下# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.6/en/se
推荐度:
标签: 设置 密码 修改
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top