![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
江湖人称黑哥
这个作者很懒,什么都没留下…
展开
-
Spring Boot Jpa之构建动态SQL查询语句
Spring Boot Jpa之构建动态SQL查询语句引入依赖包:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId></dependency>DAO接口继承JpaSpecificationExecutor。该接口允许基于JPA标准的API规范转载 2020-08-28 16:16:35 · 1275 阅读 · 0 评论 -
解决报错:Error Code: 1786 Statement violates GTID consistency: CREATE TABLE ... SELECT.
1、错误描述1 queries executed, 0 success, 1 errors, 0 warnings查询:call account_check_main('20180511')错误代码: 1786Statement violates GTID consistency: CREATE TABLE ... SELECT.执行耗时 : 0 sec传送时间 : 0 sec总耗时 : 0.066 sec2、错误原因这是因为在5.6及以上的版本内,开启了 enforc转载 2020-06-24 10:14:59 · 1030 阅读 · 0 评论 -
mysql 让清空表且自增的id重新从0开始的命令
sql命令: 用于清空某表的数据 且让自增的id重新从0开始:truncate table 你的表名原创 2020-06-22 15:34:15 · 1639 阅读 · 0 评论 -
Linux 中改变 MySQL8 数据库存储路径
Linux 中改变 MySQL8 数据库存储路径原创 2020-05-11 14:24:19 · 1338 阅读 · 0 评论 -
CentOS7下安装mysql5.7
CentOS7下安装mysql5.7原创 2020-04-27 15:03:22 · 125 阅读 · 0 评论 -
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
事先提醒:如果输入SHOW VARIABLES LIKE ‘validate_password%’;先拿安装mysql时生成默认密码再设置一次就行grep ‘temporary password’ /var/log/mysqld.logALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;原文...原创 2020-04-25 20:27:39 · 200 阅读 · 0 评论 -
shell:mysql重置密码以及运行远程访问的脚本
#!/bin/bash##Linux MYSQL8.0 密码重置脚本mysql=`which mysql`$mysql -uroot -proot <<EOFuse mysql;ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';FLUSH PRIVILEGES;...原创 2020-03-19 15:56:52 · 279 阅读 · 0 评论 -
mysql 命令大全
<span style=“font-size:18px;”> MYSQL常用命令 1.导出整个数据库 mysqldump -u 用户名 -p –default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1) mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql...转载 2020-03-19 15:31:17 · 148 阅读 · 0 评论 -
Ubuntu19.10 mysql8.0设置root密码和远程连接
第一步,下载mysqlapt-get install mysql-server第二步,输入mysql进入服务mysqlmysql第三步,如果进入不了,可能是mysql服务没有开,开启mysqlservice mysql start第四步...原创 2020-03-18 18:42:56 · 2590 阅读 · 1 评论