DESCRIPTION:
Run <sudo mysql> command from terminal. It will ask password to enter from user. By using following procedure you no need to type password still it will run as root.
PROCEDURE:
- Enter <sudo visudo> terminal. It will open a file with your default editor
- Add following lines to the file which opened by previous command which you entered
<username> ALL=NOPASSWD: <path_to_application>
ex: sujin ALL=NOPASSWD: /usr/bin/mysql
- Save the file
- Now run <sudo mysql> from terminal. It will not ask password to enter.
- Enjoy!!
No comments:
Post a Comment