一文講透Oracle索引執行型別(index unique scan,index range scan,index full scan,index fast full scan,index skip
1、壓縮包下載
連結:https://pan.baidu.com/s/110Z-QYJP9RdLbJafB2HS1Q
提取碼:8r08
或者-mysql官網下載地址:
2、建立資料夾
將下載後的檔案進行解壓,解壓後將資料夾放到非中文無空格路徑下
解壓下載後的檔案如下圖(5個資料夾+2個檔案):
就在該層目錄下建立2個空資料夾(data、Uploads)+1個檔案( my.ini )
建立後如下圖:
3、配置環境變數
點選 計算機 右鍵-->屬性,高階系統配置
變數名:解壓後的資料夾目錄
新增到path中:
至此,確定後就可以在cmd命令下直接執行mysql下的.exe應用了
3、新增建立的my.int檔案的配置(可用Notepad++開啟)
複製以下資訊導my.ini檔案中
[mysqld] port=3306 character_set_server=utf8 basedir=E:\exe\mysql-5.7.23 datadir=E:\exe\mysql-5.7.23\data server-id=1 sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION lower_case_table_names=1 innodb_file_per_table = 1 log_timestamps=SYSTEM log-error = error.log slow_query_log = 1 slow_query_log_file = slow.log long_query_time = 5 log-bin = binlog binlog_format = row expire_logs_days = 15 log_bin_trust_function_creators = 1 secure-file-priv=E:\exe\mysql-5.7.23\Uploads max_allowed_packet = 32M binlog_cache_size = 4M sort_buffer_size = 2M read_buffer_size = 4M join_buffer_size = 4M tmp_table_size = 96M max_heap_table_size = 96M lower_case_table_names=1 innodb_file_per_table = 1 [client] default-character-set=utf8
以上檔案需要修改的地方是:
basedir=E:\exe\mysql-5.7.23 //改為自己解壓後的安裝目錄
datadir=E:\exe\mysql-5.7.23\data
secure-file-priv=E:\exe\mysql-5.7.23\Uploads
4、初始化(注意:以管理員身份執行cmd命令)
依次執行一下序號後的命令:
//初始化data檔案
① mysqld --initialize-insecure 回車
//安裝服務
②mysqld –install MySQL57 回車
//啟動服務
③net start MySQL57 回車
//登入:初始化設定或版本差異,有些版本安裝完成後root是空密碼,或是臨時密碼,可檢視data目錄下的error log日誌提示。
④mysql -uroot -p
//修改密碼
⑤ alter user 'root'@'localhost' identified by 'root';
⑥ flush privileges;