You’ll need a MySQL Connector to be installed for this on the machine where your Job/Process/robot will run. Install the exe and then you can use “Connect” activity with provider as “MySql.Data.MySqlClient” and Connection string like
Note that you’ll have to install this connector on all machines which will be making DB transactions. Additionally, kindly check if your target machine is able to reach the server where your MySQL DB is located.
If you’re using Execute query then that means you’re just trying to retrieve information from the database and store in a Datatable in Uipath.
If you’re trying to use update/insert queries then use “Execute non Query” and parameter directions need to be “IN”. Parameter names should be starting with “@” and must be equal to the column name from the database
Example : Query should look like “insert into dbo.TableName values (@Name, @Age)” and the parameter names section in your activity should have @Name followed by the direction and the datatype corresponding to the datatype of the DB column (eg. String should be used when it’s Varchar).
While I am trying to use an “Execute query” also getting an same error. "Error : Execute Non Query: String[1]: the Size property has an invalid size of 0. "
Hi
am also facing same issue
i have connected by giving “Server=YourHostName;Database=DatabaseName;Uid=userName;Pwd=Password;”
used “Connect” activity with provider as “MySql.Data.MySqlClient”
I have already installed mysql connector
still am facing this issue in production
can you help me
Could you please follow the below steps to connect to MySQL database using UiPath:
Install MySQL ODBC Driver
Create system/user DSN
Use the option ODBC DATA SOURCE for creating the connection
In the next window, select the DSN created above under system/user Data Source Name
For more in depth information please refer the below thread.
if you already done these configuration and still you are unable to connect to myslq DB. please share the screenshot of your error to proceed further on this issue and screenshot of the error will help us to our forum members to help you in better way. thanks.