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 @   小毛编  阅读(33)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示