当前位置:网站首页>WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
2022-08-04 06:06:00 【Big Yellow Cat No. 1】
This means that the server already has the database version 11.0 installed, but the path to psql is from an older version, 9.2 in this example.If you do not handle this warning, some psql features will not work when operating on the database,
For example, changing the password will not work
Solution:
First, we look at the path of psql and the result is
which psql
If the displayed path is /bin/psql, it means that the login database uses this path by default, so you need to remove the files on this path and link the new version to this path, so that the search path will automatically go to the new version.(requires root user to operate)
# mv /bin/psql /bin/psql-bk
# ln -s /usr/local/psql/bin/psql /bin/psql
Another solution is Log in directly with an absolute pathpsql /usr/local/psql/bin/psql Note hereThe path is the path of your own installation.
边栏推荐
猜你喜欢
随机推荐
【go语言入门笔记】12、指针
智能合约安全——delegatecall (2)
简单说Q-Q图;stats.probplot(QQ图)
线性回归简介01---API使用案例
剑指 Offer 2022/7/1
flink sql left join数据倾斜问题解决
自动化运维工具Ansible(3)PlayBook
MySql的concat和group_concat的区别
Lombok的一些使用心得
Androd Day02
read and study
(十一)树--堆排序
k3s-轻量级Kubernetes
Redis持久化方式RDB和AOF详解
ThinkPHP5.0.x 反序列化分析
yolov3中数据读入(一)
ReentrantLock(公平锁、非公平锁)可重入锁原理
SQL练习 2022/7/4
彻底搞懂箱形图分析
【深度学习21天学习挑战赛】1、我的手写被模型成功识别——CNN实现mnist手写数字识别模型学习笔记