当前位置:网站首页>MySql安裝教程
MySql安裝教程
2022-06-25 02:58:00 【Bugxiu_fu】
今天小編給大家分享一些mysql數據庫的安裝,希望能幫到大家(此數據庫一般用於小、中企業)
1、為什麼我們要使用MySql?
1、mysql性能卓越,服務穩定,很少出現异常宕機。
2、mysql開放源代碼且無版權制約,自主性及使用成本低。
3、mysql曆史悠久,社區及用戶非常活躍,遇到問題,可以尋求幫助。
4、mysql軟件體積小,安裝使用簡單,並且易於維護,安裝及維護成本低。
5、mysql品牌口碑效應,使得企業無需考慮就直接用之。
6、mysql支持多種操作系統,提供多種API接口,支持多種開發語言。
2、MySql安裝步驟
1、官網:MySQL :: MySQL Downloads
https://www.mysql.com/cn/downloads/
2、下載解壓並解壓後,用管理員身份打開命令提提示符執行如下代碼:
先切換到MySql的bin目錄 cd E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64\bin
3.新建my.ini 放到E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64\文件夾下
文件內容如下
[mysql] # 設置mysql客戶端默認字符集 default-character-set=utf8 [mysqld] #設置3306端口 port = 3306 # 設置mysql的安裝目錄 basedir=E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64 # 設置mysql數據庫的數據的存放目錄 datadir=E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64\\data # 允許最大連接數 max_connections=200 # 服務端使用的字符集默認為8比特編碼的latin1字符集 character-set-server=utf8 # 創建新錶時將使用的默認存儲引擎 default-storage-engine=INNODB4、安裝mysql,執行代碼mysqld -install
小編這裏是因為我已經安裝好了,所以這裏提示已存在
5、初始化,執行代碼:mysqld --initialize-insecure --user=mysql 根據剛剛my.ini文件去初始化,然後會產生一個data文件夾
初始化成功後如下圖
6.啟動MySql服務,執行代碼net start mysql
7、設置密碼、mysqladmin -u root -p password 新密碼
8、連接數據庫,mysql -uroot -p
9、驗證一下是否登錄數據庫,show tables;
边栏推荐
- Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (2) -- convert database to cluster mode
- E - average and median
- 数组-一口气冲完快慢指针
- GO同步等待组
- ACM. Hj75 common substring calculation ●●
- Once beego failed to find bee after passing the go get command Exe's pit
- Leetcode 210: curriculum II (topological sorting)
- 把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(1)——迁移数据到节点1
- Difference between left join on and join on
- Computer wechat user picture decoded into picture in DAT format (TK version)
猜你喜欢

使用ShaderGraph制作边缘融合粒子Shader的启示

Copilot免费时代结束!学生党和热门开源项目维护者可白嫖

Random list random generation of non repeating numbers

高速缓存Cache详解(西电考研向)

AI clothing generation helps you complete the last step of clothing design

20年ICPC澳门站L - Random Permutation
![Network planning | [four network layers] knowledge points and examples](/img/c3/d7f382409e99eeee4dcf4f50f1a259.png)
Network planning | [four network layers] knowledge points and examples

Transformers Roberta如何添加tokens

Refresh mechanism of vie

How transformers Roberta adds tokens
随机推荐
Leecode learning notes - the shortest path for a robot to reach its destination
Getting started with unityshader Essentials - PBS physics based rendering
Easy to use dictionary -defaultdict
使用ShaderGraph制作边缘融合粒子Shader的启示
Refresh mechanism of vie
如何卸载cuda
AOSP ~ 默认属性值
Transformers Roberta如何添加tokens
Add in cmakelists_ Definitions() function
It is said that Yijia will soon update the product line of TWS earplugs, smart watches and bracelets
UnityShader入门精要——表面着色器
Jetson nano from introduction to practice (cases: opencv configuration, face detection, QR code detection)
Advanced mathematics | proficient in mean value theorem problem solving routines summary
npm包发布详细教程
Yarn: unable to load file c:\users\xxx\appdata\roaming\npm\yarn PS1 because running scripts is prohibited on this system
Groovy之高级用法
Xiaomi routing R4A Gigabit version installation feed+openwrt tutorial (the full script does not need to be hard modified)
automated testing
Network planning | [four network layers] knowledge points and examples
Mall project pc--- product details page
https://www.mysql.com/cn/downloads/





