Thanks Ray. Yes I've tried opening an existing server behavior but it didn't create a new MySQLi connection. However, I have tried creating a separate one manually (as suggested) and it seems to be working great. I've now migrated 2 pages of my site so far... another few hundred to go :-D
Many thanks,
Thomas