Solved

Password to get into MySQL Server 5.6

Posted on 2013-05-11
7
539 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
[X]
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
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
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

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

Webinar: Choosing a MySQL HA Solution

Join Percona’s Principal Technical Services Engineer, Marcos Albe as he presents Choosing a MySQL High Availability Solution on Thursday, June 29, 2017 at 10:00 am PDT / 2:00 pm EDT (UTC-7).

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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…

688 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