数据库技术
1 机器准备 机器名 ip 角色 wyl01 192.168.52.128 master1 ,mycat wyl02 192.168.52.129 slave1 wyl03 192.168.52.130 master2 wyl04 192.168.52.131 slave2 设计思路:部署4个数据库 ...
将lower_case_table_names=1追加到mysqld.cnf,然后重启服务即可。 docker exec mysql bash -c 'echo "lower_case_table_names=1" >> etc/mysql/mysql.conf.d/mysqld.cnf' dock ...
1.查看mysql的运行状态 systemctl status mysql.service 2.安装与初始化 https://t.codebug.vip/questions-691282.htm sudo apt install mysql-server mysql-client #同时安装服务器和 ...
SELECT DISTINCT substring_index(substring_index(a.value, '\n', b.help_topic_id + 1), '\n',- 1) NAMEFROM t_cr_permission a JOIN mysql.help_topic b ON b ...
set @report_date = '2013-01-17 00:00:00';select @report_date; set @report_date = cast('2013-01-17 00:00:00' as datetime); SELECT @report_date; DECLARE ...
1,安装Mongoose驱动 cnpm install mongoose --save 2,编写js代码 // 建立 到mongoDB 的连接 const mongoose = require('mongoose'); // mongoose.connect('mongodb://localhost ...
建表空间攻略 创建临时表空间 create temporary tablespace user_temp tempfile '[全路径]' size 1G autoextend off; 创建数据表空间 create tablesspace user_data datafile '[全路径]' si ...
MySQL 8.0 的五个新特性: 隐藏索引 该特性对性能调试非常有用,索引可以被「隐藏」和「显示」,当一个索引隐藏时,它不会被查询优化器使用。我们可以观察隐藏索引对数据库的影响来看这个素银是否有用的。 注意:隐藏索引时,索引内容和正常索引一样会实时更新,会跟其他索引那样影响插入、更新和删除时的性能 ...
首先描述一下问题 问题:sqlyog 使用ssh免密,(使用本地私钥)无法连接mysql数据库 解决方案: 1.sqlyog 秘钥格式是以.ppk结尾的加密串,需要使用putty工具进行生成网上资料基本是生成的1024,但是一直提示unable to authenticate 但是没有解决问题重点是 ...
MongoDB的基本操作 一、常用操作 //查看所有数据库 show dbs; //选中库 use s10; //显示所有集合 show collections; //创建student集合 db.createCollection("student"); //删除tb_person集合 db.tb_ ...