![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
风小筝123
这个作者很懒,什么都没留下…
展开
-
曾梦想仗剑走天涯,后来手机没电不去了曾梦想仗剑走天涯,后来手机没电不去了
打算打算分数繁发顺打算打算分数繁发顺打算打算分数繁发顺打算打算分数繁发顺原创 2023-01-18 20:53:55 · 149 阅读 · 0 评论 -
centos mysql5.5配置文件在哪
1. 找到mysql的配置文件/etc/my.cf2. 编辑my.cf文件3. 修改datadir以及socket和日志路径4. 将mysql数据库文件移动到自定义的目录下5. 重启mysqld服务原创 2022-06-20 14:48:35 · 525 阅读 · 0 评论 -
Oracle笔记
数据库:一个Oracle只有一个全局的数据库Oracle实例:一个Oracle实例就是一个进程,即一个数据库。可以有多个Oracle实例。 一个实例可以包含多个用户或多个表空间。 一个表空间下可以有多个用户。 数据文件dbf/ora:一个数据文件只能属于一个表空间表空间:一个表空间可以包含多个数据文件用户:用户在表空间下创建的,用户登录之后只能看到和操作自己的表 用户是...原创 2022-03-24 23:55:49 · 896 阅读 · 1 评论 -
All matches were filtered out by modular filtering for argument: mysql-community-server
yum -y install mysql-community-server 运行报错Last metadata expiration check: 0:00:01 ago on Mon 20 Dec 2021 05:12:59 PM CST.All matches were filtered out by modular filtering for argument: mysql-community-serverError: Unable to find a match: mysql-communi原创 2021-12-20 17:28:48 · 1674 阅读 · 0 评论 -
MySQL使用MRG_MyISAM(MERGE)实现分表后查询的示例
数据库大数据量优化是一门很大的学问,也是做为一名开发者需要掌握的专业技能。MySQL分表方式分为垂直分表和水平分表,这两种分表形式都比较简单。简单理解垂直分表指的是:表的记录并不多,但是字段却很长,表占用空间很大,检索表的时候需要执行大量的IO,严重降低了性能。这时需要把大的字段拆分到另一个表,并且该表与原表是一对一的关系。而水平分表则是在同一个数据库内,把同一个表的数据按一定规则拆到多个表中,目的是优化单一表数据量过大而产生的性能问题,避免IO争抢并减少锁表的几率。实现分表很简单,复杂的是原创 2021-12-12 18:26:58 · 1121 阅读 · 0 评论 -
Access denied for user ‘root‘@‘localhost‘ (using password: YES)
mysql密码输入错误原创 2021-08-30 11:01:53 · 132 阅读 · 0 评论 -
DataGrip报错Communications link failure
Failed[08S01] Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Communications link failure The last packet sent successfully to the server was .原创 2021-08-30 09:48:18 · 1902 阅读 · 0 评论 -
Duplicate key name ‘questionId‘
alter table question add unique(questionId);alter table question add index questionId(questionId);index 只能创建一次unique可以创建多次先index再unique是可以的,先unique再index是不可以的原创 2021-08-21 14:35:07 · 338 阅读 · 0 评论 -
mysql删除重复数据但留一条
delete from document_spiderwhere id in ( select b.idx from ( SELECT max(id) idx, count(documentSpiderId),filename,url FROM `document_spider` GROUP BY documentSpiderId HAVING count(documentSpiderId)>1 ) as b)原创 2021-07-30 22:35:31 · 80 阅读 · 0 评论 -
mysql 连接错误The server time zone value ‘?????????±?????????±???¤‘ is
The server time zone value '?????????±?????????±???¤' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you w.原创 2021-07-20 14:20:11 · 113 阅读 · 0 评论 -
JDBC连接Mysql出现Public Key Retrieval is not allowed的解决办法
我第一次使用到时候都是好好的,第二天重新运行的时候出现了com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed这个错误。解决办法:在url定义的地方加上:allowPublicKeyRetrieval=trueString url=“jdbc:mysql://localhost:3306/zy?useSSL=false&allo原创 2021-07-20 14:18:56 · 560 阅读 · 0 评论 -
mysql配置
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version><!-- <version>5.1.48</version>--&...原创 2021-07-20 14:16:12 · 136 阅读 · 0 评论 -
mysql中varchar能存多少汉字、数字,以及varchar(100)和varchar(10)的区别
看完这篇文章,你能搞清楚以下问题:1、varchar(100)和varchar(10)的区别在哪里?2、varchar能存多少汉字、数字?3、varchar的最大长度是多少呢?4、字符、字节、位,之间的关系?5、mysql字段类型存储需要多少字节?接下来请仔细看,整理不易啊。1、varchar(100)和varchar(10)的区别在哪里?一般初学会认为,二者占用的空间是一样的。比如说我存储5个char,二者都是实际占用了5个char了【不准确的想法:varchar在实际存储原创 2021-07-16 16:18:14 · 2641 阅读 · 0 评论