随笔分类 - 数据库
摘要:mysqldump命令 @echo off set "dateYmds=%date:~,4%%date:~5,2%%date:~8,2%" echo "%dateYmd%" "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe" -uu
阅读全文
摘要:maven依赖包 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.22</version> </dependency> 连接池配置xml <?xml version="1.
阅读全文
摘要:maven依赖包引入 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.73</version> </dependency> <dependency> <groupId
阅读全文
摘要:maven包依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.21</version> </dependency> 连接查询 初始化驱动 static
阅读全文
摘要:linux-shell脚本执行sql脚本 #!/bin/bash echo "start init db, create_tables & init_tables" service mysqld stop sleep 1 service mysqld start sleep 1 db_curr=`p
阅读全文
摘要:navicat客户端方式 通过navicat工具链接mysql服务器 1. navicat工具链接,如果连接成功,跳过步骤2 2. mysql服务开启远程链接 A. 给一个用户分配权限[ALL PRIVILEGES] 或者 读权限 https://www.cnblogs.com/albertYe/p
阅读全文