mysql 8.0以上版本用户密码修改

执行以下命令: mysql -uroot -p use mysql;  update user set authentication_string=\'\' where user=\'root\'; //将 authentication_string 置空 alter user \'root\'@\'%\' identified by \'newpassword\'; flush privileges; 注

mysql 8.0以上版本添加用户并授权

执行如下命令: grant all privileges on *.* to \'root\'@\'%\' identified by \'123456\' with grant option 报错: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for

Ubuntu MySql连接错误码10060/10061的排查及解决方法

错误码10060一般是因为防火墙: ufw allow 3306; //允许外部访问3306端口 ufw allow from 192.168.5.38; //允许此IP访问所有的本机端口 ufw status; //查看防火墙状态 ufw disable/enable; //关闭或打开防火墙 没装 ufw 就执行安装既可:apt-get install ufw; 错误码10061错误为配置原因:

多表查询里的笛卡尔积

在数学中,笛卡尔乘积是指两个集合X和Y的笛卡尓积(Cartesian product),又称直积,表示为X × Y,第一个对象是X的成员而第二个对象是Y的所有可能有序对的其中一个成员。 假设集合A={a, b},集合B={0, 1, 2},则两个集合的笛卡尔积为{(a, 0), (a, 1), (a, 2), (b, 0), (b, 1), (b, 2)}。 笛卡尔积是在多表进行联合查询的时候会出