Metasploit4.2pro MSF连接postgresql编码错误问题

对于编码不一致的错误

msf > db_connect postgres:toor@127.0.0.1:7337/msf4

[-] Error while running command db_connect: Failed to connect to the database: PGError: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (sql_ASCII)

HINT: Use the same encoding as in the template database,or use template0 as template.

: CREATE DATABASE "msf4" ENCODING = 'utf8'


切换到Postgresql安装目录/bin/下

createdb mydb -E UTF8 -T template0

mydb为你想创建的数据库名称

然后在MSF里执行:db_connect postgresql:toor@127.0.0.1:7337/mydb 就OK了

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...