摘要: 连接数据库, 默认的用户和数据库是postgres psql -U user -d dbname 切换数据库,相当于mysql的use dbname \c dbname 列举数据库,相当于mysql的show databases \l 列举表,相当于mysql的show tables \dt 查看表 阅读全文
posted @ 2019-09-27 16:57 beawh 阅读(4661) 评论(0) 推荐(0)
摘要: sed -i /HISTSIZE/s/=1000/=0/g /etc/profile source /etc/profile 阅读全文
posted @ 2019-09-27 09:37 beawh 阅读(746) 评论(0) 推荐(0)
摘要: ./postgres -i -D /opt/PostgresSQL/9.2/data FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied 直接删除tmp 下的隐藏文件 .s.PGSQL.5432.l 阅读全文
posted @ 2019-09-12 19:01 beawh 阅读(639) 评论(0) 推荐(1)
摘要: 在rhel 7.4中安装oracle 12c时发现未安装后者需要要的glibc-devel(32位),但已安装了64位的,rhel 7.4的光盘映像文件中取得rpm ##yum -y install libfreebl3.so rpm -ivh glibc-devel-2.17-196.el7.i6 阅读全文
posted @ 2019-09-09 13:53 beawh 阅读(1630) 评论(0) 推荐(0)
摘要: [root@weblogic opt]# groupadd postgresql[root@weblogic opt]# useradd -g postgresql postgres [root@weblogic opt]# passwd postgres [root@weblogic opt]# 阅读全文
posted @ 2019-09-06 17:12 beawh 阅读(578) 评论(0) 推荐(0)
摘要: ora1>$lsnrctl status LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 06-SEP-2019 10:13:05 Copyright (c) 1991, 2016, Oracle. All rights reserved. 阅读全文
posted @ 2019-09-06 14:57 beawh 阅读(703) 评论(0) 推荐(0)
摘要: # mysql -uroot -pEnter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 根据my.cnf [mysqld]port=23 阅读全文
posted @ 2019-09-04 10:10 beawh 阅读(3230) 评论(0) 推荐(0)
摘要: 1 Mgr安装配置 安装前环境准备: IP 端口 路径 Server-id 组复制端口 主机名 操作系统 192.168.56.131(主) 23306 /usr/local/ 131 23356 mysql Centos6.5 192.168.56.130(主) 23306 /usr/local/ 阅读全文
posted @ 2019-08-30 15:01 beawh 阅读(240) 评论(0) 推荐(0)
摘要: [root@localhost network-scripts]# systemctl start networkJob for network.service failed because the control process exited with error code. See "syste 阅读全文
posted @ 2019-08-30 14:45 beawh 阅读(845) 评论(0) 推荐(0)
摘要: 1)跳过授权表 # /usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf --skip-grant-tables 2)免密登录 [root@mysql ~]# mysql -uroot -pEnter password: Welco 阅读全文
posted @ 2019-08-15 16:33 beawh 阅读(219) 评论(0) 推荐(0)