Skip to content

手动安装mysql #19

@taoeer

Description

@taoeer
  1. 下载mysql https://downloads.mysql.com/archives/community/
  2. 解压mysql
  3. 在解压目录新建 my.ini
  4. my.ini的内容是
    [mysqld]
    # set basedir to your installation path
    basedir=D:/tools/mysql-5.7.35-winx64
    # set datadir to the location of your data directory
    datadir=D:/tools/mysql-5.7.35-winx64/data
  5. mysqld.exe --initialize
  6. mysqld.exe --console 启动
  7. 新开terminal, mysql -u root -p登录, 初始密码在data目录.err文件
  8. 修改密码 ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
  9. 安装windows服务: mysqld.exe --install. 默认服务名称 MYSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions