下载MySQL
官网下载:Download MySQL
环境配置
*
MYSQL_HOME:mysql路径
*
Path:%MYSQL_HOME%\bin
注意:在安装mysql时会提示设置密码及其相关设置,本人时已经安装好了,直接配置环境变量即可。
测试
输入命令 mysql -u root -p
,输入数据库密码即可;
命令:mysql -u 数据库用户名(默认是root) -p
Microsoft Windows [版本 10.0.18363.836]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\HY>mysql -u root -p
Enter password: ******
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 50
Server version: 10.4.7-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>