摘要: 切换到操作系统用户dbadbt su - dbadbt dbaccess sysmaster - select * from syslocks; 找到对应的owner 会话id 操作系统层执行 onmode -z id号 阅读全文
posted @ 2025-09-04 15:47 黄多鱼 阅读(5) 评论(0) 推荐(0)
摘要: 只对某一张表给user1用户赋权查询权限大约的步骤: 1,新建个数据库账号; create user user1 with password 'GBase123'; 2,在要授权的库里(示例使用testdb),使用gbasedbt用户回收所有表的public权限; -- 所有的表 dbaccess 阅读全文
posted @ 2025-09-04 15:07 黄多鱼 阅读(7) 评论(0) 推荐(0)
摘要: ##命令行登陆数据库 操作系统,切换用户 su - gbasedbt 执行 dbaccess - - ##创建数据库 CREATE DATABASE dbname in datadbs01 WITH LOG; ##给数据库授权 grant connect to dbname; grant resco 阅读全文
posted @ 2025-09-04 15:03 黄多鱼 阅读(5) 评论(0) 推荐(0)
摘要: #!/bin/bash # create_haproxy_service.sh # 创建 systemd 服务文件 SERVICE_FILE="/etc/systemd/system/haproxy.service" cat > $SERVICE_FILE << 'EOF' [Unit] Descr 阅读全文
posted @ 2025-09-04 14:39 黄多鱼 阅读(5) 评论(0) 推荐(0)