随笔分类 - 数据库
摘要:1、ssh连接到服务器 2、执行命令 vim /etc/my.cnf 在 [mysqld]添加以下内容: skip-grant-tables 3、systemctl restart mysqld 4、mysql -uroot -p 然后回车登录 5、update user → set authent
阅读全文
摘要:1、适用于数据库内容小的情况 2、适用于数据库内容大的情况
阅读全文
摘要:1、单列排序 ASC默认升序,降序后面接"DESC"即可。 2、多列排序 首先按`column_name1`字段排序,若`column_name1`相等,则按column_name2排序。 3、自定义排序 使用"FIELD()"函数,可指定顺序。 4、其他条件排序 先按大于等于当前时间升序,再按小于
阅读全文
摘要:调试代码时,发现错误: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically
阅读全文

浙公网安备 33010602011771号