mysql安装 下载镜像 docker pull mysql 查看镜像 docker images|grep mysql 创建启动容器 docker run --name mysqlserver -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123 -d -i -p 3306:3306 mysql:latest 查看容器状态 docker p…
转自:https://blog.csdn.net/haleyliu123/article/details/70927668/ MySQL查询系统时间 第一种方法:select current_date: MySQL> select current_date as Systemtime; 第二种方法:select now() mysql> select now() as Systemtime; 第三种方法:select sysdate() mysql> select sysdate() a…
1:使用date命令查看时区 [root@db-server ~]# date -R   Sun, 11 Jan 2015 07:10:28 -0800   [root@db-server ~]#   如上RFC 2822 format所示,上面命令输出了-0800表示西八区,是美国旧金山所在的时区,下面表示我们国家的东八区(+0800) [root@lnx01 ~]# date -R   Sun, 11 Jan 2015 23:06:02 +0800   2:查看clock系统配置文件 [ro…
插入光盘: 创建挂载点: 创建挂载点. 挂载设备:或者mount /dev/sr0 /mnt/cdrom 安装rpm包: [root@localhost Packages]# rpm -ivh mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm [选项说明:i安装install,v显示详细信息verbose,h显示安装过程hash,--nodeps不检查依赖性] 警告:mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm: 头…
原文:https://blog.csdn.net/Vblegend_2013/article/details/80904275 最近项目中使用了时序数据库InfluxDB 各方性能也是蛮强大的.但是唯一不足的地方时间格式,默认是使用的UTC时间也是固定的不能修改的,研究了下找到解决方案. public static void Write() { String[] Tags = new string[] { "Element_1", "Element_2", &quo…
1:使用date命令查看时区 [root@db-server ~]# date -R   Sun, 11 Jan 2015 07:10:28 -0800   [root@db-server ~]#   如上RFC 2822 format所示,上面命令输出了-0800表示西八区,是美国旧金山所在的时区,下面表示我们国家的东八区(+0800) [root@lnx01 ~]# date -R   Sun, 11 Jan 2015 23:06:02 +0800   2:查看clock系统配置文件 [ro…
oracle查询和时间有关的命令: 方法一:select * from dual where time between to_date('2012-06-18 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2012-06-18 23:59:59','yyyy-mm-dd hh24:mi:ss');方法二:select * from dual where to_char(time,'yyyy-mm-dd')='2012-06-18';方法三:sel…
今天做了一个需求,要在列表中把后台返回来的时间给显示出来,使用 new Date(str)  在微信开发者工具上显示是没有问题的,然后在IOS系统上显示是NAN. 原因是 IOS系统只识别 " / " 不识别 " - ". 后台返回来的时间类型一般有三种 时间.时间搓.字符串.我们就研究一下这三种类型怎么 处理才能兼容安卓系统和IOS系统吧. formatTime(d) { var year = d.getFullYear(); var month = d.getM…
select * from invoicedetail t2 where t2.Memo is null and to_char(to_date(t2.PrintDate,'yyyy-MM-dd hh24:mi:ss'), 'yyyy-MM-dd') BETWEEN to_date('2016-09-01','yyyy-mm-dd') AND to_date('2016-09-29','yyyy-mm-dd' ) oracle 数据库存储过程 时间参数值 要以字符串类型传值 不能以日期传值 以防…
在Linux中,没有文件创建时间的概念.只有文件的访问时间.修改时间.状态改变时间.也就是说无法知道文件的创建时间. [root@rhel7 yum.repos.d]# stat cdrom.repo File: ‘cdrom.repo’ Size: 112 Blocks: 8 IO Block: 4096 regular file Device: fd00h/64768d Inode: 2907036 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ r…