What Should I Do If the MySQL Driver Package Is Missing When Data Is Imported or Exported Using Sqoop?
Symptom
When the sqoop import or sqoop export command is executed, the error message "Could not load db driver class: com.mysql.jdbc.Driver" is displayed, as shown in Figure 1. This indicates that the MySQL driver package is missing.
Procedure
Download the MySQL driver package from the MySQL official website https://downloads.mysql.com/archives/c-j/, decompress the package, upload it to the Client installation directory/Sqoop/sqoop/lib directory, and run the Sqoop command to import or export data.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
