mysql5.7.13.zip裝置教程(windows)。本站提示廣大學習愛好者:(mysql5.7.13.zip裝置教程(windows))文章只能為提供參考,不一定能成為您想要的結果。以下是mysql5.7.13.zip裝置教程(windows)正文
這是我之進步行MySQL免裝置版下載與設置裝備擺設的具體進程,先分享給年夜家。
1. 下載Mysql
官方:http://www.mysql.com→downloads→選社區版本MySQL Community Edition(GPL)→點擊Community(GPL)Downloads>>→MySQL Community Server(GPL)→選擇本身要下載的版本(我是64位體系選擇的是Windows (x86, 64-bit), ZIP Archive)→Downloads→No thanks, just start my download.
2.設置裝備擺設情況變量
先將下載好的文件解壓到你要裝置的地位,我解壓到了D:\servers\mysql
計劃1:新建情況變量,變量稱號:MYSQL(普通年夜寫、也可小寫),變量值:D:\servers\mysql,向path中添加%MYSQL%/bin
計劃2:直接向path中添加D:\servers\mysql\bin
3.裝置MySQL辦事
敕令行進入mysql的bin目次下
(注:進入D盤直接輸出“D:“,應用“cd 文件夾名”進入某個文件夾 ,“cd..“前往上一目次)
輸出service install或許mysqld install 提醒裝置勝利
輸出net start mysql 啟動mysql辦事
應用mysql –u root –p (此敕令是root登入,為簡寫,具體格局自行查找),root默許暗碼為空,直接回車便可
4.mysql.ini
原文件為mysql-defult.ini
修正個中的basedir=D:/servers/mysql
datadir=D:/servers/mysql/data
留意:途徑之間為“/“,假如直接復制過去沒有改會湧現”體系毛病1067“
體系毛病5 應用治理員權限翻開敕令提醒符
5.銜接mysql
敕令提醒符下輸出:mysql -uroot -p
root默許暗碼為空,直接回車便可進入
依照我之前裝置5.6的裝置辦法(MySQL免裝置版下載與設置裝備擺設)裝置5.7的時刻湧現成績:
mysql辦事沒法啟動,辦事沒有報任何毛病
其其實這學期開端進修mysql的時刻,就聽先生同窗說,登錄不了的成績,其時沒有在乎,也是由於電腦上早就裝置了mysql5.6,也就沒有在乎這個成績。這兩天win10體系出成績,重裝了win7,裝置5.7的時刻湧現了這個成績。
之前的版本默許暗碼為空,詳細版本不太清晰,橫豎5.6暗碼是空。5.7的平安性晉升,在linux裝置5.7的時刻,裝置完成後會生成一個隨機性暗碼,存儲在root/.mysql_secret中,假如沒有這個文件,去體系日記中查找password,就應當能找到。
然則windows下就不曉得若何處理了,不外最初照樣找到懂得決辦法。
處理辦法:
來自:windows MySql 5.7.9,啟動不了。缺乏data
但是其實不是缺乏data文件夾,將my-default.ini文件更名為my.ini,挪動到bin/目次下,在bin/下履行敕令 mysqld --initialize --user=mysql --console ,這條敕令估量是初始化的敕令
然後啟動辦事 net start mysql
敕令行顯示貼在這
Microsoft Windows [版本 6.1.7601]
版權一切 (c) 2009 Microsoft Corporation。保存一切權力。
C:\Windows\system32>cd .. C:\Windows>cd .. C:\>cd mysql-5.7.13-winx64/Boot 體系找不到指定的途徑。 C:\>cd mysql-5.7.13-winx64\bin C:\mysql-5.7.13-winx64\bin>mysqld install Service successfully installed. C:\mysql-5.7.13-winx64\bin>net start mysql MySQL 辦事正在啟動 . MySQL 辦事沒法啟動。 辦事沒有申報任何毛病。 請鍵入 NET HELPMSG 3534 以取得更多的贊助。 C:\mysql-5.7.13-winx64\bin>net start mysql MySQL 辦事正在啟動 . MySQL 辦事沒法啟動。 辦事沒有申報任何毛病。 請鍵入 NET HELPMSG 3534 以取得更多的贊助。 C:\mysql-5.7.13-winx64\bin>mysqld --initialize --user=mysql --console 2016-06-21T14:07:20.922112Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see doc umentation for more details). 2016-06-21T14:07:22.669315Z 0 [Warning] InnoDB: New log files created, LSN=45790 2016-06-21T14:07:23.106116Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2016-06-21T14:07:23.308916Z 0 [Warning] No existing UUID has been found, so we a ssume that this is the first time that this server has been started. Generating a new UUID: 79c8386d-37b9-11e6-9709-74867a6179b7. 2016-06-21T14:07:23.340116Z 0 [Warning] Gtid table is not ready to be used. Tabl e 'mysql.gtid_executed' cannot be opened. 2016-06-21T14:07:23.355716Z 1 [Note] A temporary password is generated for root@ localhost: rr9.8h74twfR C:\mysql-5.7.13-winx64\bin>mysql -uroot -prr9.8h74twfR mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) C:\mysql-5.7.13-winx64\bin>net start mysql MySQL 辦事正在啟動 . MySQL 辦事曾經啟動勝利。 C:\mysql-5.7.13-winx64\bin>mysql -uroot -prr9.8h74twfR mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.13 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> set password=password(''); Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> exit Bye C:\mysql-5.7.13-winx64\bin>mysql -uroot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.13 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit Bye C:\mysql-5.7.13-winx64\bin>
以上就是mysql5.7.13.zip裝置設置裝備擺設辦法,和裝置進程中碰到的成績處理辦法,願望對年夜家的進修有所贊助。