dbdeployer 2.5.0 is out: Try MySQL 9.7 and 26.7 in a sandbox
dbdeployer 2.5.0 is out. If you’ve been meaning to try MySQL 9.7 or 26.7, you can now bring up either series in a local sandbox. Keep your current sandbox nearby, run the same workload against both, and see what changes before you plan an upgrade.
That’s one of the reasons we took over maintenance of dbdeployer. When a new database release lands, we want it to be easy to try a query, reproduce a bug, or check how an application behaves through ProxySQL. Getting the database running should be the quick part.
Take MySQL 26.7 for a spin
With dbdeployer 2.5.0 installed and your sandbox directories set up, try this on an x86-64 Linux host with the libraries required by the MySQL binaries:
dbdeployer downloads get-by-version 26.7.0 --minimal --unpack
dbdeployer deploy single 26.7.0
~/sandboxes/msb_26_7_0/use -e 'SELECT VERSION();'
Use 9.7.2 in the download and deploy commands to try MySQL 9.7. For replication testing, dbdeployer also knows which commands to use for MySQL 26.x. Group replication sandboxes use XCOM so each member can listen on its own group communication port.
Keep both builds while you investigate
Sometimes the comparison you need is between a release and its correction build. Say you already have MySQL 8.4.13 unpacked and want to find out whether a bug still occurs in 8.4.13.1. Previously, dbdeployer treated both archives as 8.4.13, so the second unpack would collide with the first directory.
Now each archive gets its own directory. You can deploy both versions by their full names and try the same steps against each. If you ask for 8.4, dbdeployer will consider the correction build when choosing the newest installed release in that series.
One gotcha when the sandboxes share a host
Both 8.4.13 and 8.4.13.1 start looking for a port at 8413. If the first sandbox already has it, the correction build can land on 8414, which is also where 8.4.14 would start looking. If you deploy 8.4.14 alongside them, dbdeployer skips the ports already assigned to sandboxes in the same sandbox home. The order you deploy in can change which port each build gets.
If a test script expects a particular port, give the correction build a different starting port when you deploy it, then check what it actually got:
dbdeployer deploy single 8.4.13.1 --port=18413
~/sandboxes/msb_8_4_13_1/use -N -e 'SELECT @@port;'
Use an available port for your setup. If your script just needs to run queries against a sandbox, you can call its generated use script directly and let it handle the connection details. For replication or multiple sandboxes, use --base-port to choose where dbdeployer starts allocating node ports.
Thanks, Jean-François Gagné, for the original report and the follow-up, and for trying the fix across all three MySQL series. Your port example is exactly the kind of detail that matters when you keep several builds around for testing.
Download dbdeployer 2.5.0 for Linux or macOS. If you’re setting up your first sandbox, the dbdeployer quickstart walks through the setup.