一、下载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安装教程
瞿注呢2027如何用cmd命令查看mysql数据库 -
俞泄居15743306442 ______ 1、一般对于刚刚安装好的mysql,如果勾选启用mysql lineclient的话.可以直接通过找到开始---程序--- mysql command line client 2、点击mysql命令行之后,会提示你输入root密码.输入正确的root密码之后即可连接到msyql数据库里啦 3、 如果...
瞿注呢2027怎么测试mysql是否安装成功 -
俞泄居15743306442 ______ 你是用的windows还是linux?如果是linux,在系统终端输入mysql -u root -p,然后输入你的mysql密码,如果能够登录进去,说明安装成功了. windows也是一样的,打开cmd,输入上述命令, (可能需要进入mysql 安装目录的bin目录)怎么测试mysql是否安装成功
瞿注呢2027怎么看自己电脑有没安装mysql -
俞泄居15743306442 ______ 你去控制面板--管理工具--服务 打开看看 里面找一个mysql的服务项, 找到了说明你安装过了mysql, 找不到一般就没有安装.
瞿注呢2027怎么确认mysql是否安装好了 -
俞泄居15743306442 ______ 查看mysql服务是否安装的方法:在完成安装Mysql后,使用mysql时,打开cmd,输入net start mysql,提示服务名无效,查看服务列表,也结果找不到mysql相关的服务,就证明没有安装mysql服务.解决方法如下:1、打开cmd,切换到mysql的...
瞿注呢2027如何用cmd连接Mysql数据库 -
俞泄居15743306442 ______ 以window系统为例,首先,我们把鼠标移动到左下角的开始,点击【开始】按钮,找到【运行】,打开运行后,在输入框里面输入“cmd”,然后按回车键(也就是enter键),随即进入了cmd模式(一个背景为黑色的窗口,里面有一些英文字...
瞿注呢2027dos命令行怎么查询mysql数据库 -
俞泄居15743306442 ______ mysql数据的查询是通过sql语句来实现的,常用的查询操作如下: 1、连接数据库 mysql -u 用户名 -p 用户密码 说明:可以在命令中直接接入密码,也可以不加入密码. 2、查看所有数据库 show databases; 3、选择数据库 use databasename; 3、查看该数据库下所有表 show tables; 4、查看表的区段 describe 表名; 5、查询表数据 select 字段名 from 表名;
瞿注呢2027vc 查看本机是否安装mysql了的方法 -
俞泄居15743306442 ______ 开始按钮,运行,然后在里面打上cmd(或者直接写mysql,看看反应);后来在控制台输入mysql有反应就装了否则,没有或者装失败了
瞿注呢2027在CMD中用什么命令进入MySQL控制台?
俞泄居15743306442 ______ 进入mysql安装目录的bin目录 然后执行命令 mysql -uuser -ppassword database 比如用户名为root,密码为mysql,数据库为test 命令如下 mysql -uroot -pmysql test 也可以直接执行mysql -uroot -pmysql 进入控制台后,使用use test;
瞿注呢2027怎么在cmd里进入mysql -
俞泄居15743306442 ______ 把mysql的bin路径,加到环境变量的path里面
瞿注呢2027怎么用cmd操作mysql数据库 -
俞泄居15743306442 ______ 通常我们在网络上看到的mysql教程和mysql工具书,里面都是cmd命令和结果集. 也许有一些初学者不懂在系统的哪个角落输入这些命令,或者启动mysql的一些工具,下面教你怎样进入这个mysql的cmd模式和基本的mysql的cmd操作. 以...