当前位置:网站首页>Gin Vue admin uses the database in the docker container
Gin Vue admin uses the database in the docker container
2022-07-27 06:46:00 【lianyz1985】
The situation of this machine
- Use gin-vue-admin The branch of gin-vue-admin_v1_stable
- mysql8.0 Containers Port is 3307
initialization mysql Database in container
By the following command will qmplus.sql Copy files to container
cd ~/gin-vue-admin/QMPlusServer/db/qmplus.sql
docker cp ./qmplus.sql mysql8.0:/home
Through container CLI Enter the command line of the container ;
Run the following command to create the database
mysql -u root -p
> create database qmPlus;
> use qmPlus;
> show databases;
> show tables;
> source /home/qmplus.sql;
Running the back end
Modify backend database configuration
~/gin-vue-admin/QMPlusServer/static/config/config.json Modify the following
"mysqladmin": {
"username": "root",
"password": "root",
"path": "127.0.0.1:3307",
"dbname": "qmPlus",
...
Compile and start the backend
cd ~/gin-vue-admin/QMPlusServer/
go build
./gin-vue-admin
Run front end
cd ~/gin-vue-admin/QMPlusVuePage/
npm install
npm run serve
边栏推荐
- PXE efficient batch network installation
- Shell sentence judgment exercise
- Decorator functions and the use of class decorators
- If conditional statement of shell
- Redis快速学习
- DHCP principle and configuration
- Source code compilation and installation LNMP and discuz Forum
- Using markdowm
- Shell -- operation of variables
- Shell语句判断练习题
猜你喜欢

pycharm在虚拟环境下跑jupyter notebook问题记录

FTX US launched FTX stocks, striding forward to the mainstream financial industry

Shell script loop

Inventory of the world's six most technologically competent smart contract audit companies in 2022

LVM and disk quota

Lamp -- source code compilation and installation

Pruning - quantification - turn to onnx Chinese series tutorials

向日葵全面科普,为你的远程控制设备及时规避漏洞

Function call of shell script

关于在Gazebo中给无人机添加相机(摄像头)之后,无人机无法起飞
随机推荐
FTX.US推出股票和ETF交易服务,让交易更透明
Constraints and design of database
Rsync remote synchronization
PXE efficient batch network installation
LVM and disk quota
If conditional statement of shell
云原生运行环境搭建
Source code compilation and installation lamp and discuz Forum
Soul持续发力社交渠道赴港上市,“Soul式社交”凭什么火出圈?
Network troubleshooting: Ping and tracert commands
1. Install redis in CentOS 7
项目实训经历2
Shell script loop
Common font and color settings of markdown documents
Basic knowledge of English: juxtaposition structure
Open source WebGIS related knowledge
FTX 基金会资助1500万帮助新冠疫苗临床实验,将影响全球公共卫生
Shell script backup MySQL database
FTX US launched FTX stocks, striding forward to the mainstream financial industry
regular expression