摘自官方文档: The general form for a connection URI is: The URI scheme designator can be either postgresql:// or postgres://. Each of the URI parts is optio ...
分类:
数据库 时间:
2017-10-05 13:07:29
阅读次数:
270
postgresql基本命令操作:登陆数据库:[postgres@localhost~]$psql-Utestwjw-h127.0.0.1-dpostgres-p36985Passwordforusertestwjw:psql.bin(9.5.9)Type"help"forhelp.postgres=>切换数据库:postgres=>\ctestdb1Youarenowconnectedtodatabase"testdb1"asuser"testwjw".查..
分类:
数据库 时间:
2017-10-05 10:57:42
阅读次数:
257
1.本地登陆postgresql,建库授权,设置密码服务器本地登陆postgresql数据库(默认是不需要密码的)postgres@localhost~]$psqlpsql.bin(9.5.9)Type"help"forhelp.创建角色,并且给角色设置密码:postgres=#createusertestwjwwithpassword‘Zykj@5&^%996‘;CREATEROLE修改数据库..
分类:
数据库 时间:
2017-10-04 19:59:21
阅读次数:
435
MySQL数据库 Driver ="path/to/jdbc-drivers/mysql-connector-java-5.1.35-bin.jar" //驱动程序Class ="com.mysql.jdbc.Driver"; URL ="jdbc:mysql://localhost:3306/db ...
分类:
数据库 时间:
2017-09-29 23:01:43
阅读次数:
268
今天安装postgres,启动异常:couldnotopenlockfile"/tmp/.s.PGSQL.5432.lock":修改tmp权限,chown-Rpostgres:postgres/tmp启动成功。
分类:
数据库 时间:
2017-09-29 00:36:04
阅读次数:
611
没有正常启动 postgresql service.可以 在运行里面 输入 services.msc 找到 postgresql 的服务。启动他。或者也可以用postgres 自带的 工具pg_ctl来注册D:\pgsql>bin\pg_ctl register -N PostgreSQL -D “ ...
分类:
数据库 时间:
2017-09-28 14:44:08
阅读次数:
986
1.全自动备份 需要在备份机上也安装postgres(最好同一个版本) 在postgres目录下建立密码保存文件(明码保存,所以保密很重要),如果不建立,则因为每次备份都要输入密码,不能进行自动备份 创建自动脚本,自动按月分文件夹 创建crontab自动执行即可 2.恢复数据库 解压gz 进去pgs ...
分类:
数据库 时间:
2017-09-22 13:13:58
阅读次数:
301
在ArcCatalog左侧目录树中有Database Connections. 双击后选择database plantform:postgresql,instance为localhost(127.0.0.1一样),输入用户和密码(默认用户postgres),database最好不要选择默认系统数据库 ...
分类:
数据库 时间:
2017-09-22 10:17:43
阅读次数:
338
Postgres 10 新特性 分区表 http://francs3.blog.163.com/blog/static/40576727201742103158135/ Postgres 10 之前分区表插件实现 pg_pathman https://yq.aliyun.com/articles/6 ...
分类:
数据库 时间:
2017-09-15 10:11:38
阅读次数:
193
https://my.oschina.net/aven92/blog/518928 · PostgreSQL中国社区: http://postgres.cn/index.php/home · PostgreSQL专业1群: 3336901(已满) · PostgreSQL专业2群: 10091038 ...
分类:
数据库 时间:
2017-09-14 14:59:38
阅读次数:
312