title: Cannot connect to MySQL Server database at localhost:3306
body: <p>When I first set up MySQL Server in Netbeans everything worked well. Now one day I think I accidentally clicked something or my computer lost battery life when I was connected to MySQL Server, and after these event(s) I have not been able to connect to MySQL Server. I do not know for sure if either of the above events would have any effect on connecting to a MySQL Server database.</p>
  
  <p>Anyway since these events I have found that I cannot "start" or "connect" to a MySQL Server databse. I am doing this all through Netbeans IDE. 
  Here is a picture of how I try to connect to my databaseL:
  <img src="https://i.stack.imgur.com/pKIa1.png" alt="enter image description here"></p>
  
  <p>This is what the error message says after I click connect:</p>
  
  <p>Unable to connect. Cannot establish a connection to jdbc:mysql://localhost:3306/twitterdata using com.mysql.jdbc.Driver(Unknown database 'twitterdata'). The name of the database I am trying to connect to is twitterdata</p>
  
  <ol>
  <li>How can I get reconnected to the MySQL Server database "twitterdata"?</li>
  <li>I am not familiar with MySQL, databases, servers and I have no idea how to get reconnected. If there is any other helpful information that I should provide let me know.</li>
  <li>What MySQL tools can I run to find my problem? </li>
  <li>Why would the error message tell me that the database is unknown?</li>
  </ol>
  
  <p>If I got to C:\ProgramData\MySQL\MySQL Server 5.5\data. There is a folder named twitterdata.<img src="https://i.stack.imgur.com/9Srn1.png" alt="enter image description here"></p>
  
  <p>Here are the contents of that directory:<img src="https://i.stack.imgur.com/npUWh.png" alt="enter image description here"></p>
  
  <ol>
  <li>Please let me know if you need more information or if you have other suggestions that would help!</li>
  </ol>
  
  <p>Thanks for all the help!</p>