Linux安装jnmpserver 数据迁移时报错

前期环境准备
已安装MySQL5.6,默认端口,并创建了数据库
(jmp_venv1) [root@localhost logs]# mysql -ujumserver -p1234
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.6.49 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use jumserver
Database changed
已安装python3.6,并创建了python3虚拟编译器,并进入了虚拟编译器
(jmp_venv1) [root@localhost logs]# which python3
/teach_jmp/jmp_venv1/bin/python3
(jmp_venv1) [root@localhost logs]# python3
Python 3.6.10 (default, Apr 14 2022, 17:09:52)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.

已安装redis数据库,默认端口
(jmp_venv1) [root@localhost logs]# redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>
已配置了jumpserver配置文件
(jmp_venv1) [root@localhost jumpserver]# grep -Ev '^#|^$' config.yml
SECRET_KEY: wDpFdg1JITM2Qb2ChfbdgjUX7dQuvZaq76fc8X9AIkALGLF2nK
BOOTSTRAP_TOKEN: icBSPBEIDGo3RJN3bDgIhe5wWMfwsR6vyBsPiJL26DCtEoygjg
DB_ENGINE: mysql
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_USER: jumserver
DB_PASSWORD: 1234
DB_NAME: jumserver
HTTP_BIND_HOST: 0.0.0.0
HTTP_LISTEN_PORT: 8080
WS_LISTEN_PORT: 8070
REDIS_HOST: 127.0.0.1
REDIS_PORT: 6379

报错情况
(jmp_venv1) [root@localhost apps]# python3 /teach_jmp/jumpserver/apps/manage.py makemigrations
Traceback (most recent call last):
File "/teach_jmp/jumpserver/apps/manage.py", line 28, in
execute_from_command_line(sys.argv)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/core/management/init.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/core/management/commands/makemigrations.py", line 101, in handle
loader.check_consistent_history(connection)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/migrations/loader.py", line 283, in check_consistent_history
applied = recorder.applied_migrations()
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/migrations/recorder.py", line 73, in applied_migrations
if self.has_table():
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/migrations/recorder.py", line 56, in has_table
return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/backends/base/base.py", line 256, in cursor
return self._cursor()
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/backends/base/base.py", line 233, in _cursor
self.ensure_connection()
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/backends/base/base.py", line 195, in connect
self.connection = self.get_new_connection(conn_params)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 227, in get_new_connection
return Database.connect(**conn_params)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/MySQLdb/init.py", line 85, in Connect
return Connection(*args, **kwargs)
File "/teach_jmp/jmp_venv1/lib/python3.6/site-packages/MySQLdb/connections.py", line 208, in init
super(Connection, self).init(*args, **kwargs2)
TypeError: connect() argument 3 must be str, not int