File Mysql. H Can't Be Found

I have installed MySQL in Ubuntu 14.04 but I can't find the mysql.h file in any directory. I don't mean that the compiler can't find it, as mentioned in countless other questions, here but I can't find the actual file. Why is that? Where can I find it?

8

2 Answers

If you can't find mysql.h then it probably isn't anywhere in your filesystem unless you have one of these three packages installed which provides mysql.h:

  • libmariadbclient-dev - /usr/include/mysql/mysql.h
  • libmysqlclient-dev - /usr/include/mysql/mysql.h
  • pike7.8-mysql - /usr/lib/pike7.8/7.4/include/mysql.h
2

try $ find /usr/ -name 'mysql.h' or perhaps it is present at /usr/include/mysql/mysql.h. (Iam not sure)

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest