title: Mysql ERROR : not connected
body: <p>I am trying to connect to MySQL database from MySQL shell on windows. </p>
  
  <p>No matter what I type in MySQL shell, it keeps giving me error : 'Not connected'. </p>
  
  <p>Query eg 1 : <code>mysql --host=localhost --port=3306 --user=root -p;</code></p>
  
  <p>Query eg 2 : <code>mysql -u root -p</code></p>
  
  <p>O/P : <code>ERROR: Not connected</code></p>
  
  <p>I have MySQL server installed on my machine. Also MySQL service is running in the background.</p>
  
  <p>Also, I was able to connect from MySQL workbench. </p>
  
  <p><a href="https://i.stack.imgur.com/X6sKc.png" rel="noreferrer">ERROR MESSAGE</a></p>
  
  <p><a href="https://i.stack.imgur.com/wo2rA.png" rel="noreferrer">MySQL Workbench Connection</a></p>