In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you can not find the mysql.h solution, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
Cannot find the solution of mysql.h: 1, enter "libmysqlclient-dev" to install directly in the software center; 2, type "sudo apt-get install libmysqlclient-dev" under the command line to install.
This article operating environment: ubuntu16.04 system, libmysqlclient-dev version, Dell G3 computer.
Linux cannot find mysql.h (cannot connect to mysql.h):
Write a C language program connect1.c to establish a connection with the MySQL database, and type: gcc connect1.c-o connect1.exe-I/usr/include/mysql-L/usr/lib/mysql-lmysqlclient on the command line
The mysql.h cannot be found, as shown below (figure 1):
The reason is that when installing MySQL, only the server of MySQL and the client of MySQL are installed, not MySQL database development files.
Solution:
1. Graphical interface operation: enter MySQL database development files or libmysqlclient-dev directly in the software center and click install. (figure 2)
two。 Under the command line: enter sudo apt-get install libmysqlclient-dev, enter the password (shown in figure 3), enter whereis mysql.h after the installation is completed, / usr/include/mysql appears, indicating that mysql.h can be used.
The above is all the content of the article "can't find the solution to mysql.h". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.