mysql
Runner_NingGuo_Wen
云在天边,水在瓶
展开
-
交换分区不足
场景:腾讯云安装 mysql 8.0.20内存:free 报错如下g++: fatal error: Killed signal terminated program cc1plus compilation terminated.make[2]: *** [sql/CMakeFiles/sql_gis.dir/gis/difference.cc.o] Error 1make[1]: *** [sql/CMakeFiles/sql_gis.dir/all] Error 2...原创 2020-12-25 14:54:37 · 166 阅读 · 0 评论 -
memory引擎、BTree索引
# session表memory引擎,frm后缀,只有表结构,数据放在内存中,默认hash索引,但实际上多使用Btree索引# hash 索引Hash检索效率非常高,索引的检索可以一次定位,不像B-Tree 索引需要从根节点到枝节点,多次的IO访问Hash局限:等值的过滤,无法排序,组合索引无法使用,全表扫描(多个key对应一个Hash值),大数据量时性能低下# BTree索引时间索引`expire` datetime not nullINDEX `pk_exp...原创 2020-09-25 00:51:57 · 194 阅读 · 0 评论 -
mysql 1045 错误
# ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)vim /etc/my.cnf [mysqld] 下增加skip-grant-tables service mysqld restart ./mysql -uroot -p set password for 'root'@'localhost'=password('123456’); flush pr.原创 2020-07-05 17:13:04 · 57 阅读 · 0 评论 -
Shopnc 3 之 Mysql 5.7 RPM版安装
系统:centos 7版本 :mysql-5.5.33-linux2.6-x86_64.tar.gz# 解压tar zxf mysql-5.7.30-linux-glibc2.12-x86_64.tar.gz -C /Data/appcd /Data/app/ln -s mysql-5.7.30-linux-glibc2.12-x86_64/ mysql 「symbolic 」cd mysql# 用户useradd mysqlgroups mysql...原创 2020-07-02 16:40:50 · 73 阅读 · 0 评论 -
mysql5.6编译安装
# 工具yum -y install gccyum -y install gcc-c++yum -y install makeyum -y install cmake (注:Mysql 5.5后不再使用 ./configure 改用 cmake 编译工具)//wget wgethttp://www.cmake.org/files/v3.1/cmake-3.1.1.tar.gz;tar -zxf cmake-3.1.1.tar.gz;./bootstrap;make;make insta.原创 2020-05-26 09:53:53 · 165 阅读 · 0 评论