mysql_setpermission
You are viewing an old version of this article. View
the current version here.
mysql_setpermission is a Perl script that was originally written and contributed by Luuk de Boer.
mysql_setpermission can help you add users or databases or change passwords in MariaDB. It does not check permissions which have already been set in MariaDB. So if you can't connect to MariaDB using the permission you just added, take a look at the permissions which have already been set in MariaDB.
The permission setter first reads your .my.cnf file in your Home directory if it exists.
Options for the permission setter:
Options
--help | Display a help message and exit. |
--host=host_name | Connect to the MariaDB server on the given host. |
--password=password | The password to use when connecting to the server. Note that the password value is not optional for this option, unlike for other MariaDB programs Specifying a password on the command line should be considered insecure. You can use an option file to avoid giving the password on the command line. |
--port=port_num | The TCP/IP port number to use for the connection. |
--socket=path | For connections to localhost, the Unix socket file to use. |
--user=user_name | The MariaDB user name to use when connecting to the server. |
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.