howto brew link to a specific version

The usage info

Usage: brew switch <formula> <version>Example: brew switch mysql 5.5.29

The versions installed on your system you can find with info: brew info mysql

And to see the available versions to install, use versions: brew versions mysql

And to install an older version of a formula read the answers here.