一、下载MySQL
首先,去数据库的官网http://www.mysql.com下载MySQL。
点击进入后的首页如下:
![](https://p0.ssl.img.360kuai.com/t018e826cf3308e395c.png?size=1377x914)
然后点击downloads,然后选择MySQL Community (GPL) Downloads 。等到下图:
![](https://p0.ssl.img.360kuai.com/t014e826a72fa7ad664.png?size=931x527)
选择MySQL Community Server
![](https://p0.ssl.img.360kuai.com/t01f742a0af46953c20.png?size=902x724)
这边注意选择安装包版本
MYSQL两种安装方式教程:
- msi安装包自动安装教程;
- zip包解压配置安装教程;
![](https://p0.ssl.img.360kuai.com/t01feff8c9d8f88ec9d.png?size=972x508)
鼠标一直滚到最下方,可供选择的下载安装包有2个(放心,别看安装包是32bit的,它也能兼容64位),选择比较大的那个安装包;
![](https://p0.ssl.img.360kuai.com/t013fe9ee67adf8b555.png?size=1032x576)
点击download进入下载页面选择No thanks, just start my download就可以开始下载了,当然你要是想注册也可以注册一下。
二、安装MySQL
打开刚刚下载好的安装包,开始安装MySQL。
选择 I accept 然后点击next进入下一步。
![](https://p0.ssl.img.360kuai.com/t01c426a8e0da6d2e9e.png?size=1178x889)
第一个选项
![](https://p0.ssl.img.360kuai.com/t0137b4e40589f03935.png?size=509x553)
第二个选项
![](https://p0.ssl.img.360kuai.com/t01408944cbc45f8fb8.png?size=521x75)
第三个选项
![](https://p0.ssl.img.360kuai.com/t01363ccc0eff4f6f5a.png?size=515x459)
第四个选项
![](https://p0.ssl.img.360kuai.com/t01e0a48a8dd672d97b.png?size=506x51)
最后一个选项(这个可以选择安装目录的)
![](https://p0.ssl.img.360kuai.com/t01482847cbf528a5bb.png?size=504x62)
笔者在这里给一点建议:
经过查阅最后一个可以选择安装目录,建议选最后一个
你自己看看情况吧,应该拿捏的准
选择好之后点击next,可以选择我们的路径配置,然后next,第一次安装可能没有下面的Path Conflicts配置这一步,不慌!没有这一步的直接跳过!让他默认就好!!!!!!!!!!或者你可以退出然后重新安装就有了
![](https://p0.ssl.img.360kuai.com/t01fb45edc52390c4bf.png?size=1178x889)
根据我需求选了三个通用的,以后如果需要别的还可以点击安装包添加的。Next
![](https://p0.ssl.img.360kuai.com/t01afa25ec231a5568c.png?size=762x568)
选择安装路径记得填写
![](https://p0.ssl.img.360kuai.com/t012b3ec82d5ce38153.png?size=1178x889)
这里直接点击execute执行就可以了,执行完后点击next进入下一步。
![](https://p0.ssl.img.360kuai.com/t01ca6c18e806db57bf.png?size=786x588)
一路Next直到
![](https://p0.ssl.img.360kuai.com/t01ca3eafe4a76fda55.png?size=1178x889)
请记住你的端口号,如果端口号被占用记得修改,继续一路Next
![](https://p0.ssl.img.360kuai.com/t01dee06b3a37d80373.png?size=1178x889)
设置账号密码,添加用户,请务必记得密码,
·![](https://p0.ssl.img.360kuai.com/t0190f4e09b95436c55.png?size=1178x889)
一路lNext
![](https://p0.ssl.img.360kuai.com/t01065c6a2affc17a95.png?size=1178x889)
最后跳出
![](https://p0.ssl.img.360kuai.com/t01b5b7aa009de3c729.png?size=1920x1020)
安装成功(建议删除安装包)
如果出现下面情况,需要依次选上出现的条目并双击(或者点击下方Execute按钮)进行安装必要控
![](https://p0.ssl.img.360kuai.com/t010da76ca53c3ec1e6.png?size=621x616)
安装成功!!!
现在我们的mysql命令只能在安装目录的bin文件夹中使用,我们配置一下环境变量,在全局中使用
![](https://p0.ssl.img.360kuai.com/t018e281ae11c421ec3.png?size=765x448)
点击确定,配置好之后,我们就可以在全局中使用mysql命令!
![](https://p0.ssl.img.360kuai.com/t010e6bfbf52b414353.png?size=375x368)
win+R打开窗口输入cmd回车打开命令行!
输入mysql -u root -p回车
输入密码:我们在配置时设置的密码。如果密码不正确可试一下空密码直接回车
![](https://p0.ssl.img.360kuai.com/t0131072e0befc34091.png?size=790x406)
2.问题总结
1.启动server时启动不成功
答:修改服务
2.设置了密码,登陆时输入密码不正确
答:密码设置失败,为空密码
3.如果安装失败一次想重新安装一定要清理干净,包括注册表!!
如何设置中文
![](https://p0.ssl.img.360kuai.com/t01e0a0021eff11b2de.png?size=1491x893)
语言调整方法百:
edit --> preferences --> appearance --> configure Fonts for : 选中Simplified Chinese OK ;
而且需要重启才能生效。
MySQL workbench怎么创建数据库度:
第1步:单击MySQLWorkbench.exe快捷方式,弹问出MySQLWorkbench界面;
第2步:单击菜单栏Database按钮,弹出下拉菜单,单答击Connect to Database;
第3步:单击OK按钮,输入数据库密码;
第4步:单击工具栏按钮(第四个回,即鼠标放在 上面显示Create a new schema in the connected server),创建数据库;
第5步:修改答数据库名字为sqltest,collation保持默认,单击确定;
第6步:其他选项保持默认,单击Apply;
第7步:其他选项保持默认,单击Finish;
第8步:可以看到Nav.
![](https://p0.ssl.img.360kuai.com/t01337c61d4a35bf481.png?size=1028x739)
如果你屏幕够大
![](https://p0.ssl.img.360kuai.com/t0181a25e8fb2d96508.png?size=1920x1040)
安装错了如何卸载(可以在这里添加需要安装的包)
打开你下载的安装包
![](https://p0.ssl.img.360kuai.com/t014f3c2c0cedc5532e.png?size=1178x889)
全选 Next,一路Next,全部继续无脑就完事了。
![](https://p0.ssl.img.360kuai.com/t01e8ad4d80c387fd50.png?size=1178x889)
然后剩下的去程序和功能内卸载
![](https://p0.ssl.img.360kuai.com/t01bbf855c3b324f807.png?size=1772x382)
","gnid":"99b6d77f7c3f8a524","img_data":[{"flag":2,"img":[{"desc":"","height":"914","title":"","url":"https://p0.ssl.img.360kuai.com/t018e826cf3308e395c.png","width":"1377"},{"desc":"","height":"527","title":"","url":"https://p0.ssl.img.360kuai.com/t014e826a72fa7ad664.png","width":"931"},{"desc":"","height":"724","title":"","url":"https://p0.ssl.img.360kuai.com/t01f742a0af46953c20.png","width":"902"},{"desc":"","height":"508","title":"","url":"https://p0.ssl.img.360kuai.com/t01feff8c9d8f88ec9d.png","width":"972"},{"desc":"","height":"576","title":"","url":"https://p0.ssl.img.360kuai.com/t013fe9ee67adf8b555.png","width":"1032"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t01c426a8e0da6d2e9e.png","width":"1178"},{"desc":"","height":"553","title":"","url":"https://p0.ssl.img.360kuai.com/t0137b4e40589f03935.png","width":"509"},{"desc":"","height":"75","title":"","url":"https://p0.ssl.img.360kuai.com/t01408944cbc45f8fb8.png","width":"521"},{"desc":"","height":"459","title":"","url":"https://p0.ssl.img.360kuai.com/t01363ccc0eff4f6f5a.png","width":"515"},{"desc":"","height":"51","title":"","url":"https://p0.ssl.img.360kuai.com/t01e0a48a8dd672d97b.png","width":"506"},{"desc":"","height":"62","title":"","url":"https://p0.ssl.img.360kuai.com/t01482847cbf528a5bb.png","width":"504"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t01fb45edc52390c4bf.png","width":"1178"},{"desc":"","height":"568","title":"","url":"https://p0.ssl.img.360kuai.com/t01afa25ec231a5568c.png","width":"762"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t012b3ec82d5ce38153.png","width":"1178"},{"desc":"","height":"588","title":"","url":"https://p0.ssl.img.360kuai.com/t01ca6c18e806db57bf.png","width":"786"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t01ca3eafe4a76fda55.png","width":"1178"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t01dee06b3a37d80373.png","width":"1178"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t0190f4e09b95436c55.png","width":"1178"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t01065c6a2affc17a95.png","width":"1178"},{"desc":"","height":"1020","title":"","url":"https://p0.ssl.img.360kuai.com/t01b5b7aa009de3c729.png","width":"1920"},{"desc":"","height":"616","title":"","url":"https://p0.ssl.img.360kuai.com/t010da76ca53c3ec1e6.png","width":"621"},{"desc":"","height":"448","title":"","url":"https://p0.ssl.img.360kuai.com/t018e281ae11c421ec3.png","width":"765"},{"desc":"","height":"368","title":"","url":"https://p0.ssl.img.360kuai.com/t010e6bfbf52b414353.png","width":"375"},{"desc":"","height":"406","title":"","url":"https://p0.ssl.img.360kuai.com/t0131072e0befc34091.png","width":"790"},{"desc":"","height":"893","title":"","url":"https://p0.ssl.img.360kuai.com/t01e0a0021eff11b2de.png","width":"1491"},{"desc":"","height":"739","title":"","url":"https://p0.ssl.img.360kuai.com/t01337c61d4a35bf481.png","width":"1028"},{"desc":"","height":"1040","title":"","url":"https://p0.ssl.img.360kuai.com/t0181a25e8fb2d96508.png","width":"1920"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t014f3c2c0cedc5532e.png","width":"1178"},{"desc":"","height":"889","title":"","url":"https://p0.ssl.img.360kuai.com/t01e8ad4d80c387fd50.png","width":"1178"},{"desc":"","height":"382","title":"","url":"https://p0.ssl.img.360kuai.com/t01bbf855c3b324f807.png","width":"1772"}]}],"original":0,"pat":"art_src_0,fts0,sts0","powerby":"cache","pub_time":1684375971000,"pure":"","rawurl":"http://zm.news.so.com/105dd098590927581f8554285d7f051b","redirect":0,"rptid":"ad4bdecf63215571","rss_ext":[],"s":"t","src":"大凡","tag":[{"clk":"ktechnology_1:mysql","k":"mysql","u":""}],"title":"超详细MySQL安装及基本使用教程_mysql安装教程
步竹送3577mysql数据库5.7怎么安装? -
平伦贺17329558771 ______ mysql数据库5.7安装的方法:首先进入浏览器,找到mysql数据库5.7下载,下载之后找到安装包保存的文件夹,点击进入,如果电脑的扫毒软件要选择信任,按照提示说明一步一步地安装,最后可以在电脑开始菜单栏中找到安装好的软件,既可...
步竹送3577如何安装mysql5.7压缩包 -
平伦贺17329558771 ______ 先安装好操作系统 在Mysql官网上下载最新版的Ubuntu Linux专用的Mysql.我这里下载的是:mysql-server_5.7.11-1ubuntu14.04_amd64.deb-bundle.tar. 解压文件 命令为:tar -xvf mysql-server_5.7.11-1ubuntu14.04_amd64.deb-bundle.tar. 解...
步竹送3577mysql 5.7怎么设置成utf8mb4 -
平伦贺17329558771 ______ 1、首先是安装mysql数据库,win的直接上网搜一下教程.2、如果是linux的,就输入以下的命令:sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install libmysqlclient-dev 还需要设置用户名和密码,这里就不多介绍...
步竹送3577mysql 5.7绿色版怎么用 -
平伦贺17329558771 ______ mysql 5.7绿色版怎么用 从MSQL官网下载MySQL服务器安装软件包,下面以mysql-installer-community-5.7.3.0-m13.msi为例. 1、双击进入安装 2、在协议许可(License Agreement)界面,勾寻I accept the license terms”,点击“Next”.
步竹送3577mysql5.7解压版怎么安装 -
平伦贺17329558771 ______ 安装mysql5.7解压版1 解压缩 将下载到的文件解压缩到自己喜欢的位置,例如我自己的位置是D:\Program Files\mysql-5.7.10-winx642 添加环境变量 右键计算机->属性->高级系统设置->环境变量;在系统变量里添加MYSQL_HOME环境变量,变量值为MySQL的根目录,例 如我的是D:\Program Files\mysql-5.7.10-winx64(原路径有错,已更改,对受误导的网友表示抱歉.谢谢网友“庞大进”的提醒,2016.5.7) 找到path,选择编辑,在原有值末尾添加;%MYSQL_HOME%\bin
步竹送3577mysql5.7安装后怎么配置 -
平伦贺17329558771 ______ 1、解压MySQL压缩包 将下载的MySQL压缩包解压到自定义目录下,解压目录是: "D:\Program Files\mysql-5.7.11-winx64" 将解压目录下默认文件 my-default.ini 拷贝一份,改名 my.ini 复制下面的配置信息到 my.ini 保存 #如果没有my-default....
步竹送3577mysql5.7免安装的怎么配置 -
平伦贺17329558771 ______ 1.第一步解压文件,随便放到一个文件夹下面,如:D:\mysql-5.7.15-winx64 2.配置环境变量,在系统变量path后面追加D:\mysql-5.7.15-winx64\bin 3.复制my-default.ini,命名为my.ini,打开my.ini,加入 basedir = D:\mysql-5.7.15-winx64 datadir ...
步竹送3577win10 重装 安装版 mysql5.7 怎么配置 -
平伦贺17329558771 ______ 方法/步骤1 将下载的mysql-5.6.24-win32.1432006610.zip解压到C:\Program Files(x86)\MySQL路径中(因为下载的是mysql32位版),当然你也可以选择解压到其他盘符.2 接下来配置环境变量,如没有配置会提示:发生系统错误 2,未找到指...
步竹送3577mysql5.7版本workbench怎么安装 -
平伦贺17329558771 ______ 没看懂什么意思?
步竹送3577mysql5.7解压后怎么安装图解 -
平伦贺17329558771 ______ 解压缩后运行程序开始安装,选择接受协议,点击下一步.因为用户是第一次使用不了解MySQL32位,所以建议选择“typical”.点击“install”开始安装.安装完成.MySQL数据库:http://www.3322.cc/soft/4879.html