本文整理自网络,侵删。
本文实例为大家分享了mysql5.7安装图文教程供大家参考,具体内容如下
1.在官网下载解压缩版
2.解压后配置默认文件
新建个my.ini(可以复制一份my-default.ini,并改名为my.ini)。my.ini会替换掉下面的my-default.ini文件。
按需修改配置文件。
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. innodb_buffer_pool_size = 600M #(Mysql数据缓存大小,根据自己内存大小跟需求调整) # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. basedir = C:\Program Files\mysql57 #(Mysql目录路径) datadir = C:\Program Files\mysql57\data #(Mysql库路径,默认是跟根录下data文件夹,注意这个路径改了的话一定要把原data目录下的文件复制过去,不然会报1067错误) character-set-server=utf8 #(服务器默认字符,跟上面保持一致) port = 3306 #(Mysql使用端口,默认3306) server_id = 11 # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M (Join操作使用内存) # sort_buffer_size = 2M (排序使用内存) # read_rnd_buffer_size = 2M (随机读取数据缓冲区使用内存)(以上三条根据自己的情况设置) sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
3.安装mysql服务
相关阅读 >>
mysql:简单介绍concat和group_concat使用方法
更多相关阅读请进入《mysql》频道 >>

数据库系统概念 第6版
本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。