摘要: 安装 CentOS7默认数据库是mariadb,配置等用着不习惯,因此决定改成mysql,但是CentOS7的yum源中默认好像是没有mysql的。为了解决这个问题,我们要先下载mysql的repo源。 1.下载mysql的repo源 $ wget http://repo.mysql.com/mys 阅读全文
posted @ 2018-06-14 15:12 瓜田月夜 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 数据库中存在大量的重复内容,并且存在着外键关系 先删除外键的,以内容分组,查询条数大于一的,将该id在多对多的表中删除 delete from poem2cls where poem_id in(select id from (select id,count(*)as count from poem 阅读全文
posted @ 2018-06-14 07:39 瓜田月夜 阅读(298) 评论(0) 推荐(0) 编辑