![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
莫问收获,但问耕耘
滚滚长江东逝水,浪花淘尽英雄。
展开
-
让你少走弯路的MySQL中rank()、row_number()、dense_rank()排序
create table students( id int(4) auto_increment primary key, name varchar(50) not null, score int(4) not null );先简单的创建一个测试用的表,将数据插入表中。insert into students(name,score) values('curry', 100)...原创 2019-07-01 21:20:59 · 17683 阅读 · 6 评论 -
phpmyadmin连接MySQL8.0报错#2054 - The server requested authentication method unknown to the client
发生这种错误,是由于MySQL 8默认使用了新的密码验证插件:caching_sha2_password,而之前的PHP版本中所带的mysqlnd无法支持这种验证。有几种方法:1.升级PHP版本,PHP7.xx有支持MySQL8.0的插件认证2.修改配置文件my.cnf 使数据库启用兼容的加密方式我们这里讲第二种方法use mysql;ALTER USER ‘root’@‘localhos...转载 2019-06-23 16:49:07 · 1730 阅读 · 0 评论