mysql 5.7.13 安裝配置方法圖文教程(win10 64位)
本文實(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(以下都是) 同過(guò)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需要用到的文件和文件夾。
(9) E:\mysqlData 文件夾里面的文件結(jié)構(gòu)如下:
文件夾: mysql、 performance_schema、 sys
文件: auto.cnf DESKTOP-SDK08IO.pid ib_buffer_pool ib_logfile0 ib_logfile1 ibdata1 ibtmp1 mysql_error_log.err mysql_slow_query.log
(10) 在 E:\mysqlData 文件夾里面的mysql_error_log文件里找到下面這一行:
臨時(shí)密碼是 root@localhost: 后面的#98um:=-RfbI。
(11) 同一個(gè)命令行程序里啟動(dòng)服務(wù)net start mysql 。
(12)新開(kāi)一個(gè)命令后程序,進(jìn)入 D:\program\mysql-5.7.13-winx64\bin 文件夾下,執(zhí)行命令:
mysql -uroot -p
(13) 輸入初始密碼連接進(jìn)入mysql數(shù)據(jù)庫(kù)后,修改密碼如下:
set password=password('123456'); flush privileges;
(14) 輸入exit退出MySQL。
(15) 同一個(gè)命令后程序下,用新的密碼進(jìn)入mysql 執(zhí)行命令:
mysql -uroot -p123456
進(jìn)入MySQL后輸入SQL:
select * from information_schema.TABLES t limit 3;
可以驗(yàn)證一下是否正常安裝。
(16) 去MySQL官網(wǎng)下載安裝Workbench,這樣就可以使用MySQL的圖像界面了。
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
- mysql 5.7.13 安裝配置方法圖文教程(linux)
- mysql 5.7.13 winx64安裝配置方法圖文教程
- mysql 5.7.13 解壓縮版(免安裝)安裝配置教程
- mysql 5.7.13 安裝配置方法圖文教程(win10)
- 最全的mysql 5.7.13 安裝配置方法圖文教程(linux) 強(qiáng)烈推薦!
- mysql5.7.13.zip安裝教程(windows)
- mysql 5.7以上版本安裝配置方法圖文教程(mysql 5.7.12\mysql 5.7.13\mysql 5.7.14)
- mysql 5.7.13 安裝配置筆記(Mac os)
- Linux環(huán)境下mysql5.7.13安裝教程
- mysql5.7.13 環(huán)境搭建教程(解壓縮版)
相關(guān)文章
虛擬主機(jī)MySQL數(shù)據(jù)庫(kù)的備份與還原的方法
虛擬主機(jī)MySQL數(shù)據(jù)庫(kù)的備份與還原的方法...2007-07-07詳解MySQL數(shù)據(jù)庫(kù)優(yōu)化的八種方式(經(jīng)典必看)
關(guān)于數(shù)據(jù)庫(kù)優(yōu)化,網(wǎng)上有不少資料和方法,但是不少質(zhì)量參差不齊,有些總結(jié)的不夠到位,內(nèi)容冗雜。今天給大家分享一篇文章關(guān)于mysql數(shù)據(jù)庫(kù)優(yōu)化的八種方式,非常經(jīng)典,需要的的朋友參考下2017-03-03Mysql查詢正在執(zhí)行的事務(wù)以及等待鎖的操作方式
今天小編就為大家分享一篇關(guān)于Mysql查詢正在執(zhí)行的事務(wù)以及等待鎖的操作方式,小編覺(jué)得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來(lái)看看吧2018-12-12Navicat中新建MySQL數(shù)據(jù)庫(kù)與新建、修改、刪除數(shù)據(jù)表及刪除數(shù)據(jù)庫(kù)詳細(xì)操作方法
Navicat是一套快速、可靠并價(jià)格相當(dāng)便宜的數(shù)據(jù)庫(kù)管理工具,專為簡(jiǎn)化數(shù)據(jù)庫(kù)的管理及降低系統(tǒng)管理成本而設(shè),這篇文章主要給大家介紹了關(guān)于Navicat中新建MySQL數(shù)據(jù)庫(kù)與新建、修改、刪除數(shù)據(jù)表及刪除數(shù)據(jù)庫(kù)詳細(xì)操作的相關(guān)資料,需要的朋友可以參考下2023-11-11mysql 觸發(fā)器實(shí)現(xiàn)兩個(gè)表的數(shù)據(jù)同步
本文將介紹mysql 觸發(fā)器實(shí)現(xiàn)兩個(gè)表的數(shù)據(jù)同步,需要的朋友可以參考2012-11-11