{"id":638,"date":"2010-02-27T17:34:40","date_gmt":"2010-02-27T17:34:40","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=638"},"modified":"2014-06-24T18:55:51","modified_gmt":"2014-06-24T18:55:51","slug":"5-useful-mysql-command-options-pager-prompt-rehash-tee-system","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system","title":{"rendered":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system"},"content":{"rendered":"<p>There are set of commands that MySQL itself interprets. You may use &#8220;help&#8221; or &#8220;\\h&#8221; at the mysql&gt; prompt to list them.<\/p>\n<div id=\"_mcePaste\">Below are the 5 most useful MySQL Command Options.<\/div>\n<h2>1. \\# OR rehash: Enable automatic rehashing.<\/h2>\n<p>Do you have long table names, you find it difficult to remember tablenames or you&#8217;re just as lazy as I am, rehashing is good for you.<br \/>\nEnter:<br \/>\n<em>mysql&gt; \\#<\/em><br \/>\nor<br \/>\n<em>mysql&gt; rehash<\/em><br \/>\nThis enables database, table, and column name completion.<br \/>\nTo complete a name, enter the initial part of name and press Tab. If the name is unambiguous, mysql will complete it for you.<\/p>\n<p>For eg. below will fill information_schema if there is no ambiguity in inform* names:<br \/>\n<em> mysql&gt; use inform<\/em><\/p>\n<p>By default this feature is enabled and you can disable it by option &#8211;disable-auto-rehash.<\/p>\n<h2>2. \\! OR system : Execute system command<\/h2>\n<p>System or \\! will allow you to execute system commands without exiting from mysql prompt.<br \/>\nA very simple example of the use of this command will be of searching a path to sql!!<\/p>\n<p><em>mysql&gt; system locate tobe_loaded.sql<br \/>\n\/path\/to\/tobe_loaded.sql<\/em><\/p>\n<p>And that path you may use to load data:<br \/>\n<em> mysql&gt;source \/path\/to\/tobe_loaded.sql<\/em><\/p>\n<h2>3. \\T OR tee : Log commands and outputs to a (log) file<\/h2>\n<p>\\T filename will log (append) your sql commands and it&#8217;s output to &#8216;filename&#8217; file. This command is usefule while debugging through.<\/p>\n<p>To stop logging you may use notee command.<\/p>\n<p style=\"text-align: center;\">[ad#ad-2-300&#215;250]<\/p>\n<h2>4. \\R OR prompt : Set mysql prompt<\/h2>\n<p>Command prompt [PROMPT-STRING] will set the mysql prompt as per specified string. Using prompt without parameter will set it to default &#8220;mysql&gt;&#8221;.<\/p>\n<p>It comes very handy when you&#8217;re working simultaneously with multiple MySQL prompts with different databases or servers.<\/p>\n<p>For eg:<\/p>\n<p><em>mysql&gt; prompt \\u@\\h [\\d]&gt;<br \/>\nPROMPT set to &#8216;\\u@\\h [\\d]&gt; <\/em>&#8216;<\/p>\n<p>username@hostname [Current-Default-Database]&gt;<\/p>\n<p>Setting prompt from my.cnf: In my.cnf you may specify the default prompt string under [mysql] section.<\/p>\n<p><em>[mysql]<br \/>\nprompt=\\\\u@\\\\h [\\\\d]&gt;<\/em><\/p>\n<p>*Note the escaped slashes(\\).<\/p>\n<p>We do have many other prompt options available.<\/p>\n<ul>\n<li>\\S  &#8211;  semicolon<\/li>\n<li>\\&#8217;  &#8211;  single quote<\/li>\n<li>\\&#8221;  &#8211;  double quote<\/li>\n<li>\\v  &#8211;  server version<\/li>\n<li>\\p  &#8211;  port<\/li>\n<li>\\\\  &#8211;  backslash<\/li>\n<li>\\n  &#8211;  newline<\/li>\n<li>\\t  &#8211;  tab<\/li>\n<li>\\   &#8211;  space (Not a space after \\ )<\/li>\n<li>\\d  &#8211;  default database<\/li>\n<li>\\h  &#8211;  default host<\/li>\n<li>\\_  &#8211;  space<\/li>\n<li>\\c  &#8211;  a mysql statement counter. keeps increasing as you type commands.<\/li>\n<li>\\u  &#8211;  username<\/li>\n<li>\\U  &#8211;  username@hostname accountname<\/li>\n<\/ul>\n<p>For Date time related settings:<\/p>\n<ul>\n<li>\\D  &#8211;  full current date (as shown in the above example)<\/li>\n<li>\\w  &#8211;  3 letter day of the week (e.g. Mon)<\/li>\n<li>\\y  &#8211;  the two digit year<\/li>\n<li>\\Y  &#8211;  the four digit year<\/li>\n<li>\\o  &#8211;  month in number<\/li>\n<li>\\O  &#8211;  3 letter month (e.g. Jan)<\/li>\n<li>\\R  &#8211;  current time in 24 HR format<\/li>\n<li>\\r  &#8211;  current time in 12 hour format<\/li>\n<li>\\m  &#8211;  the minutes<\/li>\n<li>\\s  &#8211;  the seconds<\/li>\n<li>\\P  &#8211;  AM or PM<\/li>\n<\/ul>\n<p>I wish MySQL&#8217;d have provided short-date format in prompts.<\/p>\n<h2>5.  Pager : Uses the specified command for paging query output.<\/h2>\n<p>Pager command will handle the query output paging as per specified command.<br \/>\n<em> mysql&gt;pager cat &gt; \/path\/to\/file.log <\/em><\/p>\n<p>Will output every query output to \/path\/to\/file.log<\/p>\n<p>If you&#8217;re expecting a long query result you may use more \/ less linux command as a pager which will help reading.<br \/>\nmysql&gt;pager less<br \/>\nThis will allow to scroll up \/ down with your MySQL query result just like the less command.<\/p>\n<p>If you have large number of columns and have readability problems you may use:<br \/>\n<em> mysql&gt;pager less -S<\/em><\/p>\n<p><em>OR<\/em><\/p>\n<p><em>mysql&gt;pager less -S -X<\/em><\/p>\n<p>This will allow you to scroll query result horizontally using the left-arrow and right-arrow keys.<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>You can also search through the result set with \/search-term in result set.<br \/>\nPager will work only in Linux\/Unix systems.<\/p>\n","protected":false},"excerpt":{"rendered":"There are set of commands that MySQL itself interprets. You may use &#8220;help&#8221; or &#8220;\\h&#8221; at the mysql&gt; prompt to list them. Below are the 5 most useful MySQL Command&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[26,427,240,239],"class_list":["post-638","post","type-post","status-publish","format-standard","category-mysql","category-mysql-articles","tag-command-options","tag-mysql","tag-mysql-command-options","tag-mysql-commandline"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"There are set of commands that MySQL itself interprets. You may use &quot;help&quot; or &quot;\\h&quot; at the mysql&gt; prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you&#039;re just as\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"command options,mysql,mysql command options,mysql commandline\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"There are set of commands that MySQL itself interprets. You may use &quot;help&quot; or &quot;\\h&quot; at the mysql&gt; prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you&#039;re just as\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-02-27T17:34:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-06-24T18:55:51+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"There are set of commands that MySQL itself interprets. You may use &quot;help&quot; or &quot;\\h&quot; at the mysql&gt; prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you&#039;re just as\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#article\",\"name\":\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable\",\"headline\":\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2010-02-27T17:34:40+00:00\",\"dateModified\":\"2014-06-24T18:55:51+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#webpage\"},\"articleSection\":\"MySQL, MySQL-Articles, command options, MySQL, mysql command options, MySQL Commandline\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"position\":3,\"name\":\"MySQL-Articles\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#listItem\",\"name\":\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#listItem\",\"position\":4,\"name\":\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system\",\"name\":\"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable\",\"description\":\"There are set of commands that MySQL itself interprets. You may use \\\"help\\\" or \\\"\\\\h\\\" at the mysql> prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\\\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you're just as\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2010-02-27T17:34:40+00:00\",\"dateModified\":\"2014-06-24T18:55:51+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable","description":"There are set of commands that MySQL itself interprets. You may use \"help\" or \"\\h\" at the mysql> prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you're just as","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system","robots":"max-image-preview:large","keywords":"command options,mysql,mysql command options,mysql commandline","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#article","name":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable","headline":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2010-02-27T17:34:40+00:00","dateModified":"2014-06-24T18:55:51+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#webpage"},"articleSection":"MySQL, MySQL-Articles, command options, MySQL, mysql command options, MySQL Commandline"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","position":3,"name":"MySQL-Articles","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#listItem","name":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#listItem","position":4,"name":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system","name":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable","description":"There are set of commands that MySQL itself interprets. You may use \"help\" or \"\\h\" at the mysql> prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you're just as","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2010-02-27T17:34:40+00:00","dateModified":"2014-06-24T18:55:51+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable","og:description":"There are set of commands that MySQL itself interprets. You may use &quot;help&quot; or &quot;\\h&quot; at the mysql&gt; prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you're just as","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system","article:published_time":"2010-02-27T17:34:40+00:00","article:modified_time":"2014-06-24T18:55:51+00:00","twitter:card":"summary","twitter:title":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system | Change Is Inevitable","twitter:description":"There are set of commands that MySQL itself interprets. You may use &quot;help&quot; or &quot;\\h&quot; at the mysql&gt; prompt to list them. Below are the 5 most useful MySQL Command Options. 1. \\# OR rehash: Enable automatic rehashing. Do you have long table names, you find it difficult to remember tablenames or you're just as"},"aioseo_meta_data":{"post_id":"638","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:44:27","updated":"2025-08-16 19:04:27","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles\" title=\"MySQL-Articles\">MySQL-Articles<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t5 useful MySQL Command Options-pager-prompt-rehash-tee-system\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Articles","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles"},{"label":"5 useful MySQL Command Options-pager-prompt-rehash-tee-system","link":"https:\/\/kedar.nitty-witty.com\/blog\/5-useful-mysql-command-options-pager-prompt-rehash-tee-system"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=638"}],"version-history":[{"count":1,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/638\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}