99问答网
所有问题
求助,antdb数据库显示“ERROR: cannot execute INSERT in a read-only transaction”这是为什么?
如题所述
举报该问题
推荐答案 2023-12-21
解决方式
antdb的datanode节点,默认只有读权限,只有coordinator具有读写权限。
这里adb连接的是datanode,而不是coordinator,可以让adb指定端口选项-p。
也可能配置了pgport的环境变量,如果配了pgport的环境变量,adb默认连到环境变量指向的那个端口。
adb -p xxx -d xxx -f xxx.sql -v ON_ERROR_STOP=1
原因说明
按上述说明依次排查
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://99.wendadaohang.com/zd/zWBOzz7jWtXXzWtW7e.html
相似回答
...MySQL server is running with the --
read-only
...)
答:
set global
read
_
only
=off
关于postgre
数据库
问题,求大神解答
答:
先连上postgres
数据库,
然后执行以下操作:begin;set
transaction
read
write;alter
database
xxx;set default_transaction_read_
only
= off;commit;
电脑里常用的的英语有那些(汉语意思)?
答:
第一部分、计算机算法常用术语中英对照 Data Structures 基本数据结构 Dictionaries 字典 Priority Queues 堆 Graph Data Structures 图 Set Data Structures 集合 Kd-Trees 线段树 Numerical Problems 数值问题 Solving Linear Equati...
大家正在搜
cannot execute
cannot和can not
cant execute
execute program
executeUpdate
executeBatch
cannot后面跟什么
you cannot
execute me