博客
关于我
MySQL5.7.37windows解压版的安装使用
阅读量:799 次
发布时间:2023-02-11

本文共 918 字,大约阅读时间需要 3 分钟。

运维专栏:奔跑吧邓邓子

下载

下载包时,页面可能打开速度较慢,建议多次尝试以确保顺利完成。

解压

将下载包解压到指定目录(如D盘),注意确保路径正确。

创建my.ini文件

新建my.ini文件,配置内容如下:

[mysql]default-character-set=utf8[mysqld]port=3306basedir=D:\mysql-5.7.37-winx64lower_case_table_names=1max_connections=200character-set-server=utf8default-storage-engine=INNODB

安装

  • 以管理员身份打开命令窗口,进入D:\mysql-5.7.37-winx64\bin目录,运行安装命令:
  • mysqld install
    1. 初始化数据库:
    2. mysqld --initialize
      1. 启动服务:
      2. net start mysql
        1. 第一次登录时,输入初始密码。默认密码文件位于D:\mysql-5.7.37-winx64\data目录下。

        2. 修改初始密码,执行以下命令:

        3. ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

          其他高效运维文章

          • Kubernetes系列:K8s由1.24.1降级为1.23.8
          • Kubernetes系列:Kubenetes如何访问Harbor私有仓库(401 Unauthorized问题解决)
          • 如何查找OBS的终端节点(Endpoint)和访问域名
          • CentOS下配置Nginx、Redis、Elasticsearch、MongoDB、RocketMQ、Logstash、Filebeat、XXLJOB、Kibana开机自启动
          • 微信公众号消息模板已去除尾部/备注内容、自定义颜色、表情符号,如何新增模板
          • MySQL使用mysqlbinlog将binlog转换为可阅读SQL文件的方法
          • ESXI虚拟机Centos 7添加新硬盘操作步骤
          • Jenkins集成Gitlab、SonarQube搭建自动化代码质量管理平台(高级篇)
          • 更多高效运维文章请关注【】专栏,我会不定期进行分享。

    转载地址:http://hjbfk.baihongyu.com/

    你可能感兴趣的文章
    notepad++最详情汇总
    查看>>
    notepad如何自动对齐_notepad++怎么自动排版
    查看>>
    Notification 使用详解(很全
    查看>>
    NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty()
    查看>>
    Now trying to drop the old temporary tablespace, the session hangs.
    查看>>
    nowcoder—Beauty of Trees
    查看>>
    np.arange()和np.linspace()绘制logistic回归图像时得到不同的结果?
    查看>>
    npm error Missing script: “server“npm errornpm error Did you mean this?npm error npm run serve
    查看>>
    npm error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装
    查看>>
    npm install digital envelope routines::unsupported解决方法
    查看>>
    npm install 卡着不动的解决方法
    查看>>
    npm install 报错 EEXIST File exists 的解决方法
    查看>>
    npm install 报错 ERR_SOCKET_TIMEOUT 的解决方法
    查看>>
    npm install 报错 fatal: unable to connect to github.com 的解决方法
    查看>>
    npm install 报错 no such file or directory 的解决方法
    查看>>
    npm install报错,证书验证失败unable to get local issuer certificate
    查看>>
    npm install无法生成node_modules的解决方法
    查看>>
    npm install的--save和--save-dev使用说明
    查看>>
    npm node pm2相关问题
    查看>>
    npm run build 失败Compiler server unexpectedly exited with code: null and signal: SIGBUS
    查看>>