首页 > 技术文章 > MySQL(mysql-installer-community-5.7.18.1 Windows10)

hbuwyg 2017-07-16 18:01 原文

https://www.mysql.com/


Download MySQL Community Server

MySQL open source software is provided under the GPL License.

OEMs, ISVs and VARs can purchase commercial licenses.

MySQL Community Edition is a freely downloadable version of the world's most popular open source database that is supported by an active community of open source developers and enthusiasts.


下载MSI版:https://dev.mysql.com/downloads/file/?id=470091

推荐使用MSI版。从官网下载一定用下载工具,网页下载太慢。

另:安装程序MSI是32位,可以安装32/64位软件。


可视化管理工具:MySQL Workbench(随软件一起安装好了,可以直接用。还有很多其他可视化工具,也许有很多优点,习惯用官方自带的~)

为MySQL设计的ER/数据库建模工具。

是著名的数据库设计工具DBDesigner4的继任者。具有设计和创建新的数据库图示,建立数据库文档,以及进行复杂的MySQL 迁移的作用。

MySQL 教程


新建数据库 不是 database,而是 schema 。

执行SQL语句是闪电符号,快捷键ctrl+enter ,蓝色的小对勾不是执行,是提交事务。

没有主键的表无法在查询结果中编辑数据 ~

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.

ref:http://www.cnblogs.com/xuancaoyy/p/5814658.html

这是因为MySql运行在safe-updates模式下,该模式会导致非主键条件下无法执行update或者delete命令。
1、show variables like 'SQL_SAFE_UPDATES';查看开关状态。
2、执行命令SET SQL_SAFE_UPDATES = 0;修改下数据库模式

 

MySQL免安装版不推荐使用。配置麻烦,而且还不一定成功。。。

https://dev.mysql.com/downloads/mysql/

安装步骤:

http://blog.csdn.net/rebirth_love/article/details/53608483

http://www.cnblogs.com/Fiona20170420/p/6738185.html

【错误】netstart mysql服务正在启动或停止中,请稍候片刻后再试一次。

解决方案:http://blog.csdn.net/Sifastiane/article/details/47748759

【错误】MySQL 服务正在启动。MSQL服务无法启动。服务没有报告任何错误。请键入NET HELPMSG 3523以获得更多的帮助。

解决方案:http://m.blog.csdn.net/ricardo_/article/details/51097048

折腾半天,最终安装失败。。。改用MSI版,想省事反倒费事。。。

 

 

 

 


 

 

推荐阅读