国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > MySQL > 正文

mysql 5.7.13 安裝配置方法圖文教程(win10 64位)

2024-07-24 12:52:35
字體:
供稿:網(wǎng)友

本文實(shí)例為大家分享了mysql 5.7.13 winx64安裝配置方法圖文教程,供大家參考,具體內(nèi)容如下

(1) 下載MySQL程序,您可以從MySQL官網(wǎng)上下載,或者點(diǎn)擊這里下載
(2) 解壓mysql-5.7.13-winx64.zip文件到你想安裝的目錄,我的例子是
D:/program/mysql-5.7.13-winx64。其中的目錄結(jié)構(gòu)如下:
文件夾:bin docs include lib share
文件: COPYING README my-default.ini
(3) 拷貝文件 my-default.ini 到相同目錄下重命名為my.ini。
(4) E盤新建一個(gè)mysqlData文件夾。
(5) 在my.ini里面內(nèi)容清空,重新復(fù)制成一下內(nèi)容。

[client] no-beep # pipe # socket=mysql port=3306 [mysql] default-character-set=utf8 # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/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] explicit_defaults_for_timestamp = TRUE # 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 = 2G # 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="D:/program/mysql-5.7.13-winx64/" datadir="E:/mysqlData/" port=3306 server_id=1 general-log=0 general_log_file="mysql_general.log" slow-query-log=1 slow_query_log_file="mysql_slow_query.log" long_query_time=10 log-error="mysql_error_log.err" default-storage-engine=INNODB max_connections=1024 query_cache_size=128M key_buffer_size=128M innodb_flush_log_at_trx_commit=1 innodb_thread_concurrency=128 innodb_autoextend_increment=128M tmp_table_size=128M # 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 # sort_buffer_size = 2M # read_rnd_buffer_size = 2M #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" character-set-server=utf8 innodb_flush_method=normal

(6) 管理員身份進(jìn)入cmd(以下都是) 同過cd 命令進(jìn)入到mysql目錄下的bin文件夾下。
(7) 執(zhí)行安裝mysql服務(wù)的命令:

mysqld --install MySQL --defaults-file=D:/program/mysql-5.7.13-winx64/my.ini

安裝成功后提示:Service successfully installed

(8) 為了生成data目錄及初始化數(shù)據(jù),執(zhí)行以下命令:

mysqld --initialize

這個(gè)命令執(zhí)行完之后,就會(huì)在上文新建的 E:/mysqlData 文件夾里面生成MySQL需要用到的文件和文件夾。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 万载县| 密山市| 宁远县| 新干县| 新余市| 留坝县| 东兴市| 崇礼县| 屏南县| 五华县| 三门峡市| 枝江市| 闻喜县| 中宁县| 绥江县| 诸城市| 太保市| 松滋市| 麦盖提县| 乌苏市| 五河县| 揭阳市| 鄂伦春自治旗| 麟游县| 石景山区| 万载县| 徐州市| 麻城市| 湖南省| 沈丘县| 吉首市| 冀州市| 汝城县| 珲春市| 方正县| 余庆县| 元谋县| 府谷县| 和政县| 刚察县| 淮滨县|