当前位置:网站首页>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;
边栏推荐
- 20 years ICPC Macau station L - random permutation
- Advanced usage of groovy
- The Oracle 11g RAC cluster database cannot be started due to directory permission errors
- Centos7.3 modifying MySQL default password_ Explain centos7 modifying the password of the specified user in MySQL
- C#实现水晶报表绑定数据并实现打印
- left join on和 join on的区别
- 高数 | 精通中值定理 解题套路汇总
- 数组-一口气冲完快慢指针
- 36岁前亚马逊变性黑客,窃取超1亿人数据被判20年监禁!
- 国信金太阳打新债步骤 开户是安全的吗
猜你喜欢

MATLAB主窗口与编辑器窗口分开为两个界面的解决办法

20 years ICPC Macau station L - random permutation

数组-一口气冲完快慢指针

使用XXL-JOB自定义任务并调度

Transformers Roberta如何添加tokens

Getting started with unityshader - Surface Shader

Lihongyi, machine learning 6 Convolutional neural network

Getting started with unityshader Essentials - PBS physics based rendering

LeetCode 210:课程表 II (拓扑排序)

14 BS object Node name Name attrs string get node name attribute content
随机推荐
MySQL learning notes -- addition, deletion, modification and query on a single table
Software testing weekly (issue 77): giving up once will breed the habit of giving up, and the problems that could have been solved will become insoluble.
Computer wechat user picture decoded into picture in DAT format (TK version)
Can the polardb database be connected to the data source through MySQL
Refresh mechanism of vie
Summary of stack frame in arm assembly
运行时修改Universal Render Data
Is it safe for Guoxin golden sun to open an account in the steps of opening new bonds
使用ShaderGraph制作边缘融合粒子Shader的启示
分布式事务解决方案和代码落地
Go synchronization waiting group
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(3)—— 把数据库设置为归档模式
记一次beego通过go get命令后找不到bee.exe的坑
Uncaught Error: [About] is not a <Route> component. All component children of <Routes> must be a <Ro
Leetcode 210: curriculum II (topological sorting)
14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
Array - fast and slow pointer in one breath
Uncaught Error: [About] is not a <Route> component. All component children of <Routes> must be a <Ro
ACM. HJ70 矩阵乘法计算量估算 ●●
AOSP ~ 默认属性值
https://www.mysql.com/cn/downloads/





