一谈火、MySql安裝
https://www.mysql.com/(科學訪問)
賬號:12****80@qq.com ? ?密碼:Jq1****8****
下載完成后拷貝到需要安裝的文件夾內解壓
把bin目錄配置到Path環(huán)境變量里面
在mysql的根目錄下新建my.ini配置文件
[mysqld]
# 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 = 128M
# 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:\develop\mysql-8.0.13-winx64
#data目錄
datadir = D:\develop\mysql-8.0.13-winx64\data
port = 3306
# server_id = .....
# 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
character-set-server = utf8mb4
performance_schema_max_table_instances = 600
table_definition_cache = 400
table_open_cache = 256
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4
準備就緒后打開命令行,輸入mysqld --initialize --console
安裝服務扭粱,執(zhí)行命令mysqld --install
安裝完成之后琢蛤,就可以通過命令net start mysql啟動MySQL的服務了。
登錄mysql博其,執(zhí)行命令mysql -uroot -p ? ?然后輸入密碼
更改加密方式:ALTER USER 'root'@'localhost' IDENTIFIED?BY 'password' PASSWORD EXPIRE NEVER;
更改密碼:9527? ??ALTER USER 'root'@'localhost' IDENTIFIED?WITH mysql_native_password?BY '9527';
刷新:FLUSH?PRIVILEGES;
二贺奠、安裝navicat并破解
地址:https://pan.baidu.com/s/1k3nlBBpYqSpYo9Or4sECNA ? ? 提取碼:u66u
直接下一步傻瓜式安裝,安裝完成之后雙擊破解補丁挂据,選擇到安裝目錄下的navicat.exe即可
三儿普、navicat連接數(shù)據(jù)庫
四眉孩、新建數(shù)據(jù)庫
五浪汪、新建表
表建好之后广恢,ctrl+S保存