配置driver
- add a special parameter in the
dbeaver.ini
file: -Ddbeaver.drivers.configuration-file=c:\some-path\dbeaver-drivers-config.xml
- 新建或编辑dbeaver-deivers-config.xml,内容示例如下
<?xml version="1.0" encoding="UTF-8"?>
<drivers>
<provider id="mysql">
<driver id="mysql8">
<library type="jar" path="D:\tools\dbeaver-ce-latest-win32.win32.x86_64\dbeaver\repo\com.mysql\mysql-connector-j-8.2.0.jar"/>
</driver>
</provider>
<provider id="generic">
<driver id="test" name="mydriver" custom="true" embedded="false" class="com.mysql.cj.jdbc.Driver" url="jdbc:xxx://{host}[:{port}]/[{database}]" port="6666" description="my standard driver">
<library type="jar" path="D:\tools\dbeaver-ce-latest-win32.win32.x86_64\dbeaver\repo\com.mysql\mysql-connector-j-8.2.0.jar"/>
</driver>
</provider>
</drivers>
如果是自定义driver,要用generic这个id
- aaa
命令行启动
${ucmrdp_app} -data datas/${socketid} -closeTabs -disconnectAll -bringToFront -con \"name=${ucmrdp_name}|driver=${ucmrdp_driver}|host=${ucmrdp_host}|port=${ucmrdp_port}|user=${ucmrdp_username}|password=${ucmrdp_password}|prop.allowPublicKeyRetrieval=true\"
参考: https://dbeaver.com/docs/dbeaver/Command-Line/