一、下载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":"hbase","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安装教程
萧筠蕊2906mysql企业版怎么安装图解 -
郟昭华19162387607 ______ 双击进入安装,如下图:最新Mysql5.7安装教程(图文版本)2 点击上图红框“Install MySQL Products”进入安装界面,如下图:最新Mysql5.7安装教程(图文版本)3 根据上图当中第一步骤与第二步骤,进入下图:最新Mysql5.7安装教程(图...
萧筠蕊2906mysql如何安装 -
郟昭华19162387607 ______ mysql的安装文件可以直接到 http://www.mysql.com 下载,获得for win32的.zip包,建议选择4.0.20d版本.这里不详细说明. 下载获得mysql的for win32安装包后,用winzip解压缩,直接运行setup.exe,需要注意的是选择一个安装路径,当然,...
萧筠蕊2906如何安装mysql数据库6.3.8版本 -
郟昭华19162387607 ______ 一、免安装版mysql安装步骤 1:开始-->运行-->输入cmd命令-->在命令窗口上输入 cd 解压的mysql的bin文件夹目录 回车 例如:cd C:\Documents and Settings\Administrator\桌面\MySQL\MySQL Server 5.0\bin 2:输入mysqld-nt -install命令,回...
萧筠蕊2906如何安装mysql?我用的mysql - 4.1.22 - win32 -
郟昭华19162387607 ______ 安装Mysql 5.0先到官方网站去下个for win的压缩包 mysql-5.0.2-alpha-win(1) 下载地址: http://dev.mysql.com/downloads/mysql/5.0.html 安装mysql 5.0前一定要把旧版本卸载掉,安装它的环境不能杂,为啦把它装起来我的系统是重做的,mysql 5.0...
萧筠蕊2906安装MySQL事务数据库都需要哪些步骤 -
郟昭华19162387607 ______ 按常规的方法进行安装 安装MySQL完成后,启动MySQL(和PHP搭配之最佳组合)binWinMySQL(和PHP搭配之最佳组合)admin 再退出 运行 MySQL(和PHP搭配之最佳组合)binmydqld-nt --remove MySQL(和PHP搭配之最佳组合)...
萧筠蕊2906如何安装 MySQL与使用MySQL GUI Tools -
郟昭华19162387607 ______ 1 运行Mysql Gui tools 安装文件,进入安装界面.点击“Next”按钮; 2 查看并接收其版权说明,点击“Next”按钮; 3 默认路径进行安装,点击“Next”; 4 选择“Complete”完全安装方式,按“Next”继续; 5 确认信息后,点击“Install”,开始安装; 6 安装中; 7 安装结束后,是两页Mysql的说明,点击“Next”两次; 8 最后点击“Finish”完成安装;
萧筠蕊2906安装mysql的方法 -
郟昭华19162387607 ______ #cd /usr/ports/databases/mysql5l1-server #make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=yes install clean #...
萧筠蕊2906mysql怎么安装? -
郟昭华19162387607 ______ # cd /setup # tar zxvf DBD-mysql-2.9002.tar.gz -C /setup # tar zxvf DBI-1.38.tar.gz -C /setup # cd DBI-1.38 # perl Makefile.PL # make # make test # make install 因为有的perl程序中perl的路径是/usr/local/bin/perl,而红帽系统默认是/usr/bin/perl,所...
萧筠蕊2906如何安装mysql5.5数据库 -
郟昭华19162387607 ______ 首先自然是下载mysql了,目前mysql的版本好像出到了5.5.29,而且mysql又分为了linux版本和windows版本,需要根据自己的需求下载对应的版本,小编的操作系统是windows的,所以就下载windows版本的mysql.如果是在官网下载找不到地方...