![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mysql
Mr.ChowSit
古人云:survive in disaster perish in comfort
展开
-
Mysql常用操作
创建数据库 --创建名称为“testdb”数据库,并设定编码集为utf8 CREATE DATABASE IF NOT EXISTS testdb DEFAULT CHARSET utf8 COLLATE utf8_general_ci; 新建用户 --创建了一个名为:test 密码为:1234 的用户 create user 'test'@'localhost' identifie...原创 2020-02-25 09:58:59 · 271 阅读 · 0 评论 -
Mysql5.7中的环境变量
版本相关 show variables like 'version%' version 5.7.28 version_comment MySQL Community Server (GPL) version_compile_machine x86_64 version_compile_os Linux 密码相关 show variables like ...原创 2019-12-25 10:09:30 · 570 阅读 · 0 评论 -
MySQL分区表(理论+实战)
参考 https://dev.mysql.com/doc/refman/5.7/en/create-table.html#create-table-partitioning 分类 1.HASH 哈希一个或多个列,以创建用于放置和定位行的键。expr是一个使用一个或多个表列的表达式。这可以是任何有效的MySQL表达式(包括MySQL函数),生成一个整数值。例如,它们都是使用分区BY散列...原创 2019-11-28 19:06:59 · 1878 阅读 · 2 评论 -
为什么mysql会自己读取/etc/my.cnf?
打开mysql.server你就会发现conf=/etc/my.cnf居然是写死的!!! # Get arguments from the my.cnf file, # the only group, which is read from now on is [mysqld] if test -x ./bin/my_print_defaults then print_defaults="....原创 2019-07-19 08:16:39 · 529 阅读 · 0 评论 -
Centos6.10下手动安装Mysql5.7.17二进制tar包
安装前清理检查 rpm -qa | grep -i mysql | xargs rpm -e --nodeps rpm -qa | grep -i mariadb | xargs rpm -e --nodeps 创建mysql用户 useradd mysql 安装包准备【mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz】解压重命名并修改目录权限给m...原创 2019-08-12 13:06:08 · 1052 阅读 · 0 评论