Mysql Error 1045 Solution
Contents |
Community Podcasts MySQL.com Downloads Documentation Section Menu: MySQL Forums :: Install & Repo :: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) error 1045 mysql access denied for user root@localhost New Topic Advanced Search EASY FIX to Re: ERROR 1045 (28000): Access
Error 1045 Mysql Windows 7
denied for user 'root'@'localhost' (using password: NO) Posted by: Marta N () Date: January 31, 2011 04:45AM how to solve error #1045 in phpmyadmin Easy Fix is to make sure that the user that you are connecting with have settings to access db from both ALL HOSTS (%) AND from LOCALHOST. If you error 1045 mysql windows 8 are using mysql Administrator to manage your DBs go to User Administration (link on left side) choose or create user that you want to connect with to db then right click on this user pick add host choose any host and ok (it should add @ % sign under user) then do the same but this time add localhost
Error No 1045 Access Denied For User
(this also will be indicated under your user) And at last the most important thing Apply Changes to this user so it will keep the settings. As addition later you can play with privilages of your user by clicking on schema privileges tab and assigning additional privilages from available list. Enjoy your administration Marta Navigate:Previous Message•Next Message Options:Reply•Quote Subject Written By Posted ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Daniel Ho 07/12/2005 01:16PM Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Daniel Ho 07/12/2005 07:49PM Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) carminda timas 05/11/2007 02:20PM Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Eric Okorie 05/21/2007 10:57PM Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) pigeret john 07/22/2007 01:59AM Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Me izme 10/11/2007 08:04AM Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Christopher Armstrong 12/27/2007 07:40P
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss error 1045 mysql using password yes windows the workings and policies of this site About Us Learn more error 1045 mysql using password no about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Mysql Error 1045 Access Denied For User 'root'@'localhost' Windows
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping http://forums.mysql.com/read.php?11,34014,405579 each other. Join them; it only takes a minute: Sign up ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) up vote 7 down vote favorite 3 I lost the access onto MySQL v. 5.6.14. I had access and suddenly I lost it. Looking for notes I found out the url below. I did the steps, http://stackoverflow.com/questions/19989418/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-n but not success. http://dev.mysql.com/doc/refman/5.5/en/resetting-permissions.html C:\Program Files\MySQL\bin>mysqld 2013-11-14 19:46:01 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details) C:\Program Files\MySQL\bin>mysql -u root mysql1 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Notice: I don't have mysqld_safe or safe_mysqld files in MySQL version Could you please help me? Below you can see the dump file generated by the command: C:\mysqld --init-file=C:\\mysql-init.txt C:\Program Files\MySQL\bin>mysqld --init-file=C:\\mysql-init.txt --console 2013-11-14 17:57:20 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2013-11-14 17:57:20 5180 [Note] Plugin 'FEDERATED' is disabled. 2013-11-14 17:57:20 5180 [Note] InnoDB: The InnoDB memory heap is disabled 2013-11-14 17:57:20 5180 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2013-11-14 17:57:20 5180 [Note] InnoDB: Compressed tables use zlib 1.2.3 2013-11-14 17:57:20 5180 [Note] InnoDB: Not using CPU crc32 instructions 2013-11-14 17:57:20 5180 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2013-11-14 17:57:20 5180 [Note] InnoDB: Completed initialization of buffer pool 2013-11-14 17:
1045 25 Jun. 2012 I was working on an OpenStack Essex installation on 2 desktops. Shortly after Ifinished setting up the controller in an all-in-one configuration, and while working on the nova-compute node, openstack http://www.tikalk.com/devops/solution-mysql-error-1045-access-denied-userlocalhost-breaks-openstack/ crashed. The first thing i noticed was an AppArmor popup informing glance-registry has crashed unexpectedly. Further inspection revealed that the 'glance-registry' daemon is starting and crashing in an andless loop. All other OpenStack services were inoperational and the nova log files in /var/log/upstart/nova-* were huge. Greping /var/log/glance/registry.logfor 'error' i found this (on the controller): 2012-06-16 12:57:42 1356 ERROR [glance.registry.db.api] Error configuring registry database with supplied sql_connection 'mysql://glance:openstack@10.0.0.40/glance'. Got error 1045 error: (OperationalError) (1045, "Access denied for user 'glance'@'ostk-controller1' (using password: YES)") None None This suggested something is wrong with mysql. Testing access from the commandline produced the same error: $ mysql -uglance -popenstack ERROR 1045 (28000): Access denied for user 'glance'@'localhost' (using password: YES) Wondering what change prvoked this ERROR 1045, i spent hours googling around. There're plenty of ERROR 1045 descriptions, but none of them explained error 1045 mysql the problem or helped me resolve it - which is the reason for this post. The Problem The logfile of mysqld,/var/log/upstart/mysql.log, reported yet another error: 120618 14:07:31 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.5.24-0ubuntu0.12.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu) mysqld is alive Checking for tables which need an upgrade, are corrupt or were not closed cleanly. 120618 14:07:36 [ERROR] Cannot find or open table nova/projects from the internal data dictionary of InnoDB though the .frm file for the table exists.Maybe you have deleted and recreated InnoDB data This looked like a DB corruption. Assuming healing it will solve the problem I wasted a few hours on that, in vain. Finally it turned this is a harmless alert that has nothing to do with the Access Denied issue (but is probably a nova bug). Some posts on the subject suggested that the socket permissions prevented local access. In my installation: # ll /var/run/mysqld/mysqld.sock srwxrwxrwx 1 mysql mysql 0 Jun 18 17:34 /var/run/mysqld/mysqld.sock Which is ok. Back to mysql's user accounts. User 'glance' was properly defined in mysql, as well as 'keystone' and 'nova'. Permissions and grants looked ok - and let's recall openstack worked (!). Connecting from any remote host (same