Mysql database portable installation + MySQL database management tool portable installation + mysql-connector download and placement

Mysql database portable installation

Insert picture description here

.Create a new my.ini and modify it according to the following comments
Insert picture description here

[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=~~~~~~
# 设置mysql数据库的数据的存放目录
datadir=~~~~~~
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB

5. Initialize and start the Mysql service:
5.1 Run cmd with administrator privileges and enter the mysql bin
Insert picture description here

初始化,生成data文件夹
 mysqld  --initialize-insecure
安装MySql服务
 mysqld -install
启动服务:
 net start mysql

Error: Insert picture description here
Downloading dependent file solutions or installing other versions (mysql -v view version) of the database does not require this dependent download address

Error: (Login as administrator)
mysqld: Can't change dir to'C:\Users***\MySQL\MySQL Server 5.1\Data' (Errcode: 22)

Insert picture description here
Insert picture description here
Insert picture description here
List of Mysql Error Reports
Check the database log and check the reason for the error:

C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin>mysqld --console
Insert picture description here
报错:
The service already exists!
The current server installed: “C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld” MySQL
Insert picture description here

Insert picture description here
Insert picture description here
set password for root@localhost = password(‘YourPassword’);
测试:
Insert picture description here

MySQL database management tool portable installation

https://www.heidisql.com/download.php?download=installer

Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here
Insert picture description here

mysql-connector download and placement

mysql-connector download

1. Create a new project
Insert picture description here
2. Place the jar package under WEB-INF/lib
Insert picture description here

Guess you like

Origin blog.csdn.net/ResumeProject/article/details/113629676