MySQL
Effortzjw
这个作者很懒,什么都没留下…
展开
-
mysql添加用户并用Navicat远程连接
1、root账号远程登录update user set host='%' where user='root';flush privileges;2、新建用户,只允许本地访问create user Effortzjw@'localhost' identified by 'password';3、新建用户,允许远程访问create user Effortzjw@'%' identified by 'password';4、授权用户管理test表的全部权限grant all privileg原创 2020-12-18 15:39:46 · 472 阅读 · 0 评论 -
mysql group by分组对每组进行count计数
SELECT name,count() FROM fundlist GROUP BY name ORDER BY count() desc;原创 2020-12-16 09:24:44 · 2875 阅读 · 0 评论 -
mysql更新某个字段为null或""
//更新为nullupdate user set eamil = null where number = '123456';//更新为空update user set eamil = “” where number = '123456';原创 2020-04-17 13:40:54 · 6705 阅读 · 0 评论 -
mysql筛选某个字段为null的数据
SELECT * FROM `table_name` WHERE ISNULL(`status`) is TRUE原创 2020-04-17 13:37:14 · 4225 阅读 · 1 评论 -
Navicat 远程连接远程数据库(1130错误解决方法)
**1、问题:**连接远程数据库,出现了这个1130错误,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server2、解决方案:进入mysql:执行命令1----->GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '您的数...原创 2020-03-20 09:29:57 · 618 阅读 · 0 评论 -
在Navicat for MySQL中修改表的编码格式
在Navicat for MySQL中修改表的编码格式为utf-8:ALTER TABLE your_table_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;原创 2020-03-18 13:58:11 · 931 阅读 · 0 评论