search
HomeDatabaseMysql Tutorialmysql5.6安装步骤

mysql5.6安装步骤

Jun 07, 2016 pm 03:41 PM
InstallReportstepproject

项目报告安装MYSQL5.6 一从官网下载 MySql5.6 1.版本和平台截图 背景知识: 目前针对不同用户, MySQL 提供了 2 个不同的版本: MySQLCommunityServer :社区版,该版本完全免费,但是官方不提供技术支持。 MySQLEnterpriseServer :企业版,它能够高性价比

项目报告安装MYSQL5.6

一 从官网下载MySql5.6

1. 版本和平台截图

mysql5.6安装步骤

背景知识:

目前针对不同用户,MySQL提供了2个不同的版本:

MySQL Community Server:社区版,该版本完全免费,但是官方不提供技术支持。

MySQL Enterprise Server:企业版,它能够高性价比的为企业提供数据仓库应用,支持ACID事物处理,提供完整的提交、回滚、崩溃恢复和行级锁定功能。但是该版本需付费使用,官方提供电话及文档等技术支持。

2. 附:安装版下载

mysql5.6安装步骤

二 解压MySQL压缩包

将以下载的MySQL压缩包解压到自定义目录下。

mysql5.6安装步骤

三 添加环境变量

变量名:MYSQL_HOME

变量值:D:\Program Files\mysql-5.6.11-winx64

即为mysql的自定义解压目录。

mysql5.6安装步骤

再在Path中添加  %MYSQL_HOME%\bin

四 注册windows系统服务

mysql注册为windows系统服务

操作如下:

1)从控制台进入到MySQL解压目录下的 bin 目录下:

mysql5.6安装步骤

2)输入服务安装命令:

mysql5.6安装步骤

mysqld install MySQL

安装成功后会提示服务安装成功。

输入net start MySql测试是否安装成功。

移除服务命令为:mysqld remove

3)可能的错误1

如果以前安装过MySql或其他原因,cmd会提示找不开服务,这是因为可执行文件路径不对,清理注册表,删除Program DataMySql目录,重启电脑,会解决。

mysql5.6安装步骤

4)可能的错误二

解决:不指定默认配置文件,然后remove,重新安装,成功!

mysql5.6安装步骤


背景知识:

mysqld.exe 和 mysql.exe 有什么区别?

mysqld.exe MySQL后台程序(MySQL服务器)。要想使用客户端程序,该程序必须运行,因为客户端通过连接服务器来访问数据库。

mysql.exe MySQL自带的命令行客户端工具,是交互式输入SQL语句或从文件以批处理模式执行它们的命令行工具。

简单来说:mysqld是用来启动mysql数据库的命令,mysql则是打开并执行sql语句的命令。

mysqld.exe 命令讲解

Windows下通过mysqld.exe 命令行安装MySQL服务例子:

1. 开始->运行中输入cmd

2. cd进入到mysql安装的bin目录

3. 安装mysql服务:mysqld --install

    可以指定服务的名字:mysqld --install MySQL5

    默认是开机自动运行服务,如果开机不自动启动,可写为:mysqld.exe  --install-manual

    带配置文件写法:mysqld --install 系统服务名 --defaults-file=你的mysql配置文件的路径

    例如:mysqld --install MySQL5 --defaults-file=d:\mysql\my.ini

4. 启动:net start mysql

5. 关闭:net stop mysql

6. 删除mysql服务: mysqld --remove

    也可以指定服务的名字。mysqld --remove MySQL5

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What Are the Limitations of Using Views in MySQL?What Are the Limitations of Using Views in MySQL?May 14, 2025 am 12:10 AM

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

Securing Your MySQL Database: Adding Users and Granting PrivilegesSecuring Your MySQL Database: Adding Users and Granting PrivilegesMay 14, 2025 am 12:09 AM

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

What Factors Influence the Number of Triggers I Can Use in MySQL?What Factors Influence the Number of Triggers I Can Use in MySQL?May 14, 2025 am 12:08 AM

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

MySQL: Is it safe to store BLOB?MySQL: Is it safe to store BLOB?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

MySQL: Adding a user through a PHP web interfaceMySQL: Adding a user through a PHP web interfaceMay 14, 2025 am 12:04 AM

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)