[wp-trac] [WordPress Trac] #41425: Killing phpunit may result in a broken database

WordPress Trac noreply at wordpress.org
Mon Jul 24 15:50:01 UTC 2017


#41425: Killing phpunit may result in a broken database
------------------------------+-----------------------------
 Reporter:  bobbingwide       |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 While running phpunit for wordpress-develop under Windows I hit ctrl-break
 during the Install processing.

 The next time I ran phpunit it didn't work.


 === Actual output ===
 "Error establishing a database connection"
 <p>One or more database tables are unavailable. The database may need to
 be <a
 href="maint/repair.php?referrer=is_blog_installed">repaired</a>.</p></body>

 === Expected output ===
 The install routine should drop and recreate the tables during Install

 === Explanation ===
 The process was killed after the wp_options table was dropped but before
 wp_install() had completed.

 === Workaround ===
 Either change $table_prefix in wp-tests-config.php or drop all the other
 tables that are missing and re-run.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41425>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list