Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support for Directadmin #17

Closed
meghuizen opened this Issue · 8 comments

2 participants

@meghuizen

For DirectAdmin you can use the following (on existance of this file: /usr/local/directadmin/conf/mysql.conf):

MYSQLUSER="`. /usr/local/directadmin/conf/mysql.conf; echo $user;`"
MYSQLPASS="`. /usr/local/directadmin/conf/mysql.conf; echo $passwd;`"

mysqladmin ping -u $MYSQLUSER -p$MYSQLPASS
@major major was assigned
@major
Owner

Thanks for that. Could you provide a sanitized copy of that mysql.conf and/or a patch for MySQLTuner?

@meghuizen

The content of that file contains:

user=da_admin
passwd=mypassword

actually it's all that that file contains.

@major
Owner

Thanks, meghuizen. Did you want to submit a patch?

@meghuizen

It takes for me more time to figure out how that works on github, than for you to add that to the code. ;-)

@major
Owner

You're more than welcome to paste the patch here and we can test it out. ;)

@meghuizen

Then I will post the patch.

@meghuizen meghuizen referenced this issue from a commit in meghuizen/MySQLTuner-perl
@meghuizen meghuizen Add DirectAdmin support. Also tested on DirectAdmin v 1.40.3 on Debia…
…n 6 - 64 bits #17
33d97c6
@meghuizen

See pull request. ;-) Also tested it on Directadmin v 1.40.3

@major
Owner

Already merged this in the other PR.

@major major closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.