Cannot log in to the MySQL server
Posted by: parkstone (---.dyn.optonline.net)
Date: March 17, 2017 03:51PM

I'm unable to log into MySQL via PHPMyAdmin. My local wordpress installations
are not functioning.

My username is: ROOT
My password is: [blank]

PHPMyAdmin error is: "Cannot log in to the MySQL server"

MySQL console contains the following warnings from today:

2017-03-17T13:33:57.392931Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-03-17T13:44:00.203386Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-03-17T13:50:26.844281Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-03-17T14:06:59.764498Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-03-17T14:20:07.575788Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.

Answers to questions:

1 - Windows version used (Specify version number AND whether 32 or 64 bit)
Windows 10 Home 64 bit
2 - Version WampServer (Specify version number AND whether 32 or 64 bit)
3.0.0
3 - Apache Version
2.4.17
4 - PHP Version
5.6.16
5 - MySQL Version
5.7.9
6 - What color is the WampServer icon (in the notification area of the taskbar)
Green

7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines with the name [localhost] in them?
* Active means no # at the beginning of the line.
0.0.0.1 mssplus.mcafee.com

Above that, these appear to have been commented out?

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

If the WampServer icon is green:

8 - Do you have access to localhost (Homepage WampServer)?
Yes
8a - If so, is there an error message at the bottom of the page?
No

9 - Do you have access to phpMyAdmin?
Yes

10 - If you refer to an error message, please include the EXACT wording of the error in your post
"Cannot log in to the MySQL server"

11 - If you use an Antivirus and / or Firewall, please include the names of these
McCafee Total Protection (turned off firewall - no help)

12 - What is the full path to the installation of WampServer (eg D:\wamp\)
C:\WAMP64

13 - If you have one or more Virtual Hosts defined, please show their definition(s)
I don't

Options: ReplyQuote
Re: Cannot log in to the MySQL server
Posted by: parkstone (---.dyn.optonline.net)
Date: March 17, 2017 04:31PM

Additional info:

Timestamp on c:\Windows\System32\drivers\etc\hosts file with localhost commented out is 1/30/17
but I've successfully accessed MySQL database since that date.

Also, No issues with MySQL console, see below.

======================================

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.9

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

Options: ReplyQuote
Re: Cannot log in to the MySQL server
Posted by: RiggsFolly (Moderator)
Date: March 17, 2017 11:26PM

Hi

Couple of points:

The current version of WAMPServer is 3.0.8.
I suggest you uninstall WAMPServer 3.0.0 and install WAMPServer 3.0.8.
To get to this version Download and install Wampserver 3.0.6 (click this link)

And then download and upgrade to Wampserver 3.0.8 by clicking this link

Your HOSTS file must contain these 2 lines as a minimum

127.0.0.1 localhost
::1 localhost

Once these installs are done and the HOSTS file is corrected, reboot windows and then try and start WAMPServer and see if you can access the WAMPServer homepage and then phpMyAdmin

Do all this before you attempt to add anything to WAMPServer

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Cannot log in to the MySQL server
Posted by: kurama (---.user.veloxzone.com.br)
Date: March 18, 2017 02:57AM

help dont user and passoword,i need one

Options: ReplyQuote
Re: Cannot log in to the MySQL server
Posted by: parkstone (---.dyn.optonline.net)
Date: March 18, 2017 03:06AM

Thanks. After seeing the following error message in MySQL Console...
mysql> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>

I was able to regain access to the databases by changing the password of the root user in MySQL console.

I will also do all that you have suggested above. In the meantime, please consider my issue resolved.



Edited 1 time(s). Last edit at 03/18/2017 03:12AM by parkstone.

Options: ReplyQuote
Re: Cannot log in to the MySQL server
Posted by: bunak (---.50.90.212.it-tv.org)
Date: March 19, 2017 07:21PM

...removed to new topic - [forum.wampserver.com]



Edited 7 time(s). Last edit at 03/19/2017 08:35PM by bunak.

Options: ReplyQuote


Sorry, only registered users may post in this forum.