這篇文章主要為大家分享了mysql 5.7.17 winx64.zip安裝配置方法圖文教程,具有一定的參考價值,有興趣的朋友可以參考一下
前言:重裝win10順帶整理文件,然而裝個MySQL用了我一下午,真是不值,所以寫這篇來幫助大家。出,希望對你有幫助。 #
三、設定環境變數
(1)設定Path
##(2)修改mysql-default.ini
設定檔原先的:
https://dev.mysql.com/downloads/mysql/
四、以管理員身分進入指令提示字元cmd
注意:先mysqld -install,再mysqld –initialize
(1)執行mysqld -install# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
C:\Users\donald>cd D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin C:\Users\donald>d: D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>mysqld -install Service successfully installed. //成功安装服务
會自動建立data資料夾
#(3)mysqld.exe -nt –skip-grant -tables(注意:窗口無反應)
D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>mysqld --initialize D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>
(4)直接關閉窗口,再重新打開dos(同樣管理員身份方式打開)
D:\tools\developer\MySQL\mysql-5.7.17-winx64\bin>mysqld.exe -nt --skip-grant-tables
(1)在工作管理員中終止mysqld進程,開啟mysql服務
C:\Users\donald>mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.17 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> use mysql Database changed mysql> update user set authtication_string=Password('admin') where user="root"; //这时候会提示修改成功等,或者waring 什么的。 mysql>flush privileges; 0 rows affected (0.01 sec)
若出現:
以上是詳解mysql5.7.17 winx64.zip安裝配置的方法(圖文)的詳細內容。更多資訊請關注PHP中文網其他相關文章!