Support for Directadmin #17

Closed
meghuizen opened this Issue Apr 26, 2012 · 8 comments

Comments

Projects
None yet
2 participants
Contributor

meghuizen commented Apr 26, 2012

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 was assigned Apr 26, 2012

Owner

major commented Apr 26, 2012

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

Contributor

meghuizen commented Apr 26, 2012

The content of that file contains:

user=da_admin
passwd=mypassword

actually it's all that that file contains.

Owner

major commented Apr 26, 2012

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

Contributor

meghuizen commented Apr 26, 2012

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

Owner

major commented Apr 26, 2012

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

Contributor

meghuizen commented Apr 26, 2012

Then I will post the patch.

@meghuizen meghuizen added a commit to meghuizen/MySQLTuner-perl that referenced this issue Apr 26, 2012

@meghuizen meghuizen Add DirectAdmin support. Also tested on DirectAdmin v 1.40.3 on Debia…
…n 6 - 64 bits #17
33d97c6
Contributor

meghuizen commented Apr 26, 2012

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

Owner

major commented Feb 22, 2014

Already merged this in the other PR.

major closed this Feb 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment