问题
尝试连接到 MySQL 时,可能会出现以下错误:与 MySQL 数据库通信时出错。
The drivers necessary to connect to this database server are not properly installed. Visit http://www.tableausoftware.com/drivers to download driver setup files.(连接到此数据库服务器所必需的驱动程序未正确安装。请访问 http://www.tableausoftware.com/drivers 以下载驱动程序安装文件。)
找不到 [Microsoft][ODBC Driver Manager] 数据源名称,并且未指定默认驱动程序
Unable to connect to the server "<server name>". Check that the server is running and that you have access privileges to the requested database.(无法连接到服务器“<服务器名称>”。 请检查服务器是否正在运行,并且您具有所请求的数据库的访问权限。)
Unable to connect to the server.(无法连接到服务器。)
The drivers necessary to connect to this database server are not properly installed. Visit http://www.tableausoftware.com/drivers to download driver setup files.(连接到此数据库服务器所必需的驱动程序未正确安装。请访问 http://www.tableausoftware.com/drivers 以下载驱动程序安装文件。)
找不到 [Microsoft][ODBC Driver Manager] 数据源名称,并且未指定默认驱动程序
Unable to connect to the server "<server name>". Check that the server is running and that you have access privileges to the requested database.(无法连接到服务器“<服务器名称>”。 请检查服务器是否正在运行,并且您具有所请求的数据库的访问权限。)
Unable to connect to the server.(无法连接到服务器。)
此外,Tableau Desktop 日志文件中会出现以下错误:
[MySQL][ODBC <version> Driver]Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled([MySQL][ODBC <版本> 驱动程序]使用旧版(4.1.1 之前)身份验证协议的连接被拒绝(启用了客户端选项“secure_auth”))