![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 58
zhangcsu2014
这个作者很懒,什么都没留下…
展开
-
一台电脑不能连接另外一台电脑的数据库
Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.解决:原因1:首先确定,客户端电脑pi原创 2016-12-14 00:40:55 · 3317 阅读 · 0 评论 -
execute、executeUpdate、executeQuery三者的区别(及返回值)
execute、executeUpdate、executeQuery三者的区别(及返回值)一、boolean execute(String sql)允许执行查询语句、更新语句、DDL语句。返回值为true时,表示执行的是查询语句,可以通过getResultSet方法获取结果;返回值为false时,执行的是更新语句或DDL语句,getUpdateCount方法获取更新的记录数量。转载 2016-12-15 09:39:55 · 817 阅读 · 0 评论 -
python mysql 1045 OperationalError: 1045, "Access denied for user root@'localhost'
Python代码:# ^_^ coding: utf-8 ^_^import MySQLdb#打开数据库连接db = MySQLdb.connect("localhost","root","zhang123","stucou")cursor = db.cursor()cursor.execute("SELECT VERSION()")data = cursor.fe原创 2017-02-27 10:50:42 · 2452 阅读 · 0 评论