{"id":3477,"date":"2020-02-14T03:41:37","date_gmt":"2020-02-14T03:41:37","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=3477"},"modified":"2024-10-19T10:32:43","modified_gmt":"2024-10-19T10:32:43","slug":"first-login-into-mariadb","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=3477","title":{"rendered":"First login into MariaDB"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Logging into MariaDB for first time<\/h2>\n\n\n\n<p>You&#8217;ll be able to access the MariaDB console only if you have completed these steps<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a aria-label=\"Installing MariaDB (opens in a new tab)\" href=\"\/installing-mysql\/\" target=\"_blank\" rel=\"noreferrer noopener\">Installing MariaDB<\/a><\/li>\n\n\n\n<li><a aria-label=\"Securing MariaDB (opens in a new tab)\" href=\"\/mysql-mariadb-secure-installation\/\" target=\"_blank\" rel=\"noreferrer noopener\">Securing MariaDB<\/a> (initializing)<\/li>\n<\/ul>\n\n\n\n<p>Once the above tasks are completed you can use the following CLI command to login into MariaDB.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"vim\" class=\"language-vim\">mysql -u root -p<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDB-MySQL-first-login.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"383\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDB-MySQL-first-login.jpg\" alt=\"\" class=\"wp-image-3480\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDB-MySQL-first-login.jpg 732w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDB-MySQL-first-login-300x157.jpg 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/a><figcaption class=\"wp-element-caption\">Accessing MariaDB console<\/figcaption><\/figure>\n<\/div>\n\n\n<p>You probably remember the first task completed when you was following the <a href=\"\/mysql-mariadb-secure-installation\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"mysql secure installation  (opens in a new tab)\">mysql secure installation <\/a>script was the creation of a password for the &#8220;root&#8221; account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MariaDB Help<\/h2>\n\n\n\n<p>Fortunately the MariaDB&#8217;s welcome message tell us how to ask for Help, at the end of the day we&#8217;re new users and we&#8217;re going to need guidance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"520\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDBMySQL-first_login_01_help.jpg\" alt=\"\" class=\"wp-image-3489\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDBMySQL-first_login_01_help.jpg 914w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDBMySQL-first_login_01_help-300x171.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDBMySQL-first_login_01_help-768x437.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">MariaDB Help<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">MariaDB Help log<\/h2>\n\n\n\n<p>In case you need the complete list produced by the &#8220;\\h&#8221; help command, see below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"rest\" class=\"language-rest\">General information about MariaDB can be found at\n<blockquote class=\"wp-embedded-content\" data-secret=\"NSVXRGr33H\"><a href=\"https:\/\/mariadb.org\/\">MariaDB Foundation<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;MariaDB Foundation&#8221; &#8212; MariaDB.org\" src=\"https:\/\/mariadb.org\/embed\/#?secret=dSVeDy1eQp#?secret=NSVXRGr33H\" data-secret=\"NSVXRGr33H\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n\nList of all MySQL commands:\nNote that all text commands must be first on line and end with ';'\n?         (\\?) Synonym for `help'.\nclear     (\\c) Clear the current input statement.\nconnect   (\\r) Reconnect to the server. Optional arguments are db and host.\ndelimiter (\\d) Set statement delimiter.\nedit      (\\e) Edit command with $EDITOR.\nego       (\\G) Send command to mysql server, display result vertically.\nexit      (\\q) Exit mysql. Same as quit.\ngo        (\\g) Send command to mysql server.\nhelp      (\\h) Display this help.\nnopager   (\\n) Disable pager, print to stdout.\nnotee     (\\t) Don't write into outfile.\npager     (\\P) Set PAGER [to_pager]. Print the query results via PAGER.\nprint     (\\p) Print current command.\nprompt    (\\R) Change your mysql prompt.\nquit      (\\q) Quit mysql.\nrehash    (\\#) Rebuild completion hash.\nsource    (\\.) Execute an SQL script file. Takes a file name as an argument.\nstatus    (\\s) Get status information from the server.\nsystem    (\\!) Execute a system shell command.\ntee       (\\T) Set outfile [to_outfile]. Append everything into given outfile.\nuse       (\\u) Use another database. Takes database name as argument.\ncharset   (\\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.\nwarnings  (\\W) Show warnings after every statement.\nnowarning (\\w) Don't show warnings after every statement.\n\nFor server side help, type 'help contents'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Quit MariaDB console<\/h2>\n\n\n\n<p>The &#8220;\\q&#8221; command allows you to quit MariaDB console, pay attention to the little &#8220;Bye&#8221;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDBMySQL-first_login_02_quit.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"271\" height=\"152\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/MariaDBMySQL-first_login_02_quit.jpg\" alt=\"\" class=\"wp-image-3493\"\/><\/a><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Where to go next?<\/h2>\n\n\n\n<p>You are more than ready to start playing around with your new toy &#8220;MariaDB&#8221;, the following article will guide you on doing your first steps.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=18\">Familiarizing with MariaDB console<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Logging into MariaDB for first time You&#8217;ll be able to access the MariaDB console only if you have completed these steps Once the above tasks are completed you can use the following CLI command to login into MariaDB. You probably remember the first task completed when you was following the mysql secure installation script was &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=3477\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;First login into MariaDB&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3477","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/3477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3477"}],"version-history":[{"count":13,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/3477\/revisions"}],"predecessor-version":[{"id":5791,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/3477\/revisions\/5791"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}