Skip to content

Dropping upstream MySQL database makes Readyset unusable until DB is recreated #1600

Open

Description

@vgrippa

Description

Environment

  • Readyset binary: ./target/debug/readyset
  • Upstream: MySQL
  • Command used to start Readyset:
./target/debug/readyset \
  --upstream-db-url=mysql://root:readyset@127.0.0.1/employees \
  --cache-mode=deep-then-shallow

Steps to reproduce

  1. Start Readyset as above, with --upstream-db-url pointing at an existing MySQL database employees.
  2. Connect a MySQL client to Readyset.
  3. Run:
DROP DATABASE employees;
  1. From the same client session (still connected to Readyset), attempt:
   CREATE DATABASE test;
   CREATE DATABASE employees;

Actual behavior

  • After DROP DATABASE employees;, all subsequent statements sent through Readyset fail with:
  ERROR 1049 (42000): Unknown database 'employees'
  • Even CREATE DATABASE statements fail.
  • Readyset does not automatically recover; it appears “stuck” in a bad state.
  • The only way to recover is to recreate the employees database outside of Readyset (or restart Readyset with a valid upstream DB).

Activity

  1. added
    first-issue
    bug
    and removed
    first-issue
    bug
    on Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfirst-issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions