Solved

Password to get into MySQL Server 5.6

Posted on 2013-05-11
7
520 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Amazon Redshift 2 35
add and run outdated exchange database to an Exchange server 1 39
MySQL Error Code 2 20
Incorrect definition of table mysql.proc 7 16
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

777 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