Password to get into MySQL Server 5.6

Posted on 2013-05-11
Last Modified: 2013-06-28
Hi! I've installed MySQL on my computer.  I'm new to using it but I am accessing it via MySQL workbench 5.2 and attempting to establish a database connection.  It is asking for the root password and I can't seem to find it.  I have tried the password mysql and password.  They don't seem to work.  Any help would be greatly appreciated.
Question by:kpbarem
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39158626
A fresh install doesn't normally have a password for 'root'.  It is recommended that you create one when you can.

Author Comment

ID: 39158630
It won't let me create a connection to the server, unfortunately.  I'm not sure whats going on there.  Any trouble shooting steps you might recommend?
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39158635
A username, password (even if blank), and a hostname or IP address is required to connect to a MySQL server.  If the server is on the same machine as MySQL Workbench, try using 'root' with a blank password at either 'localhost' or ''.  There can be a problem with new computers that use IPV6 where 'localhost' is defined as an IPV6 address which MySQL does not understand.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 39198401
This might be the case for us.  The computer is brand new.  If the 'localhost' is defined as an IPV6 address is there a way to configure it so that it doesn't assign that address to the localhost?
LVL 83

Accepted Solution

Dave Baldwin earned 500 total points
ID: 39198425
This article says use "" (instead of localhost) to force an IPv4 connection.

Here's about IPV6 and MySQL:

Here's some troubleshooting info: and here:

Author Closing Comment

ID: 39286202
Sorry for the delay in getting back to you.  This ended up working.  We were able to switch the IP address and force the IPv4 connection.Thanks!
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39286207
You're welcome, thanks for the points.

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with Data Warehouse / Data Marts 4 41
Need to trim my database size 9 52
comparing two rows 10 39
Mysql query one to many 11 37
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question