一、MySql安装
https://www.mysql.com/(科学访问)
![](https://img.haomeiwen.com/i8811497/33f5ccbc3e51e978.png)
![](https://img.haomeiwen.com/i8811497/d3624d8165a08673.png)
![](https://img.haomeiwen.com/i8811497/dabbd0452910c21b.png)
![](https://img.haomeiwen.com/i8811497/80306ad1f95d6fdb.png)
![](https://img.haomeiwen.com/i8811497/e446f9cbf7ad7c9f.png)
账号:12****80@qq.com 密码:Jq1****8****
![](https://img.haomeiwen.com/i8811497/d84a8bb7c398984e.png)
下载完成后拷贝到需要安装的文件夹内解压
![](https://img.haomeiwen.com/i8811497/bc85a1cbad0be998.png)
把bin目录配置到Path环境变量里面
![](https://img.haomeiwen.com/i8811497/5bc8b56f5f4e969b.png)
![](https://img.haomeiwen.com/i8811497/38047f4679937490.png)
在mysql的根目录下新建my.ini配置文件
![](https://img.haomeiwen.com/i8811497/f1293a5eb0c4e070.png)
[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
![](https://img.haomeiwen.com/i8811497/8f70af0239ef3518.png)
安装服务,执行命令mysqld --install
安装完成之后,就可以通过命令net start mysql启动MySQL的服务了。
登录mysql,执行命令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连接数据库
![](https://img.haomeiwen.com/i8811497/a0966a395d9e65c9.png)
![](https://img.haomeiwen.com/i8811497/41db8472f2c07b18.png)
![](https://img.haomeiwen.com/i8811497/82681cb8080d9a57.png)
四、新建数据库
![](https://img.haomeiwen.com/i8811497/797e21bd4b2e2f03.png)
![](https://img.haomeiwen.com/i8811497/ba9e40dc9c8fe1df.png)
五、新建表
![](https://img.haomeiwen.com/i8811497/9a4a675c601da385.png)
![](https://img.haomeiwen.com/i8811497/500caa25d1bddaea.png)
![](https://img.haomeiwen.com/i8811497/8a57b3aea0f0da77.png)
![](https://img.haomeiwen.com/i8811497/05baf73f111a775f.png)
表建好之后,ctrl+S保存
![](https://img.haomeiwen.com/i8811497/a2419a77f498bf01.png)
网友评论