Just a small annoyance, but when I want to use mysql from the command line within my Vagrant box, I always have to add the username and password. Here's a patch that will add a simply .my.cnf to the user's profile so that they never have to manually enter that information.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bobojo’s picture

FileSize
489 bytes
bobojo’s picture

Status: Active » Needs review
bobojo’s picture

FileSize
847 bytes

Whoops! My last patch was missing a crucial piece. Here's the updated patch.

  • ericrdb committed bc3b195 on 8.x-1.x authored by bobojo
    Issue #2456605 by bobojo: Add default .my.cnf
    
ericrdb’s picture

Status: Needs review » Fixed

Nice touch - thanks for sharing!

Confirmed that it applies cleanly and enables command line access to mysql without a password.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.