gsql使用常见问题
- sql命令执行有错,但是gsql返回为零的问题
gsql -U rdsAdmin -p 30050 -W huawei@123Pwd -r -d aaron -c "alter user wxy identified by 'sdfsdfsdf112'" -v ON_ERROR_STOP=off; echo $?
ERROR: role "aaron" does not exist
0
gsql -U rdsAdmin -p 30050 -W huawei@123Pwd -r -d wxy -c "alter user aaron identified by 'sdfsdfsdf112'" -v ON_ERROR_STOP=on; echo $?
ERROR: role "aaron" does not exist
3
-
gsql -h host_ip,连接不上指定ip
在指定的host_ip的相应实例路径,配置如下
host all all 10.244.46.119/32 sha256
- gsql远程连接,permission denied
解压了gsql的包,但是执行gsql没有权限
pwd
/tmp/tools3/bin
ll
./gsql -V
-bash: ./gsql: Permission denied
欧拉对于tmp目录做了限制,此目录没有权限

浙公网安备 33010602011771号