Fork me on GitHub

摘要: 1.help delete mysql> help delete; Name: 'DELETE' Description: Syntax: DELETE is a DML statement that removes rows from a table. Single-Table Syntax DE 阅读全文
posted @ 2017-12-27 18:03 anyux 阅读(491) 评论(0) 推荐(0)
摘要: 1.使用严格模式 加大 -U 使用严格模式,限制update 和where语句 严格模式下删除数据需要使用索引,作为条件才能删除 2.针对数据行的操作 创建索引 删除数据 --提示此处建立的普通索引,索引关系为一对多,仅测试,生产环境大数据量下会很慢。 3.表迁移 4. 插入内容 insert in 阅读全文
posted @ 2017-12-26 19:19 anyux 阅读(314) 评论(0) 推荐(0)
摘要: 1.DDL管理数据库-表定义 表名 列定义 列名称 属性 数据类型 约束 默认值 1.1创建表 创建多个列 1.2 create table 语句 创建表 CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name (create_definition,... 阅读全文
posted @ 2017-12-26 17:48 anyux 阅读(2451) 评论(0) 推荐(0)
摘要: 1.SQL入门--库定义 1.1 DDL管理数据库-库定义 数据库定义语言 库名称 特性 字符集 表 名称 列 定义一个数据库,定义库名字 定义一个表,定义表名称、及列属性 查看数据库 1.2 数据库定义名称及特性 指定字符集(校对规则collate) 一般默认值 collate 查看校对规则 1. 阅读全文
posted @ 2017-12-26 16:55 anyux 阅读(375) 评论(0) 推荐(0)
摘要: 1.客户端命令介绍 1.1mysql 数据库连接工具 1.2mysqladmin 1.3mysqldump 2.获取帮助的方法 上下翻页 ==> 上下键 tab补全 > use world; desc city; Ctrl +l > 清屏 \q > 退出 2.1显示所有支持的sql语句类型 mysq 阅读全文
posted @ 2017-12-26 16:31 anyux 阅读(815) 评论(0) 推荐(0)
摘要: 编辑lnmp安装,为了以后使用方便,若要将nmp分开到不同server上,只需要将安装目录创建,安装命令没有变化 1 环境初始化 #系统环境 [root@anyux ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [r 阅读全文
posted @ 2017-12-24 18:14 anyux 阅读(629) 评论(0) 推荐(0)
摘要: 初始环境 [root@php7 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@php7 ~]# getenforce Disabled [root@php7 ~]# systemctl status fi 阅读全文
posted @ 2017-12-22 20:27 anyux 阅读(234) 评论(0) 推荐(0)
摘要: 系统版本说明 [root@db01 data]# uname -r 3.10.0-693.el7.x86_64 [root@db01 data]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LI 阅读全文
posted @ 2017-12-20 17:29 anyux 阅读(335) 评论(0) 推荐(0)
摘要: 1.安装 a.安装依赖 1 yum install -y ncurses-devel libaio-devel b.安装cmake 1 yum install -y cmake c.创建用户 1 useradd -s /sbin/nologin -M mysql d.经典三步曲 http://mir 阅读全文
posted @ 2017-12-15 16:59 anyux 阅读(188) 评论(0) 推荐(0)
摘要: 1安装sublime-sftp插件 2.编辑sublime-sftp配置文件 3.远程编辑文件 4.终端执行脚本文件 5.编写代码段 6.试用代码段 阅读全文
posted @ 2017-12-13 11:12 anyux 阅读(1002) 评论(0) 推荐(0)