MYSQL目录位置

发布于 2022-09-23 13:37:53 字数 306 浏览 14 评论 0

我安装了MYSQL,但是我找不到目录,我想找到mysql_config 等文件 还有MYSQL提供的include 和lib文件夹,但是怎么找也没有在找。请问它默认在那个位置。
这是我安装的的过程
在root下

#rpm -ivh MySQL-server-community-5.0.51a-0.rhel5.i386.rpm

#rpm -ivh MySQL-client-community-5.0.51a.0.rhel5.i386.rpm

我的版本是 Red Hat Enterprise 5

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

蔚蓝源自深海 2022-09-30 13:37:53

rpm查看一下都装到什么地方了

猫瑾少女 2022-09-30 13:37:53

/var/lib/mysql 數據目錄在這

夜清冷一曲。 2022-09-30 13:37:53

怎么使用啊? 不明白能把命令行发下吗?

时间你老了 2022-09-30 13:37:53

里面没有我要要的,my.cnf.还有include lib等文件夹!

心凉 2022-09-30 13:37:53
  1. ldconfig -v | grep mysql

复制代码
看一下lib安装在哪里了
然后

  1. find /usr -name mysql.h

复制代码
找h文件路径。
这是最笨的,一般都有默认路径,自己搜索下网上的帖子吧

洋洋洒洒 2022-09-30 13:37:53

原帖由 flaght 于 2008-12-25 15:54 发表
里面没有我要要的,my.cnf.还有include lib等文件夹!

  1. rpm -ql mysql
  2. /etc/ld.so.conf.d/mysql-x86_64.conf
  3. /etc/my.cnf
  4. /usr/bin/msql2mysql
  5. /usr/bin/my_print_defaults
  6. /usr/bin/mysql
  7. /usr/bin/mysql_config
  8. /usr/bin/mysql_find_rows
  9. /usr/bin/mysql_tableinfo
  10. /usr/bin/mysql_waitpid
  11. /usr/bin/mysqlaccess
  12. /usr/bin/mysqladmin
  13. /usr/bin/mysqlbinlog
  14. /usr/bin/mysqlcheck
  15. /usr/bin/mysqldump
  16. /usr/bin/mysqlimport
  17. /usr/bin/mysqlshow
  18. /usr/lib64/mysql
  19. /usr/lib64/mysql/libmysqlclient.so.15
  20. /usr/lib64/mysql/libmysqlclient.so.15.0.0
  21. /usr/lib64/mysql/libmysqlclient_r.so.15
  22. /usr/lib64/mysql/libmysqlclient_r.so.15.0.0
  23. /usr/lib64/mysql/mysql_config
  24. /usr/lib64/mysql/mysqlbug
  25. /usr/share/doc/mysql-5.0.45
  26. /usr/share/doc/mysql-5.0.45/COPYING
  27. /usr/share/doc/mysql-5.0.45/EXCEPTIONS-CLIENT
  28. /usr/share/doc/mysql-5.0.45/README
  29. /usr/share/info/mysql.info.gz
  30. /usr/share/man/man1/my_print_defaults.1.gz
  31. /usr/share/man/man1/mysql.1.gz
  32. /usr/share/man/man1/mysql_config.1.gz
  33. /usr/share/man/man1/mysql_find_rows.1.gz
  34. /usr/share/man/man1/mysql_tableinfo.1.gz
  35. /usr/share/man/man1/mysql_waitpid.1.gz
  36. /usr/share/man/man1/mysqlaccess.1.gz
  37. /usr/share/man/man1/mysqladmin.1.gz
  38. /usr/share/man/man1/mysqldump.1.gz
  39. /usr/share/man/man1/mysqlshow.1.gz
  40. /usr/share/mysql
  41. /usr/share/mysql/charsets
  42. /usr/share/mysql/charsets/Index.xml
  43. /usr/share/mysql/charsets/README
  44. /usr/share/mysql/charsets/armscii8.xml
  45. /usr/share/mysql/charsets/ascii.xml
  46. /usr/share/mysql/charsets/cp1250.xml
  47. /usr/share/mysql/charsets/cp1251.xml
  48. /usr/share/mysql/charsets/cp1256.xml
  49. /usr/share/mysql/charsets/cp1257.xml
  50. /usr/share/mysql/charsets/cp850.xml
  51. /usr/share/mysql/charsets/cp852.xml
  52. /usr/share/mysql/charsets/cp866.xml
  53. /usr/share/mysql/charsets/dec8.xml
  54. /usr/share/mysql/charsets/geostd8.xml
  55. /usr/share/mysql/charsets/greek.xml
  56. /usr/share/mysql/charsets/hebrew.xml
  57. /usr/share/mysql/charsets/hp8.xml
  58. /usr/share/mysql/charsets/keybcs2.xml
  59. /usr/share/mysql/charsets/koi8r.xml
  60. /usr/share/mysql/charsets/koi8u.xml
  61. /usr/share/mysql/charsets/latin1.xml
  62. /usr/share/mysql/charsets/latin2.xml
  63. /usr/share/mysql/charsets/latin5.xml
  64. /usr/share/mysql/charsets/latin7.xml
  65. /usr/share/mysql/charsets/macce.xml
  66. /usr/share/mysql/charsets/macroman.xml
  67. /usr/share/mysql/charsets/swe7.xml
  68. /usr/share/mysql/czech
  69. /usr/share/mysql/czech/errmsg.sys
  70. /usr/share/mysql/danish
  71. /usr/share/mysql/danish/errmsg.sys
  72. /usr/share/mysql/dutch
  73. /usr/share/mysql/dutch/errmsg.sys
  74. /usr/share/mysql/english
  75. /usr/share/mysql/english/errmsg.sys
  76. /usr/share/mysql/estonian
  77. /usr/share/mysql/estonian/errmsg.sys
  78. /usr/share/mysql/french
  79. /usr/share/mysql/french/errmsg.sys
  80. /usr/share/mysql/german
  81. /usr/share/mysql/german/errmsg.sys
  82. /usr/share/mysql/greek
  83. /usr/share/mysql/greek/errmsg.sys
  84. /usr/share/mysql/hungarian
  85. /usr/share/mysql/hungarian/errmsg.sys
  86. /usr/share/mysql/italian
  87. /usr/share/mysql/italian/errmsg.sys
  88. /usr/share/mysql/japanese
  89. /usr/share/mysql/japanese/errmsg.sys
  90. /usr/share/mysql/korean
  91. /usr/share/mysql/korean/errmsg.sys
  92. /usr/share/mysql/norwegian
  93. /usr/share/mysql/norwegian-ny
  94. /usr/share/mysql/norwegian-ny/errmsg.sys
  95. /usr/share/mysql/norwegian/errmsg.sys
  96. /usr/share/mysql/polish
  97. /usr/share/mysql/polish/errmsg.sys
  98. /usr/share/mysql/portuguese
  99. /usr/share/mysql/portuguese/errmsg.sys
  100. /usr/share/mysql/romanian
  101. /usr/share/mysql/romanian/errmsg.sys
  102. /usr/share/mysql/russian
  103. /usr/share/mysql/russian/errmsg.sys
  104. /usr/share/mysql/serbian
  105. /usr/share/mysql/serbian/errmsg.sys
  106. /usr/share/mysql/slovak
  107. /usr/share/mysql/slovak/errmsg.sys
  108. /usr/share/mysql/spanish
  109. /usr/share/mysql/spanish/errmsg.sys
  110. /usr/share/mysql/swedish
  111. /usr/share/mysql/swedish/errmsg.sys
  112. /usr/share/mysql/ukrainian
  113. /usr/share/mysql/ukrainian/errmsg.sys
  114. /etc/ld.so.conf.d/mysql-i386.conf
  115. /etc/my.cnf
  116. /usr/bin/msql2mysql
  117. /usr/bin/my_print_defaults
  118. /usr/bin/mysql
  119. /usr/bin/mysql_config
  120. /usr/bin/mysql_find_rows
  121. /usr/bin/mysql_tableinfo
  122. /usr/bin/mysql_waitpid
  123. /usr/bin/mysqlaccess
  124. /usr/bin/mysqladmin
  125. /usr/bin/mysqlbinlog
  126. /usr/bin/mysqlcheck
  127. /usr/bin/mysqldump
  128. /usr/bin/mysqlimport
  129. /usr/bin/mysqlshow
  130. /usr/lib/mysql
  131. /usr/lib/mysql/libmysqlclient.so.15
  132. /usr/lib/mysql/libmysqlclient.so.15.0.0
  133. /usr/lib/mysql/libmysqlclient_r.so.15
  134. /usr/lib/mysql/libmysqlclient_r.so.15.0.0
  135. /usr/lib/mysql/mysql_config
  136. /usr/lib/mysql/mysqlbug
  137. /usr/share/doc/mysql-5.0.45
  138. /usr/share/doc/mysql-5.0.45/COPYING
  139. /usr/share/doc/mysql-5.0.45/EXCEPTIONS-CLIENT
  140. /usr/share/doc/mysql-5.0.45/README
  141. /usr/share/info/mysql.info.gz
  142. /usr/share/man/man1/my_print_defaults.1.gz
  143. /usr/share/man/man1/mysql.1.gz
  144. /usr/share/man/man1/mysql_config.1.gz
  145. /usr/share/man/man1/mysql_find_rows.1.gz
  146. /usr/share/man/man1/mysql_tableinfo.1.gz
  147. /usr/share/man/man1/mysql_waitpid.1.gz
  148. /usr/share/man/man1/mysqlaccess.1.gz
  149. /usr/share/man/man1/mysqladmin.1.gz
  150. /usr/share/man/man1/mysqldump.1.gz
  151. /usr/share/man/man1/mysqlshow.1.gz
  152. /usr/share/mysql
  153. /usr/share/mysql/charsets
  154. /usr/share/mysql/charsets/Index.xml
  155. /usr/share/mysql/charsets/README
  156. /usr/share/mysql/charsets/armscii8.xml
  157. /usr/share/mysql/charsets/ascii.xml
  158. /usr/share/mysql/charsets/cp1250.xml
  159. /usr/share/mysql/charsets/cp1251.xml
  160. /usr/share/mysql/charsets/cp1256.xml
  161. /usr/share/mysql/charsets/cp1257.xml
  162. /usr/share/mysql/charsets/cp850.xml
  163. /usr/share/mysql/charsets/cp852.xml
  164. /usr/share/mysql/charsets/cp866.xml
  165. /usr/share/mysql/charsets/dec8.xml
  166. /usr/share/mysql/charsets/geostd8.xml
  167. /usr/share/mysql/charsets/greek.xml
  168. /usr/share/mysql/charsets/hebrew.xml
  169. /usr/share/mysql/charsets/hp8.xml
  170. /usr/share/mysql/charsets/keybcs2.xml
  171. /usr/share/mysql/charsets/koi8r.xml
  172. /usr/share/mysql/charsets/koi8u.xml
  173. /usr/share/mysql/charsets/latin1.xml
  174. /usr/share/mysql/charsets/latin2.xml
  175. /usr/share/mysql/charsets/latin5.xml
  176. /usr/share/mysql/charsets/latin7.xml
  177. /usr/share/mysql/charsets/macce.xml
  178. /usr/share/mysql/charsets/macroman.xml
  179. /usr/share/mysql/charsets/swe7.xml
  180. /usr/share/mysql/czech
  181. /usr/share/mysql/czech/errmsg.sys
  182. /usr/share/mysql/danish
  183. /usr/share/mysql/danish/errmsg.sys
  184. /usr/share/mysql/dutch
  185. /usr/share/mysql/dutch/errmsg.sys
  186. /usr/share/mysql/english
  187. /usr/share/mysql/english/errmsg.sys
  188. /usr/share/mysql/estonian
  189. /usr/share/mysql/estonian/errmsg.sys
  190. /usr/share/mysql/french
  191. /usr/share/mysql/french/errmsg.sys
  192. /usr/share/mysql/german
  193. /usr/share/mysql/german/errmsg.sys
  194. /usr/share/mysql/greek
  195. /usr/share/mysql/greek/errmsg.sys
  196. /usr/share/mysql/hungarian
  197. /usr/share/mysql/hungarian/errmsg.sys
  198. /usr/share/mysql/italian
  199. /usr/share/mysql/italian/errmsg.sys
  200. /usr/share/mysql/japanese
  201. /usr/share/mysql/japanese/errmsg.sys
  202. /usr/share/mysql/korean
  203. /usr/share/mysql/korean/errmsg.sys
  204. /usr/share/mysql/norwegian
  205. /usr/share/mysql/norwegian-ny
  206. /usr/share/mysql/norwegian-ny/errmsg.sys
  207. /usr/share/mysql/norwegian/errmsg.sys
  208. /usr/share/mysql/polish
  209. /usr/share/mysql/polish/errmsg.sys
  210. /usr/share/mysql/portuguese
  211. /usr/share/mysql/portuguese/errmsg.sys
  212. /usr/share/mysql/romanian
  213. /usr/share/mysql/romanian/errmsg.sys
  214. /usr/share/mysql/russian
  215. /usr/share/mysql/russian/errmsg.sys
  216. /usr/share/mysql/serbian
  217. /usr/share/mysql/serbian/errmsg.sys
  218. /usr/share/mysql/slovak
  219. /usr/share/mysql/slovak/errmsg.sys
  220. /usr/share/mysql/spanish
  221. /usr/share/mysql/spanish/errmsg.sys
  222. /usr/share/mysql/swedish
  223. /usr/share/mysql/swedish/errmsg.sys
  224. /usr/share/mysql/ukrainian
  225. /usr/share/mysql/ukrainian/errmsg.sys

复制代码
[ 本帖最后由 luo118 于 2008-12-25 21:30 编辑 ]

土豪我们做朋友吧 2022-09-30 13:37:53

楼上正解,rpm -ql mysql

战皆罪 2022-09-30 13:37:53

rpm -qa|grep mysql|xargs rpm -ql|grep lib
rpm -qa|grep mysql|xargs rpm -ql|grep include

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文