MySQLインストールの下の[Windowsの]

公式のMySQLリファレンスマニュアル:https://dev.mysql.com/doc/refman/5.7/en/installing.html

  • ステップ1:MySQLのインストーラ(Windowsに適用されます)をダウンロードし、システムのインストールと設定上のすべてのMySQL製品、それをしましょう。

ダウンロード:https://dev.mysql.com/downloads/installer/

ここに画像を挿入説明

  • ステップ2:ダブルクリックしてmysqlのインストーラ・コミュニティ5.7.24.0.msi

ここに画像を挿入説明

  • ステップ三:ここで私は、カスタム(カスタム)を選択し、あなたはまた、デフォルトの開発者のデフォルトにすべてのファイルをインストールするように選択することができます

ここに画像を挿入説明

  • ステップ4:、唯一のMySQLサーバ5.7.24-X64をインストールするために選択し、右に移動し、[次へ]をクリックします

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

  • ステップ5:rootユーザーのパスワードを設定し、ユーザーが追加のユーザーを介して追加することができます

ここに画像を挿入説明

ここに画像を挿入説明

  • ステップ6:名前のMySQLサービス、そしてここで私はデフォルトを使用

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

ここに画像を挿入説明

説明:

Ⅰ、インストールmysqlの後、MySQLのデフォルトでは、マウント: C:\Program Files\MySQL\MySQL Server 5.7

ここに画像を挿入説明

  • ビン:実行可能ファイルを保存します
  • 含む:含まれるヘッダファイルストレージ
  • LIB:ファイルリポジトリ
  • シェア:エラーメッセージと文字セットファイル

Ⅱ、デフォルトのデータ・ストレージ・ファイル、および設定ファイルのmy.ini: C:\ProgramData\MySQL\MySQL Server 5.7

ここに画像を挿入説明

Ⅲ、MySQLの設定ファイルmy.iniファイル

[client]
# 指定客户端从3306端口进入
# pipe=

# socket=MYSQL

port=3306


[mysql]
# 指定客户端的默认字符集
no-beep

default-character-set=utf8

[mysqld]

# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# shared-memory

# shared-memory-base-name=MYSQL

# The Pipe the MySQL Server will use
# socket=MYSQL

# 设置服务端的端口号
# The TCP/IP Port the MySQL Server will listen on
port=3306

# 指定mysql的安装路径
# Path to installation directory. All paths are usually resolved relative to this.
# basedir="C:/Program Files/MySQL/MySQL Server 5.7/"

# 指定数据的存放路径
# Path to the database root
datadir=C:/ProgramData/MySQL/MySQL Server 5.7/Data

# 指定服务端使用的默认字符集
# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=utf8

# 指定创建新表使用的默认存储引擎
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB

......

Ⅳ、MySQLサービスを再起動します

ここに画像を挿入説明

Ⅴ、環境変数を設定します

設定MYSQL_HOME

ここに画像を挿入説明

構成パス、追加:

ここに画像を挿入説明

または追加します。

ここに画像を挿入説明

Ⅵ、テスト

C:\Users\ys951>mysql -uroot -p
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.24-log MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

Ⅶ、あなたはまた、データベースを操作するために公式の視覚化ツールやサードパーティの可視化ツールを使用することができます

MySQLのワークベンチツールをインストールする場合、インストール用に選択されます

ここに画像を挿入説明

おすすめ

転載: blog.csdn.net/weixin_42112635/article/details/91412752