当前位置:网站首页>Httprunnermanager installation (III) - configuring myql Database & initialization data under Linux
Httprunnermanager installation (III) - configuring myql Database & initialization data under Linux
2022-07-06 02:24:00 【iBigder】
Next chapter :
HttpRunnerManager install ( Two )-Linux Lower installation RabbitMQ Step on the pit and gather
One 、MySQL To create a HttpRunner database

Two 、 Modify the configuration file HttpRunnerManager/settings.py
And you installed mysql The actual configuration information is consistent
vi /root/HttpRunnerManager3-master/HttpRunnerManager/settings.py
Remember to save... After modification

3、 ... and 、 Synchronize database
1、 Above, we created a project named hrun Empty database for , There are no data tables under this database . Now we will synchronize the data table of the database . You need to get into HttpRunnerManager Root directory :
cd /root/HttpRunnerManager3-master
Generate data migration scripts , perform :
python manage.py makemigrations ApiManager
An error may be reported here , Generally, the error is caused by the mismatch of dependent packages 、 You need to uninstall the old dependent package 、 Use and python3.7.3 Matching dependent packages , Add me to any questions v:**「newbigder」** Or public z Message No :「Bigder」
For example, installed markupsafe Version too high , I reduced the version .
Specify the installation of a version directive :
python -m pip install markupsafe==2.0.1
python3.7.3 Verified matching version number :
Package Version
------------------ ---------
amqp 2.6.1
anyjson 0.3.3
appdirs 1.4.4
attrs 21.4.0
bcrypt 3.2.2
billiard 3.6.4.0
black 19.10b0
cached-property 1.5.2
celery 4.4.7
certifi 2022.6.15
cffi 1.15.0
chardet 3.0.4
click 8.1.3
click-didyoumean 0.3.0
click-plugins 1.1.1
click-repl 0.2.0
cryptography 37.0.3
Django 2.2.12
django-celery 3.3.1
dwebsocket 0.5.12
eventlet 0.22.1
flower 0.9.5
greenlet 1.1.2
httprunner 3.1.4
humanize 4.2.2
idna 2.10
importlib-metadata 4.12.0
Jinja2 2.11.2
jmespath 0.9.5
kombu 4.6.11
loguru 0.4.1
MarkupSafe 2.0.1
more-itertools 8.13.0
mysqlclient 1.4.6
packaging 21.3
paramiko 2.7.1
pathspec 0.9.0
pi 0.1.2
pip 22.1.2
pluggy 0.13.1
prometheus-client 0.8.0
prompt-toolkit 3.0.30
py 1.11.0
pycparser 2.21
pycryptodome 3.6.5
pydantic 1.9.1
pyflakes 2.2.0
PyNaCl 1.5.0
pyparsing 3.0.9
pytest 5.4.3
pytest-html 2.1.1
pytest-metadata 2.0.1
pytz 2022.1
PyYAML 5.3.1
regex 2022.6.2
requests 2.24.0
robotframework 3.2.2
sentry-sdk 0.14.4
setuptools 40.8.0
six 1.16.0
sqlparse 0.4.2
toml 0.10.2
tornado 6.1
typed-ast 1.5.4
typing_extensions 4.2.0
urllib3 1.25.11
vine 1.3.0
wcwidth 0.2.5
zipp 3.8.0
Report errors 1:
django.db.utils.OperationalError: (1049, “Unknown database ‘hrun’”),
reason :/root/HttpRunnerManager3-master/HttpRunnerManager/settings.py
Incomplete modification of file database 、 Revise it again
Carry on :
python manage.py makemigrations ApiManager
[[email protected] HttpRunnerManager3-master]# python manage.py makemigrations ApiManager
Report errors 2:
You are trying to add a non-nullable field ‘user_account’ to debugtalk without a default; we can’t do that (the database needs something to populate existing rows).
Please select a fix:
Provide a one-off default now (will be set on all existing rows with a null value for this column)
Quit, and let me add a default in models.py Input 2, sign out :

Follow the prompts to resolve :
vi /root/HttpRunnerManager3-master/ApiManager
Edit the file and it will contain :user_account All fields are followed by default values , Pictured :

Carry on :python manage.py makemigrations ApiManager , success !

2、 Applied to the db Generate data table , success !
python manage.py migrate

3、 Log in MySQL Of hrun Library check , The table has been created successfully !

Four 、 Create background administrator user
python manage.py createsuperuser

Next :
HttpRunnerManager install ( Four )-Linux Under boot Django service & Sign in httprunerManager
above ,
Bigder
边栏推荐
- 3D drawing ()
- Use Scrollview and tabhost to realize vertical scrollbars and tabs
- 【MySQL 15】Could not increase number of max_ open_ files to more than 10000 (request: 65535)
- Ue4- how to make a simple TPS role (II) - realize the basic movement of the role
- HDU_p1237_简单计算器_stack
- PHP campus movie website system for computer graduation design
- The intelligent material transmission system of the 6th National Games of the Blue Bridge Cup
- Sword finger offer 29 Print matrix clockwise
- Grabbing and sorting out external articles -- status bar [4]
- 【社区人物志】专访马龙伟:轮子不好用,那就自己造!
猜你喜欢

2022 edition illustrated network pdf

Computer graduation design PHP part-time recruitment management system for College Students

It's wrong to install PHP zbarcode extension. I don't know if any God can help me solve it. 7.3 for PHP environment
![[solution] every time idea starts, it will build project](/img/fc/e68f3e459768abb559f787314c2124.jpg)
[solution] every time idea starts, it will build project

Minecraft 1.16.5 biochemical 8 module version 2.0 storybook + more guns

Virtual machine network, networking settings, interconnection with host computer, network configuration

Campus second-hand transaction based on wechat applet
![[depth first search] Ji Suan Ke: Betsy's trip](/img/b5/f24eb28cf5fa4dcfe9af14e7187a88.jpg)
[depth first search] Ji Suan Ke: Betsy's trip

Multi function event recorder of the 5th National Games of the Blue Bridge Cup

LeetCode 103. Binary tree zigzag level order transverse - Binary Tree Series Question 5
随机推荐
Number conclusion LC skimming review - 1
MySQL (IV) - transactions
[robot hand eye calibration] eye in hand
HDU_ p1237_ Simple calculator_ stack
大厂镜像库
有没有sqlcdc监控多张表 再关联后 sink到另外一张表的案例啊?全部在 mysql中操作
Global and Chinese market of commercial cheese crushers 2022-2028: Research Report on technology, participants, trends, market size and share
机器学习训练与参数优化的一般过程 (讨论)
Global and Chinese markets for single beam side scan sonar 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets hitting traffic doors 2022-2028: Research Report on technology, participants, trends, market size and share
我把驱动换成了5.1.35,但是还是一样的错误,我现在是能连成功,但是我每做一次sql操作都会报这个
[depth first search notes] Abstract DFS
高数_向量代数_单位向量_向量与坐标轴的夹角
Lecture 4 of Data Engineering Series: sample engineering of data centric AI
ftp上传文件时出现 550 Permission denied,不是用户权限问题
Global and Chinese markets of screw rotor pumps 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL lethal serial question 1 -- are you familiar with MySQL transactions?
Building the prototype of library functions -- refer to the manual of wildfire
The third level of C language punch in
SSM 程序集