Error 1045 28000 Access Denied
Contents |
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this answer as accepted. Are you sure you want to unaccept error 1045 28000 access denied for user it? Yes, I'm sure. Sign Up Log In submit Tutorials Questions Projects Meetups Main error 1045 28000 access denied for user odbc localhost using password no Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: greg535417 Subscribe Subscribed error 1045 28000 access denied for user using password no Share 0 Setup MySQL on Ubuntu Droplet getting error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) December 3, 2015 26.8k views MySQL Hi guys, I am very new to using a service mysql error 1045 28000 access denied like digitalocean (opposed to a one click setup of mediatemple or godaddy) and I am trying to setup and configure a new DB using MySQL but I keep getting the error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) I have googled this, and searched the community for answers but cannot seem to solve this issue. Am I missing something? I have tried running it as root, and running it with
Error 1045 28000 Access Denied For User Root Localhost Using Password No
sudo through another user and cannot get around it. If I offer no password it gives the same error but instead of using password: YES, it's NO. Thanks. 3 comments 0 mikionline20 January 19, 2016 I faced like this error while i want check my database ERROR 1045 (28000): Access denied for user 'user02'@'localhost' (using password: NO) do you have solution about this 0 CrypticDesigns January 19, 2016 Same solution, just login as root and then change password of the user: update user set password=PASSWORD("YOURPASSWORDHERE") where User='user02'; 0 sergeyvlasov July 3, 2016 Experienced the same problem. This particular explanation and solution made sense for me and helped as well: http://stackoverflow.com/questions/10299148/mysql-error-1045-28000-access-denied-for-user-billlocalhost-using-passw Log In to Comment Leave a Comment Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below. Log In to Comment 5 Answers 4 CrypticDesigns December 3, 2015 Which one-click-setup did you use? You can check the configuration files probably and find the password. If you can't find it, neither root without pass is working you can reset it: Commands sudo /etc/init.d/mysql stop Now start up MySQL in safe mode, so you'll skip the privileges table: sudo mysqld_safe --skip-grant-tables & Login with root: mysql -uroot And assign the DB that needs to be used: use mysql; Now all yo
log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
Error 1045 Sqlstate 28000 Access Denied For User 'root'@'localhost'
Discuss the workings and policies of this site About Us Learn more error 1045 mysql windows about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Database mysql access denied for user using password yes Administrators Questions Tags Users Badges Unanswered Ask Question _ Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills https://www.digitalocean.com/community/questions/setup-mysql-on-ubuntu-droplet-getting-error-error-1045-28000-access-denied-for-user-root-localhost-using-password-yes and learn from others in the community. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top MySQL - ERROR 1045 (28000): Access denied for user up vote 5 down vote favorite 3 I just installed http://dba.stackexchange.com/questions/38803/mysql-error-1045-28000-access-denied-for-user a fresh copy of Ubuntu 10.04.2 LTS on a new machine. I logged into MySQL as root: david@server1:~$ mysql -u root -p123 I created a new user called repl. I left host blank, so the new user can may have access from any location. mysql> CREATE USER 'repl' IDENTIFIED BY '123'; Query OK, 0 rows affected (0.00 sec) I checked the user table to verify the new user repl was properly created. mysql> select host, user, password from mysql.user; +-----------+------------------+-------------------------------------------+ | host | user | password | +-----------+------------------+-------------------------------------------+ | localhost | root | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 | | server1 | root | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 | | 127.0.0.1 | root | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 | | ::1 | root | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 | | localhost | | | | server1 | | | | localhost | debian-sys-maint | *27F00A6BAAE5070BCEF92DF91805028725C30188 | | % | repl | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 | +-----------+------------------+-------------------------------------------+ 8 rows in set (0.00 sec) I then exit, try to login as user repl, but access is denied. david@server1:~$ mysql -u repl -p123 ERROR 1045 (28000): Access denied for user '
Us MySQL ERROR 1045 (28000): Access denied for user 'root' - Solution Contents[Hide]Symptom:Solution: 1.Symptom: Unable to access MySQL database remotely https://linuxconfig.org/mysql-error-1045-28000-access-denied-for-user-root-solution using root account. Any attempt to access MySQL database will result in error: ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES) 2.Solution: The above MySQL error message is a default behavior of the MySQL server to disallow a Root user to connect remotely as by default the Root user is error 1045 allowed to connect to MySQL server on from localhost that is 127.0.0.1. The solution is to create a new admin user. The below SQL commands will create new user called admin and grant remote access: mysql> CREATE USER 'admin'@'%' IDENTIFIED BY ''; Query OK, 0 rows affected (0.00 sec) mysql> GRANT ALL PRIVILEGES 28000 access denied ON *.* TO 'admin'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) Alternative but not recommended solution is to grant remote MySQL access to root user: mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'; Query OK, 0 rows affected (0.00 sec) The above line will grant a privilege to the root user to connect remotely: $ mysql -u root -ppassword -h 172.17.0.14 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 41 Server version: 5.5.43-0+deb8u1 (Debian) Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]> Bye Please enable JavaScript to view the comments powered by Disqus. Free Linux eBooks Self-Service Linux®: Mastering the Art of Problem Determination Understanding the Linux® Virtual Memory Manager Linux® Patch Management Linux Device Drivers, 2nd Edition Ubuntu Linux Toolbox: 1000+ Commands Java™ Application Developm