(Showing Draft Content)

Connect to TiDB

To create a TiDB data source in Wyn Enterprise, follow these steps.

  1. On the Resource Portal, navigate to Create (+) > Create Data Source.

  2. Select TiDB in the data source list on the left or in the icon view on the right.

  3. Fill in the database configuration information for the selected data source.

Field Description
Name* The name for the data source that you want to specify.
Server* A server name or address.
Port* A port number, the default is 4000.
User* A user name to connect to the TiDB database.
Password* A password of the TiDB user.
Database* Enter the database name or click the drop-down to select any.
Use Configuration String (Advanced) Use this option to connect to the data provider through a connection string. The format of the connection string is:
Server=myServerAddress; Database=myTiDBDatabase; Port=myServerPort; Uid=username; Pwd=password;. For more information, see User Context.
Use Table/Field Name Mapping If you check this option, you can either import a CSV file or manually enter the display names for the required tables or fields in the Mapping dialog. In case of the RDBMS databases, you can also import the name mapping information from another database. For more information on mapping table and column names, visit this topic.
  1. Click Test Connection to verify the data source connection. If the data source is available, and the credentials filled are correct, you then receive a notification on successful connection.

  2. Click Create after the successful connection.

    You can view the added data source in the Categories tab of the Resource Portal.