ScriptObjectMirror转Java类型
private Object unwrapObject(Object scriptObj) { |
private Object unwrapObject(Object scriptObj) { |
mysql 8.0
Django 3.2
# 迁移数据库 |
报错RuntimeWarning: Got an error checking a consistent migration history performed
for database connection 'default': (2059, <NULL>)
warnings.warn
(No changes detected)
MySQL 8.x加密方式:caching_sha2_password
MySQL 5.x加密方式为:mysql_native_password
所以要改成mysql_native_password
由cmd进入命令行
登录到mysql: mysql -u username -p password
参数说明:[-u]后面接的是登录数据库的账号,[-p]后面是密码
如果无法登录,可能的原因是环境变量中PATH变量没有加入MySQL的目录,可以添加环境变量或在开始菜单中找到MySQL 8.0 Command Line Client
进行登录(这种方式打开后直接输入密码即可)。
查看你的账号加密方式
use mysql |
mysql> use mysql |
输入下面的指令进行修改
mysql> alter user '用户名'@'localhost' identified with mysql_native_password by '你的密码'; |
再次查看
mysql> select user,plugin from user; |
# 迁移数据库 |
报错
Windows下django.db.utils.OperationalError: (2026, ‘SSL connection error: unknown error number‘)
较高版本的mysql的ssl默认是开启的
关闭ssl
登录mysql之后,输入该命令:
mysql> SHOW VARIABLES LIKE '%ssl%'; |
修改配置文件my.ini(可能要通过属性修改权限,否则无法修改成功)
# 路径:C:\ProgramData\MySQL\MySQL Server 8.0 |
重启mysql服务
重新执行命令
mysql> SHOW VARIABLES LIKE '%ssl%'; |
安装 python-ldap 包时出现错误,如下:"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -IC:\Users\jiahe\scoop\apps\python38\current\include -IC:\Users\jiahe\scoop\apps\python38\current\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /TcModules/LDAPObject.c /Fobuild\temp.win-amd64-cpython-38\Release\Modules/LDAPObject.obj
LDAPObject.c
C:\Users\jiahe\AppData\Local\Temp\pip-install-xhre2otp\python-ldap_7783ac0f126e44ddb07bd17f8f8f826f\Modules\common.h(15): fatal error C1083: 无法打开包括文件: “lber.h”: No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-ldap
Failed to build python-ldap
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (python-ldap)
从https://github.com/cgohlke/python-ldap-build/releases下载对应版本的whl文件,然后通过pip install
安装即可解决。
另外,在解决过程中发现,很多历史帖子,都提到了这个网站https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap ,但是它已经不对外了,难过😔。
面向群体:非新手,有一定实践经验
电视设备:小米电视S75(开启ADB、未知软件安装)
观影目标:看直播(CCTV、地方台)、看动漫、电视剧、电源等杂七杂八的盗版资源 😅
我是通过adb命令直接安装apk,adb install apk文件路径
注意事项:
adb connect
时,如果提示未授权 unauthorized 类似的关键词,先尝试adb kill-server
,再adb start-server
,然后尝试连接,这个时候电视上会出现提示授权的弹窗,确认授权即可。Kodi
中的IPTV
观影时,强烈建议开启路由器的IPV6。不方便下载的,可以回复提出来。我能下载到的,就统一放到蓝奏云。
以下提到的软件包都放在这里: https://xiaojianzheng.lanzouw.com/b00wm56sgb 密码:jiahe
adb常用命令 https://www.cnblogs.com/lwj0126/p/17591654.htm
使用小米手机或者安卓机的朋友,可以安装小米电视助手进行APP安装。我没尝试过,不知道方不方便。可以参考这个视频: https://b23.tv/iOYIx8a
@echo off |