您好,欢迎访问一九零五行业门户网

windows安装mysql_MySQL

bitscn.com
安装mysql
1、双击mysql安装包,点击next。
2、setup type(安装选项),有三种:typical(典型),complete(完全),custom(自定义)。这里我们选custom,然后点击next。
3、custom setup(自定义安装设置),这里依然点击倒三角选择entire feature will be installed on local hard drive把所有的全部安装上去,然后点击下面的change按钮,选择安装位置后,点击next。注意:一定要检查所有选项安装位置,最好都装在同一个位置。
4、ready to install the program(准备安装程序),观察中间的设置,确定无误后,点击next,否则,点击back后修改。
5、在安装的过程中会出现一个新窗口,是给mysql enterprise(mysql企业版)打广告的,忽视掉,一直next,直到这个窗口关闭。
6、wizard complete(安装向导完成),点击launch the mysql instance configuration wizard(启动mysql配置向导)前面的复选框,然后点击finish,这样就进入了mysql配置界面。
7、不用说,点击next。
8、选择配置方式(please select a configuration type)。这里出现了两种选项,一种是detailed configuration(详细配置),一种是stardard configuration(标准配置),这里我们选择detailed configuration。
9、选择服务器类型(please select a server type)。有三种选项:developer machine(开发测试用),server machine(服务器用),dedicated mysql server machine(专门的服务器用),由于我是用来开发的,所以选择了第一项,然后点击next。
10、选择数据库用途(please select a database usage)。有三种:第一种是multifuctional database,第二种是transactional database only,第三种是non-transactional database only,这儿三个选项的区别我也不怎么理解,但依照英文注释以及网上其他的帖子参考就选择了第一项multifuctional database,然后点击next。
11、选择innodb数据库文件存储位置(please select the drive for the innodb datafile),默认是安装的mysql位置。保持默认,直接点击next。
12、选择同时连接到服务器的准确访问量(please set the approximate number of concurrent connections to the server)。三个选项:第一个是decision support(dss)/olap(大约20个),第二个是online transaction processing(oltp)(大约500个),第三个是manual settings(手动设置),由于我是为了开发测试用,所以选择第一个就可以了,然后点击next。
13、网络选项(please select the networking options)。第一个是是否启用tcp/ip连接,我没选,所以只能在自己的电脑上访问sql数据库,第二个是启用严格模式(enable strict mode),我选了,建议新手选上,这样代码更规范些。
14、选择默认字符集(please select the character set)。第一个是stardard character set(标准字符集),默认是latin1,适合存储英文;第二个是best support for multilingualism(最适合多语言),默认是utf8,适合存储多语言字符集;第三个是手动选择。这里我们选择utf8编码,即选择第二种或者第三种中的utf8。
15、设置windows选项(please set the windows options)。第一项是是否安装为windows服务(install as windows service),建议勾选上,下面的service name是服务器标识名称,默认即可,还有个是否随机启动mysql的选项,如果没选的话,以后开启mysql需要在cmd上输入net start mysql。第二项是是否把bin文件夹路径加入环境变量中的path(include bin directory in windows path),建议勾选,这样以后可以直接在cmd上输入bin文件夹上的任意一个文件使用。
16、安全选项(please set the security options)。第一项是修改安全设置(modify security settings),这项中的两项分别是新root密码和确认输入的密码(即再输入一遍),最下面的是创建一个匿名帐号(create an anonymous account),这里对我来说不需要,就没选,然后点击next
bitscn.com
其它类似信息

推荐信息