Wesley13 Wesley13
4年前
jdbc的操作流程代码
\//dbhelphelp类,封装数据库基本信息以及关闭资源的方法classDbHelp{//数据库连接信息publicstaticStringurl"jdbc:mysql://localhost:3306/blog";publicstaticStringuser
DevOpSec DevOpSec
4年前
centos 7 install MySQL-python
centos7installMySQLpython安装MySQLpython安装命令easy_install2.7installMySQLpython报错解决1.EnvironmentError:mysql_confignotfound解决办法:yuminstallmysqldevel2
Stella981 Stella981
4年前
Spark 配置连接hive 元数据库(mysql)
Spark连接hive元数据库(mysql)方法一:1)打开Hivemetastoreroot@head42~hiveservicemetastore&netstatano|grep9083???2)开启spark连接Mysq
Wesley13 Wesley13
4年前
MySQL基础(一)
一、连接MySQL数据库1连接:2mysqlhhostuuserp34常见错误:5ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/tmp/my
Wesley13 Wesley13
4年前
Mysql的BigInt(20),Int(20)以及Bigint(32)有区别吗?
原文:http://stackoverflow.com/questions/3135804/typesinmysqlbigint20vsint20etcchttp://dev.mysql.com/doc/refman/5.1/en/numerictypes.htmlTypesinMySQL:BigInt(20)vsInt(
Wesley13 Wesley13
4年前
mysql表如何使用redis保存?
mysql表:useridusernamepasswordemail9Lisi111111lisi@163.com(https://www.oschina.net/action/GoToLink?urlmailto%3Alisi%40163.com)对应redis存储:
Stella981 Stella981
4年前
Python接入mysql数据库
方法一:直接在models里连接mysql数据库,用sql语言操作python2的代码:codingutf8importMySQLdbconnMySQLdb.connect(host'loc
Easter79 Easter79
4年前
Spring定时器配置方法
对于一个已经配置好spring框架的项目,添加定时器很简单。springmvc.xml文件中配置下面内容<!加载指定目录下的@Controller@Service@Component@Repository<context:componentscanbasepackage"cn.com.app.pingand
Wesley13 Wesley13
4年前
mysql主从环境,切换IP操作
环境:redhat7.5 mysql5.7老IP:192.168.1.1,192.168.1.2新IP:192.168.3.3,192.168.3.4\备库停机mysqlstopslave;systemctlstopmysqld\主库停机systemctlstopmysqld\修改主库
胖大海 胖大海
3年前
nginx简易安装启动!
使用3A服务器搭建的centos系统安装nginx,教程在我的往期博客中,最新教程yum方式如下!添加CentOS7Nginxyum资源库rpmUvh http://nginx.org/packages/centos/7/noarc