code: public static Server startTcpServerMode( String port, boolean doSSL, String tcpPassword, boolean ifExists, String baseDir )
              throws SQLException {
          List<String> params = new ArrayList<>();
          params.add("-tcpAllowOthers");
          params.add("-tcpPort");
          if (port == null) {
              port = "9123";
          }
          params.add(port);
  
          if (doSSL) {
              params.add("-tcpSSL");
          }
          if (tcpPassword != null) {
              params.add("-tcpPassword");
              params.add(tcpPassword);
          }
  
          if (ifExists) {
              params.add("-ifExists");
          }
  
          if (baseDir != null) {
              params.add("-baseDir");
              params.add(baseDir);
          }
  
          Server server = Server.createTcpServer(params.toArray(new String[0])).start();
          return server;
      }
docs: Start the server mode.
  
  <p>This calls:
  <pre>
  Server server = Server.createTcpServer(
  "-tcpPort", "9123", "-tcpAllowOthers").start();
  </pre>
  Supported options are:
  -tcpPort, -tcpSSL, -tcpPassword, -tcpAllowOthers, -tcpDaemon,
  -trace, -ifExists, -baseDir, -key.
  See the main method for details.
  <p>
  
  @param port the optional port to use.
  @param doSSL if <code>true</code>, ssl is used.
  @param tcpPassword an optional tcp passowrd to use.
  @param ifExists is <code>true</code>, the database to connect to has to exist.
  @param baseDir an optional basedir into which it is allowed to connect.
  @return
  @throws SQLException