Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Directadmin #17

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

Support for Directadmin #17

meghuizen opened this issue Apr 26, 2012 · 8 comments
Assignees

Comments

@meghuizen
Copy link
Contributor

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
@ghost ghost assigned major Apr 26, 2012
@major
Copy link
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?

@meghuizen
Copy link
Contributor Author

The content of that file contains:

user=da_admin
passwd=mypassword

actually it's all that that file contains.

@major
Copy link
Owner

major commented Apr 26, 2012

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

@meghuizen
Copy link
Contributor Author

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

@major
Copy link
Owner

major commented Apr 26, 2012

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

@meghuizen
Copy link
Contributor Author

Then I will post the patch.

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

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

@major
Copy link
Owner

major commented Feb 22, 2014

Already merged this in the other PR.

@major major closed this as completed Feb 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants