
Mysql系列一:SQL入门
csdn博客搬迁连接数据库:1、在dos窗口下,进入数据库的安装目录的bin目录下,使用mysqld命令启动数据库服务,或者在计算机的服务里面启动mysql服务2、另外打开一个dos窗口,进入数据库的安装目录的bin目录下,使用命令连接数据库服务器:mysql -u root -p一、

infludb语法–官网
https://docs.influxdata.com/influxdb/v0.8/api/query_language/InfluxDB features a SQL like query language, only used for querying data. The HTTP API has endpoints for writing data and performing other database administration tasks. The only

mysql 字符串的处理
1.SUBSTRING2.SUBSTRING_INDEX3.right/left4.POSITIONsql实例select left(right(SUBSTRING_INDEX(data_out,:,7),10),3) from check_post01 where day_online=2017-06-08 00:00:00;select SUBSTRING(data_out,18,20) from check_post01 where day_online=2017-

mysql悲观锁总结和实践–转
原文地址:http://chenzhou123520.iteye.com/blog/1860954最近学习了一下数据库的悲观锁和乐观锁,根据自己的理解和网上参考资料总结如下:悲观锁介绍(百科):悲观锁,正如其名,它指的是对数据被外界(包括本系统当前的其他事务,以及来自外部系统的事务处

mysql导入数据,涉及到时间转换,乱码问题解决
表结构:drop table if exists `qi_an_log`;CREATE TABLE `qian_log` (`dt` LONG NOT NULL COMMENT 产生日期,格式yyyy-MM-dd,`METHOD_NAME` varchar(30) NOT NULL COMMENT 渠道名称或者接口名称,`src_ip` varchar(45) DEFAULT NULL,`ip` varchar(45) DEFAULT

看懂mysql执行计划–官方文档
原文地址:https://dev.mysql.com/doc/refman/5.7/en/explain-output.html9.8.2EXPLAIN Output FormatTheEXPLAINstatement provides information about the execution plan for aSELECTstatement.EXPLAINreturns a row of information for each table used in

mysql replication principle–转
原文地址:http://www.codeweblog.com/mysql-replication-principle/1, the replication processMysql replication (replication) is an asynchronous replication, from a Mysql instace (called Master) to another Mysql instance (call it Slave). Implem

Want to archive tables? Use Percona Toolkit’s pt-archiver–转
原文地址:https://www.percona.com/blog/2013/08/12/want-to-archive-tables-use-pt-archiver/Percona Toolkit’spt-archiveris one of the best utilities to archive the records from large tables to another tablesorfiles. One interesting thing is t

Mongodb基本命令总结
Mongodb是近年来很火的一个非关系型数据库,不少企业都用来做部分业务模块数据的扩展存储,这里我总结了一些Mongodb的基本使用,作为分享,也方便自己以后需要的时候查询使用。数据库基本操作1. 创建数据库use databaseName选择一个数据库,如果数据库不存在就
![MySQL的一些指令操作[简版]](https://www.0579zz.cn/wp-content/themes/boke-2/thumb.php?src=https://www.0579zz.cn/wp-content/themes/boke-2/assets/img/default.png&w=243&h=156)
MySQL的一些指令操作[简版]
sudo apt-get install mysql-server pa aux | grep mysql sudo service mysql start sudo service mysql st