DBeaver相关

配置driver

  1. add a special parameter in the dbeaver.ini file: -Ddbeaver.drivers.configuration-file=c:\some-path\dbeaver-drivers-config.xml
  2. 新建或编辑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
  3. 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/

posted on 2024-06-03 09:51  heysong  阅读(9)  评论(0编辑  收藏  举报

导航