/go/phpmyadmin: phpmyadmin from the Command Line

/go/phpmyadmin does two unrelated things, chosen by how you call it: The command re-runs itself with sudo when started by a non-root user. The call is appended to /var/log/go/phpmyadmin.log. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Install phpMyAdmin (default version)
/go/phpmyadmin

# Grant one domain's MySQL user access to its databases
/go/phpmyadmin example.com

# Grant every hosted domain
/go/phpmyadmin all

Options

Argument Notes
<version> A phpMyAdmin release number matching a tarball at files.phpmyadmin.net. Only takes effect together with --install.
--install Forces install mode, whatever else is on the command line.
<domain> A hosted domain, to grant privileges for.
all Grants privileges for every hosted domain, one after another.

Examples

# Install the default version
/go/phpmyadmin

# Install a specific version
/go/phpmyadmin 5.2.4 --install

# Grant one domain
/go/phpmyadmin example.com

# Grant every domain
/go/phpmyadmin all

Output

Install mode shows a progress indicator ("Installing phpMyAdmin <version>") followed by curl/tar/mariadb output. Privilege-granting mode prints nothing on success.

See the full reference at /go/phpmyadmin and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *