Hey There! :wave: Your message has been received ...
# support
s
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
g
can you please share the steps to reproduce this?
a
g
If I just go with this message, running following command in your mysql cli should fix this. But I'm not sure if this is desired or not
Copy code
SET GLOBAL sql_require_primary_key = 0;
a
Does this affect the database I'm using?
g
Yes, it does. It won't require primary key for the tables after that.
Is this the production database you're trying to connect or testing with a new database?
a
yes.
i am trying to connect and get data from mysql
can you share the successful connection steps?
g
I'd suggest to create a test database first and when it works well, switch to production database
a
I have tried with 1 database test. and still get the same error.
g
For this test database, can you run this in mysql cli
Copy code
USE test_database_name;
SET sql_require_primary_key = 0;
a
run on database test. this will change my old data to correct sql_require_primary_key
g
no. we don't want to make any changes in production database. usually this primary key requirement is recommended. so make sure to run
use test_database_name
as mentioned
replace
test_database_name
with the new test database you created
we are just testing here if the issue is at RudderStack end or this is an issue with mysql permissions
a
i have tried.command in run is ok. but still can't connect from rudderstask to mysql
g
What error did you get this time?
a
it's still the same old bug
g
Ok. So even after turning off the primary key requirement, you're getting the same error. Let me get the team to look into this. This might take some time.
a
thank you. Hope to hear from you soon
g
@astonishing-monitor-39443 can you share the output of following command
Copy code
SHOW VARIABLES;
a
what variable do you need to check. I see a lot of data variables
g
sql_require_primary_key
So it didn't get turned off.
Run this command again
Copy code
USE test_database_name;
SET sql_require_primary_key = 0;
And then update the database settings in RudderStack dashboard for this new database
Then check if it works or not
a
it doesn't worl
s
Hi Anh Le I was checking your workspace and could not find any MySQL source there. Can you check below step and try to recreate the source again • Able to Access RudderStack Schema: This option implies that RudderStack is able to access the`_rudderstack`schema you have created by successfully running all the commands in theUser Permissionssection. • If this option gives an error, verify if you have successfully created the
_rudderstack
schema and given RudderStack the required permissions to access it. For more information, refer to theUser Permissionssections.