主要的原因是找不到数据库驱动
以oracle为例:
2、修改workbench.bat文件
找到“rem you should also put mondrian.properties on the calsspath for it to be picked up”这一行
在下方添加 set CP=%CP%;./mondrian.properties
找到“rem add all needed JDBC drivers to the classpath”这一行
在下方添加set CP=%CP%;lib/jdbc.jar(如果有多个驱动JAR文件,就添加多行)
3、重新启动workbench.bat
完成