title: Writing many MySQL (in vsCode) queries in one file. How to avoid writting 'USE DBaseName" constantly?
body: <p>I'm learning SQL / MySQL using WAMPSERVER and the MySql extension for vsCode, so that I can write, comment and keep the code in the vsCode editor, instead of sending volatile queries with the command line. 
  This morning I created a database by right-clicking a database / New Query:
  <a href="https://i.stack.imgur.com/xEUOQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xEUOQ.png" alt="enter image description here"></a></p>
  
  <p>After creating it this way, I was able to create code that I run without having to write <code>USE DBaseName</code> before the selected lines, as in the selected three lines you can see below:
  <a href="https://i.stack.imgur.com/hpDom.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hpDom.png" alt="enter image description here"></a></p>
  
  <p>Yet, after restarting my laptop at home, the same code will not run. It returns the usual</p>
  
  <pre><code>undefined
  Error: ER_NO_DB_ERROR: No database selected
  </code></pre>
  
  <p>unless I write the <code>USE</code> statement, as in the last group (4 lines) of code. So I have to write that every time I want to try a query... </p>
  
  <p>Why did it work this morning and not now? How can one run queries without having to constantly write <code>USE DBaseName</code>? </p>
  
  <p>(links to explanations to further understand the underlying mechanism are also very welcome...)</p>
  
  <p>EDIT: posting image of server in vsCode to answer comment: 
  I'm using a local server (pic below) which hasn't changed since this morning...</p>
  
  <p><a href="https://i.stack.imgur.com/dUy0B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dUy0B.png" alt="enter image description here"></a></p>