随笔分类 - MySQL
摘要:1. canal 2. 数据同步
阅读全文
摘要:1. 问题描述: java.sql.SQLException: Access denied for user 'xxx'@'xxx.xxx.xxx.xxx' (using password: YES) https://www.cnblogs.com/MWCloud/p/11352557.html s
阅读全文
摘要:参考: Linux安装MySQL5.7 mysql5.7.35下载 如果下载速度比较慢,采用下载 mysql其他版本下载 注意: 安装后 1. 修改密码 set password for 用户名@localhost = password('新密码'); flush privileges; 2. 出现
阅读全文
摘要:1、数据类型 https://www.tutorialspoint.com/mysql/mysql-data-types.htm 2、int长度的意义 https://blog.csdn.net/tiansidehao/article/details/78981968 MySQL中,采集int类型元数据字段信息时,不能找到【显示长度】,解决方案: select * from informa...
阅读全文
摘要:1、ResultSet getColumns https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,java.lang.String,java.lang.String,java.lang.String) htt...
阅读全文
摘要:参考: https://dzone.com/articles/how-use-linkedin-market-your 表空间信息 https://coderanch.com/t/300498/databases/Java-find-List-tablespaces-database getCata
阅读全文
摘要:参考: http://youzhixueyuan.com/index-principle-and-slow-query-optimization-of-mysql.html
阅读全文
摘要:mysql, shell脚本中执行sql脚本并传递参数
阅读全文
摘要:1、sql脚本(t.sql) 2、shell脚本(a.sh 为方便说明,a.sh与t.sql在同一目录下) 说明:3种执行方式,后两行也可以(已注释,感兴趣可以尝试下) #!/bin/sh mysql -u root < t.sql# mysql -u root -e "source t.sql"#
阅读全文
摘要:1、mysql 数据库表信息 2、shell脚本(a.sh)信息 3、执行 ./a.sh 4、 执行结果
阅读全文