In this Python notebook, I will show you how to use SQLDatabaseChain to interact with a MySQL database in natural language.
- Configure
.env
with your valid OpenAI API key in your local env following the example.env.example
. - Install and launch MySQL database server in your local env.
- Create a new database
students
. - Import students.sql into the created databse in step 3.