
{"id":19150,"date":"2022-08-23T01:00:07","date_gmt":"2022-08-22T19:30:07","guid":{"rendered":"https:\/\/valavil.in\/?p=19150"},"modified":"2022-08-23T01:00:07","modified_gmt":"2022-08-22T19:30:07","slug":"how-to-create-a-new-user-and-grant-permissions-in-mysql-and-also-creating-a-database","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2022\/08\/23\/how-to-create-a-new-user-and-grant-permissions-in-mysql-and-also-creating-a-database\/","title":{"rendered":"How to create a new user  and grant permissions in MySQL and also creating a database ?"},"content":{"rendered":"\n<p> <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql\n[sudo] password for jeffrin: \nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 9\nServer version: 8.0.30-1 (Debian)\n\nCopyright (c) 2000, 2022, Oracle and\/or its affiliates.\n\nOracle is a registered trademark of Oracle Corporation and\/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql&gt; CREATE USER 'jeff'@'localhost' IDENTIFIED WITH authentication_plugin BY 'sixer';\nERROR 1524 (HY000): Plugin 'authentication_plugin' is not loaded\nmysql&gt; CREATE USER 'jeff'@'localhost' IDENTIFIED BY 'sixer';\nQuery OK, 0 rows affected (0.49 sec)\n\nmysql&gt; CREATE DATABASE learning;\nQuery OK, 1 row affected (0.27 sec)\n\nmysql&gt; UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';\nERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('MyNewPass') WHERE User='root'' at line 1\nmysql&gt; UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';\nERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('MyNewPass') WHERE User='root'' at line 1\nmysql&gt; GRANT ALL PRIVILEGES ON *.* TO 'jeff'@'localhost' WITH GRANT OPTION;\nQuery OK, 0 rows affected (0.69 sec)\n\nmysql&gt; FLUSH PRIVILEGES;\nQuery OK, 0 rows affected (0.14 sec)\n\nmysql&gt; <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>sudo mysql [sudo] password for jeffrin: Welcome to the MySQL monitor. Commands end with ; or \\g. Your MySQL connection id is 9 Server version: 8.0.30-1 (Debian) Copyright (c) 2000, 2022, Oracle and\/or its affiliates. Oracle is a registered trademark of Oracle Corporation and\/or its affiliates. Other names may be trademarks of their respective owners. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2022\/08\/23\/how-to-create-a-new-user-and-grant-permissions-in-mysql-and-also-creating-a-database\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to create a new user  and grant permissions in MySQL and also creating a database ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/19150"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=19150"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/19150\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=19150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=19150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=19150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}