Solved

Password to get into MySQL Server 5.6

Posted on 2013-05-11
7
528 Views
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.
0
Comment
Question by:kpbarem
  • 4
  • 3
7 Comments
 
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.
0
 

Author Comment

by:kpbarem
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?
0
 
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 '127.0.0.1'.  There can be a problem with new computers that use IPV6 where 'localhost' is defined as an IPV6 address which MySQL does not understand.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:kpbarem
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?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39198425
This article http://bobstrand.com/totm/2010/04/hey-dude-wheres-my-localhost/ says use "127.0.0.1" (instead of localhost) to force an IPv4 connection.

Here's about IPV6 and MySQL: http://dev.mysql.com/doc/refman/5.5/en/ipv6-support.html

Here's some troubleshooting info: http://dev.mysql.com/doc/refman/5.1/en/access-denied.html and here: http://dev.mysql.com/doc/refman/5.1/en/connecting.html
0
 

Author Closing Comment

by:kpbarem
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!
0
 
LVL 83

Expert Comment

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Read about achieving the basic levels of HRIS security in the workplace.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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…

820 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