摘要: 修改用户 mysql 的密码为: 1234567890@ytts grant all privileges on *.* to 'mysql'@'%' identified by '1234567890@ytts' with grant option; 阅读全文
posted @ 2019-11-07 16:51 Greys 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 常用命令: 查找并全部替换 1、%s/postgres/pooluser/g 将文本中所有postgres 替换为 pooluser 后续添补 阅读全文
posted @ 2019-11-07 15:36 Greys 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 最近在做数据迁移时,遇到了数据表导入时,总是提示 string too long 或者 sequence 问题。 问题很容易定位:字符编码。通过sql语句查看数据库字符编码:select datname, pg_encoding_to_char(encoding) from pg_database 阅读全文
posted @ 2019-11-07 14:00 Greys 阅读(1183) 评论(0) 推荐(0) 编辑