Connecting to the Server Using URI-Like Strings or Key-Value Pairs • AUTO • MYSQL41 • SHA256_MEMORY • FROM_CAPABILITIES • FALLBACK • PLAIN For X Protocol connections, any configured  auth-method  is overridden to this sequence of authentication methods:  MYSQL41 ,  SHA256_MEMORY ,  PLAIN . • get-server-public-key : Request from the server the public key required for RSA key pair-based password exchange. Use when connecting to MySQL 8.0 servers over classic MySQL protocol with SSL mode  DISABLED . You must specify the protocol in this case. For example: • server-public-key-path : The path name to a file in PEM format containing a client-side copy of the public key required by the server for RSA key pair-based password exchange. Use when connecting to MySQL 8.0 servers over classic MySQL protocol with SSL mode  DISABLED . • connect-timeout : An integer value used to configure the number of seconds that clients, such as MySQL Shell, wait until they stop trying to connect to an unresponsive MySQL server. • compression : This option requests or disables compression for the connection. Up to MySQL 8.0.19 it operates for classic MySQL protocol connections only, and from MySQL 8.0.20 it also operates for X Protocol connections. •Up to MySQL 8.0.19, the values for this option are  true  (or 1) which enables compression, and the default  false  (or 0) which disables compression. This option applies to clients that authenticate with the  sha256_password  or caching_sha2_password  authentication plugin. This option is ignored for accounts that do not authenticate with one of those plugins. It is also ignored if RSA-based password exchange is not used, as is the case when the client connects to the server using a secure connection. If  server-public-key-path= file_name  is given and specifies a valid public key file, it takes precedence over  get-server-public-key . For information about the  sha256_password  and  caching_sha2_password  plugins, see Section 6.4.1.3, “SHA-256 Pluggable Authentication” , and Section 6.4.1.2, “Caching SHA-2 Pluggable Authentication” . This option applies to clients that authenticate with the  caching_sha2_password  authentication plugin. For that plugin, the server does not send the public key unless requested. This option is ignored for accounts that do not authenticate with that plugin. It is also ignored if RSA-based password exchange is not used, as is the case when the client connects to the server using a secure connection. If  server-public-key-path= file_name  is given and specifies a valid public key file, it takes precedence over  get-server-public-key . For information about the  caching_sha2_password  plugin, see Section 6.4.1.2, “Caching SHA-2 Pluggable Authentication” . mysql://user@localhost:3306?get-server-public-key=true 370