[Bug 235654] databases/mariadb103-client installed mytop does not work with ~/.my.cnf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 10 21:09:35 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235654

            Bug ID: 235654
           Summary: databases/mariadb103-client installed mytop does not
                    work with ~/.my.cnf
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: brnrd at freebsd.org
          Reporter: 000.fbsd at quip.cz
             Flags: maintainer-feedback?(brnrd at freebsd.org)
          Assignee: brnrd at freebsd.org

Previously the "mytop" was standalone port. I upgraded MariaDB 10.1 to 10.3
which is conflicting with installed "mytop". Original "mytop" was removed and
"mytop" from mariadb103-client package does not work if user has ~/my.cnf with
stored password for different user (login) than should be used with "mytop".

"mytop" should read its options from ~/.mytop file where I have all the options
specified

user=mytop
pass=SomeStrongPasswordHere
host=localhost
db=mysql
delay=3
port=3306
socket=/tmp/mysql.sock
batchmode=0
header=1
color=1
idle=1
resolve=1

But when I run "mytop" I got these error:

Cannot connect to MariaDB server. Please check the:

  * database you specified "mysql" (default is "test")
  * username you specified "mytop" (default is "root")
  * password you specified "AnotherPassword" (default is "")
  * hostname you specified "localhost" (default is "localhost")
  * port you specified "3306" (default is 3306)
  * socket you specified "/tmp/mysql.sock" (default is "")

The options my be specified on the command-line or in a ~/.mytop
config file. See the manual (perldoc mytop) for details.

Here's the exact error from DBI. It might help you debug:'

Access denied for user 'mytop'@'localhost' (using password: YES)


Where "AnotherPassword" is the password read from ~/.my.cnf which is password
for my currently logged user and not password for user "mytop" under which
"mytop" should run.

It worked for me for the last 10+ years with standalone "mytop" but does not
work anymore.

The next problem is that "mytop" has dependencies on some Perl libraries but
they are not specified in the mariadb103-client package. (all are installed in
my case)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list