![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
有关MySQL的收获
strcpy_s
这个作者很懒,什么都没留下…
展开
-
MySQL学习笔记:Linux登录MySQL不需要密码
一.问题描述 在ubuntu 20.04下,使用sudo mysql -u root -p登录MySQL,虽然会提示输入密码,但是可能输入任何内容都可以成功登录。 二.问题探究 (1)使用select user,host,plugin from mysql.user;得到以下内容 可知,由plugin为auth_socket引起。 (2)auth_socket讲解:故障分析 | 正确使用 auth_socket 验证插件 ...原创 2021-12-02 12:54:14 · 402 阅读 · 0 评论 -
mysql 学习笔记:查看字段类别
select column_name,column_comment,data_type from information_schema.columns where table_name='表名' and table_schema='数据库名'原创 2021-09-11 23:33:04 · 173 阅读 · 0 评论 -
java web学习笔记: mybatis <resultMap>应用
<resultMap id="getListItem" type="com.strcpy_s.bean.VO.QuestionListItem"> <!-- <id property="problemId" column="problemId"/>--> <!-- <result property="name" column="name"/>--> <!-- <result property=.原创 2021-08-29 23:07:56 · 126 阅读 · 0 评论 -
解决mysql报错:Error Code: 2014 Commands out of sync; you can‘t run this command now
以下是我出错的代码: delimiter $$ drop procedure if exists show_all; create procedure show_all() begin declare bname text; declare eno text; declare done int default 0; declare bname_cur cursor for select temp.bname as info from (select distinct bank.bname from b原创 2020-12-23 09:17:45 · 2218 阅读 · 0 评论