
Mysql
Mr.ChowSit
古人云:survive in disaster perish in comfort
展开
-
Mysql常用操作
创建数据库--创建名称为“testdb”数据库,并设定编码集为utf8CREATE 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 · 325 阅读 · 0 评论 -
Mysql5.7中的环境变量
版本相关show variables like 'version%'version 5.7.28version_comment MySQL Community Server (GPL)version_compile_machine x86_64version_compile_os Linux密码相关show variables like ...原创 2019-12-25 10:09:30 · 619 阅读 · 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 · 1968 阅读 · 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_defaultsthen print_defaults="....原创 2019-07-19 08:16:39 · 615 阅读 · 0 评论 -
Centos6.10下手动安装Mysql5.7.17二进制tar包
安装前清理检查rpm -qa | grep -i mysql | xargs rpm -e --nodepsrpm -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 · 1082 阅读 · 0 评论