首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

python对mysql数据库的操作(一)

本文章介绍python对mysql数据库的基本操作,以及编写一个模拟用户的注册。在自动化测试中,某些人认为是没有必要操作数据库的,理由是大多数的自动化测试都是UI的,非接口的自动化测试,其实,在一个项目的自动化测试中,这种定义很模糊,或者说很不明确,比如在自动化测试中,怎么来验证用户登录成功,用户注册成功?先来说登录,用户登录成功后,验证点首先是用户的昵称,再有么?是的,有,必须得验证url,这是一个完整的测试用例,再来说注册,注册成功后,验证点再我看来,一是到数据库查看,用户注册的信息是否insert到对应了表了,满足一的基础上,再验证注册的用户可不可以登录。所以说,在自动化测试中,对数据库的操作,具体看得场景,业务,具体问题得具体分析。

02

MySQL数据库源码编译安装无法启动解决

2018-04-14 19:39:46 67547 [Note] Plugin 'FEDERATED' is disabled. /usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist 2018-04-14 19:39:46 67547 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 2018-04-14 19:39:46 67547 [Note] InnoDB: Using atomics to ref count buffer pool pages 2018-04-14 19:39:46 67547 [Note] InnoDB: The InnoDB memory heap is disabled 2018-04-14 19:39:46 67547 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-04-14 19:39:46 67547 [Note] InnoDB: Memory barrier is not used 2018-04-14 19:39:46 67547 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-04-14 19:39:46 67547 [Note] InnoDB: Using CPU crc32 instructions 2018-04-14 19:39:46 67547 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2018-04-14 19:39:46 67547 [Note] InnoDB: Completed initialization of buffer pool 2018-04-14 19:39:46 67547 [Note] InnoDB: Highest supported file format is Barracuda. 2018-04-14 19:39:46 67547 [Note] InnoDB: Log scan progressed past the checkpoint lsn 49463 2018-04-14 19:39:46 67547 [Note] InnoDB: Database was not shutdown normally! 2018-04-14 19:39:46 67547 [Note] InnoDB: Starting crash recovery. 2018-04-14 19:39:46 67547 [Note] InnoDB: Reading tablespace information from the .ibd files... 2018-04-14 19:39:46 67547 [Note] InnoDB: Restoring possible half-written data pages 2018-04-14 19:39:46 67547 [Note] InnoDB: from the doublewrite buffer... InnoDB: Doing recovery: scanned up to log sequence number 1600607 2018-04-14 19:39:46 67547 [Note] InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percent: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed 2018-04-14 19:39:46 67547 [Note] InnoDB: 128 rollback segment(s) are active. 2018-04-14 19:39:46 67547 [Note] InnoDB: Waiting for purge to start 2018-04-14 19:39:46 67547 [Note] InnoDB: 5.6.39 started; log sequence number 1600607 2018-04

02
领券