数据库
数据库问题 数据库技术分享
binbincoder
生而无畏、战至终章
展开
-
Centos7.5(64)安装Oracle 11g2问题汇总
环境说明:系统环境:CentOS7.5 64位JDK版本:JDK8Oracle版本:11g2问题一:初始安装时检查交换空间: 可用的交换空间为 0 MB, 所需的交换空间为 150 MB。 未通过(root用户下操作)The available swap space is 0 MB, and the required swap space is 150 MB. Not through问题解决:$ sudo fallocate -l 512m /mnt/512MiB.swap$ sudo ch原创 2020-11-05 11:42:30 · 781 阅读 · 0 评论 -
mysql update select 从查询结果中更新数据
update select 语句(注意:必须使用inner join)语法 update a inner join (select yy from b) c on a.id =c.id set a.xx = c.yyupdate table_a a inner join (select id,count(0) numsfrom table_agroup by id) b on a.i...转载 2020-04-01 12:20:20 · 1268 阅读 · 0 评论 -
StreamSets集成Kerberos详解(Mysql实时同步数据到HBASE)
StreamSets集成Kerberos步骤如下:StreamSets的安装部署省略1、进入到安装kerberos的服务器生成指定keytab文件1、进入到Kerberos管理界面kadmin.local2、在管理界面指定指定用户的Keytab文件生成ktadd -k /opt/hbasekeytab -norandkey hbase@AUTO.COM2、将生成的Keytab文件拷...原创 2020-03-17 10:55:00 · 674 阅读 · 0 评论 -
Communications link failure The last packet successfully received from the server was millisec
使用JDBC连接Mysql数据库棘手错误错误情况如下:解决方案:错误情况如下:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet successfully received from the server was 8,451 milliseco...原创 2019-12-11 11:35:55 · 3522 阅读 · 0 评论 -
Window 10 安装 Mongo
Window 10 安装 Mongo下载:https://www.mongodb.com/download-center/community?jmp=docs安装:https://www.cnblogs.com/weschen/p/8213746.html原创 2019-09-26 11:47:15 · 127 阅读 · 0 评论 -
下载MongoDB安装包直达
官网翻了半天https://www.mongodb.com/download-center/community?jmp=docs原创 2019-09-26 11:42:13 · 295 阅读 · 0 评论 -
Linux关闭MongoDB服务的命令
Kill的命令关闭mongodb:kill all mongodb#orkill -9 mongo-pid上面的方法确实可以关闭mongodb,但是正确的做法不是这样子的,mongodb提供了关闭数据库的命令:首先需要进入到mongodb目录下bin/mongo,连接到mongodb,然后执行下面脚本:use admindb.runCommand(“shutdown”)上面第一行切...原创 2019-06-11 11:46:36 · 6117 阅读 · 0 评论 -
The server quit without updating PID file
使用service mysql/mysqld start启动mysql问题:The server quit without updating PID file (/usr/local/mysql/data/hostname.pid)解决方案:找到mysql的/usr/local/mysql/bin目录使用如下命令启动[root@bioyuanA bin]#./mysqld --defaul...原创 2019-05-31 09:54:58 · 122 阅读 · 0 评论 -
hive drop 表报错 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1
使用hive操作drop表报如下错:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.hive.metastore.api.MetaException javax.jdo...原创 2019-01-08 14:18:43 · 1533 阅读 · 0 评论 -
Error loading MySQLdb module: libmysqlclient_r.so.18: cannot open shared object file: No such file
错误:Error loading MySQLdb module: libmysqlclient.so.18: cannot open shared object file: No such file or directory错误原因:我们在服务器上自己安装了MySQL,而卸载了原有的MySQL,服务器有就将/usr/lib64/mysql下的libmysqlclient.so.18删除掉...原创 2018-12-03 19:17:36 · 2376 阅读 · 2 评论 -
MyCat实现数据库与数据库之间的读写分离
一、Mycat的安装准备:1、jdk:要求jdk必须是1.7及以上版本2、Mysql:推荐mysql是5.5以上版本3、Mycat:Mycat的官方网站:http://www.mycat.org.cn/下载地址:https://github.com/MyCATApache/Mycat-downloadMycat的安装Mycat有windows、linux多种版本。本教程为linu...原创 2018-11-16 22:34:21 · 243 阅读 · 0 评论