日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

mysqldb mysql_config

發布時間:2023/10/11 综合教程 109 老码农
生活随笔 收集整理的這篇文章主要介紹了 mysqldb mysql_config 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在安裝mysqldb Python的時候會用到mysql_config,但是正常安裝的MySQL環境下是沒有這個文件的,這個文件在Linux下是可執行文件,所以需要到mysql官方網站上下載MySQL-devel-5.1.50-1.glibc23.i386.rpm,然后用whereis mysql_config命令即可找到mysql_config文件啦

mysql_config在/usr/lib/mysql和/usr/bin下。

找不到mysql_config一般是由于通過lnmp.org或者其他方式安裝mysql以后mysql_config是在/usr/local/mysql/bin/里面,這里面的文件不是在任意位置都可以訪問的

解決方法:

執行

ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config

將mysql_config鏈接到/usr/local/bin目錄下

https://dev.mysql.com/doc/refman/5.7/en/mysql-config.html

mysql_config provides you with useful information for compiling your MySQL client and connecting it to MySQL. It is a shell script, so it is available only on Unix and Unix-like systems.

  • --cflags

    C Compiler flags to find include files and critical compiler flags and defines used when compiling the libmysqlclient library. The options returned are tied to the specific compiler that was used when the library was created and might clash with the settings for your own compiler. Use --include for more portable options that contain only include paths.

  • --cxxflags

    Like --cflags, but for C++ compiler flags.

  • --include

    Compiler options to find MySQL include files.

  • --libs

    Libraries and options required to link with the MySQL client library.

總結

以上是生活随笔為你收集整理的mysqldb mysql_config的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。