Add more information about specifying a mysql connection
@@ -121,8 +121,11 @@ impl Connection for MysqlConnection {
/// Establishes a new connection to the MySQL database
/// `database_url` may be enhanced by GET parameters
- /// `mysql://[user[:password]@]host/database_name[?unix_socket=socket-path&ssl_mode=SSL_MODE*&ssl_ca=/etc/ssl/certs/ca-certificates.crt]`
+ /// `mysql://[user[:password]@]host[:port]/database_name[?unix_socket=socket-path&ssl_mode=SSL_MODE*&ssl_ca=/etc/ssl/certs/ca-certificates.crt]`
///
+ /// * `host` can be an IP address or a hostname. If it is set to `localhost`, a connection
+ /// will be attempted through the socket at `/tmp/mysql.sock`. If you want to connect to
+ /// a local server via TCP (e.g. docker containers), use `0.0.0.0` or `127.0.0.1` instead.
/// * `unix_socket` expects the path to the unix socket
/// * `ssl_ca` accepts a path to the system's certificate roots
/// * `ssl_mode` expects a value defined for MySQL client command option `--ssl-mode`
