sql 相关

windows 下安装sql:

参考: https://zhuanlan.zhihu.com/p/37152572

1、下载 installer: from https://www.mysqltutorial.org/install-mysql/

2、本机mysql相关卸载干净 && 正在运行的mysql服务关掉【免安装启动的服务】

3、运行installer,下载安装包后,若无法进行服务配置,下载完后,直接进入 C:\Program Files (x86)\MySQL\MySQL Installer for Windows 手动启动MySQLInstaller.exe, 亦可进行重新配置 reconfigure

==================================================

windows:using the MySQL Installer

other sys: Linux and macOS:

 

Download MySQL Installer

To download MySQL installer, go to the following link http://dev.mysql.com/downloads/installer/

recommend:offline installer

 

ini

[mysql]
default-character-set=utf8
[mysqld]
port=10006
basedir=**\mysql-5.7.28-winx64
datadir=**\mysql-5.7.28-winx64\data
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB

==============================

windows操作sql

https://blog.csdn.net/pengzonglu7292/article/details/82141851

powershell/cmd :

PS C:\Windows\system32> Start-Service 服务器名称
PS C:\Windows\system32> mysql -u root -P 10006 -p
Enter password: *****
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.28 MySQL Community Server (GPL)

Copyright (c) 2000, 2019, 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 |
| autest             |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.00 sec)

==========================

 

posted @ 2021-02-15 15:29  小毛编  阅读(42)  评论(0)    收藏  举报