Can’t login: Connect to api.github.com:443 [api.github.com/13.250.168.23] failed: Connection refused: connect
// Body represents the response body. // // The response body is streamed on demand as the Body field // is read. If the network connection fails or t ...
分类:
其他好文 时间:
2020-06-30 11:07:15
阅读次数:
64
修改最大连接数 重启 查询已连接数 1、查看当前用户连接数:select connections(); 2、修改用户new_user的最大并发连接数为50:alter user new_user with connection limit 50; 3、修改用户new_user的最大连接时间为2小时: ...
分类:
其他好文 时间:
2020-06-30 10:25:55
阅读次数:
142
问题: 使用Flask-SQLALchemy连接mysql数据库,过几个小时第一次使用会出现MySQL Connection not available的情况,第二次使用又恢复正常了。 解决方案: 用命令查看数据库的过期时间 show global variables like 'wait_time ...
分类:
数据库 时间:
2020-06-29 17:19:09
阅读次数:
176
按照常规配置好后,单节点启动报错如下: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLExcep ...
分类:
数据库 时间:
2020-06-29 11:36:05
阅读次数:
155
在jsp中获取数据库数据 <% Class.forName("com.mysql.jdbc.Driver");//加载mysql驱动 Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/test1", "r ...
分类:
数据库 时间:
2020-06-29 09:37:42
阅读次数:
71
一. HTTP常见请求头 1. Host (主机和端口号) 2. Connection (连接类型) 3.Upgrade-Insecure-Requests (升级为HTTPS请求) 4. User-Agent (浏览器名称) 5. Accept (传输文件类型) 6.Referer (页面跳转处) ...
分类:
Web程序 时间:
2020-06-28 18:57:30
阅读次数:
98
一、recursive_mutex class MyClass { public: void Fun1() { // std::lock_guard<mutex> sguard(m_mutex); // 加锁处理共享内存 std::lock_guard<recursive_mutex> sguard ...
分类:
其他好文 时间:
2020-06-27 20:25:35
阅读次数:
70
Statement测试 /** * 通过JDBC向指定的数据表中插入一条记录 * 1. Statement:用于执行sql语句的对象 * 1.1 通过Connection的createStatement()方法来获取 * 1.2 通过executeUpdate(sql)可以执行SQL语句 * 1.3 ...
分类:
数据库 时间:
2020-06-27 20:03:07
阅读次数:
61
1、command line:nmtui 说明:如果没装nmtui,首先输入命令:yum install nmtui -y 2、select-->Activate a connection 3、select-->your WiFi-->Activate,input password-->Back 4 ...
分类:
其他好文 时间:
2020-06-27 13:21:17
阅读次数:
96