tableau连接mysql数据库步骤如下:
1.先确认你的电脑mysql的数据驱动和tableau是不是一致的,都是32bit或者都是64bit,如果不一致,请下载对应的mysql驱动。下载地址为:https://dev.mysql.com/downloads/connector/odbc/
下载后安装好。
tableau连接mysql数据库的详细步骤,最新/ mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
2.在cmd账户连接上mysql数据库。然后依次输入下面4句命令,一句不能少:
(1)CREATE USER ‘root’@’%’ IDENTIFIED BY ‘123456’ ;
(2)grant all privileges on . to ‘root’@’%’ ;
如果只输入前2步,一般会报错,远程连接的时候报plugin caching_sha2_password could not be loaded这个错误,所以需要第三步修改密码加密插件:
(3)alter user ‘root’@’%’ identified with mysql_native_password by ‘123456’ ;
(4)输入完成后,加上刷新的命令:flush privileges;

3.再打开tableau连接,就能连接上数据库了。

相关文章:

  • 2023-01-05
  • 2021-08-03
  • 2022-12-23
  • 2023-03-13
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-08-06
  • 2021-08-24
  • 2021-05-12
  • 2021-12-20
相关资源
相似解决方案