VPS侦探论坛

 找回密码
 注册
查看: 4368|回复: 1

[Oracle] 为什么我会有两个my.cnf文件,/etc/my.cnf和/etc/mysql/my.cnf

[复制链接]
发表于 2018-5-16 21:43:04 | 显示全部楼层 |阅读模式

我想问下我两个my.cnf以哪个为准的,

root@jingmian:/usr/local/mysql/bin# dpkg -l|grep mysql
ii  libdbd-mysql-perl                                     4.025-1ubuntu0.1                                    amd64        Perl5 database interface to the MySQL database
ii  libmysqlclient18:amd64                                5.5.60-0ubuntu0.14.04.1                             amd64        MySQL database client library
ii  libmysqlcppconn7                                      1.1.3-5                                             amd64        MySQL Connector for C++ (library)
ii  mysql-client                                          5.5.60-0ubuntu0.14.04.1                             all          MySQL database client (metapackage depending on the latest version)
ii  mysql-client-5.5                                      5.5.60-0ubuntu0.14.04.1                             amd64        MySQL database client binaries
ii  mysql-client-core-5.5                                 5.5.60-0ubuntu0.14.04.1                             amd64        MySQL database core client binaries
ii  mysql-common                                          5.5.60-0ubuntu0.14.04.1                             all          MySQL database common files, e.g. /etc/mysql/my.cnf
ii  mysql-utilities                                       1.3.5-2                                             all          collection of scripts for managing MySQL servers
ii  mysql-workbench                                       6.0.8+dfsg-2                                        amd64        MySQL Workbench - a visual database modeling, administration and queuing tool
rc  mysql-workbench-community                             6.2.5-1ubu1410                                      amd64        MySQL Workbench
ii  mysql-workbench-data                                  6.0.8+dfsg-2                                        all          MySQL Workbench -- architecture independent data
ii  python-mysql.connector                                1.1.6-1                                             all          pure Python implementation of MySQL Client/Server protocol



这个  mysql-common   是哪里给装上去的?,还有前面的ii是什么意思
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-5-17 09:13:57 | 显示全部楼层


dpkg -l列出的包含mysql的包都会影响lnmp中mysql的启动,lnmp的mysql都是 /etc/my.cnf
dpkg -l 列出的包都是你通过apt-get安装上的,不一定是直接安装,通过依赖关系安装上的可能行比较大,apt-get安装时都会提示你依赖关系及会安装哪些包
ii可能是已经安装的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-9 05:37 , Processed in 0.029632 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表