一、登录MySQL数据库
mysql -uroot -pXjm123456 二、使用mysql数据库 use mysql; 三、查询user表中包含host的字段
select user,host from user;### 该字段中,localhost表示只允许本机访问,可以将‘localhost’改为‘%’,‘%’表…
场景:
我在一张表里设置了唯一索引,但是我发现还是出现了重复数据,这是什么情况呢,难道唯一索引失效了?
准备数据:
-- dc_portal.user definitionCREATE TABLE user (id bigint unsigned NOT NULL AUTO_…