Error 1045 Mysql Using Password Yes
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have mysql hosts allow Meta Discuss the workings and policies of this site About Us
Mysql Error 1045 Using Password Yes Windows
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Mysql Error 1045 Using Password No
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
Mysql Flush Privileges
just like you, helping 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 mysql error 1045 using password yes dreamweaver url below. I did the steps, 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-1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about mysql error 1045 access denied hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask mysql error 1045 access denied for user using password yes Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. error 1045 mysql 28000 access denied for user Join them; it only takes a minute: Sign up ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) up vote 50 down vote favorite 36 I am an electrical engineering who mainly play around with power system http://stackoverflow.com/questions/19989418/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-n instead of programming. Recently, I have been following a manual to install a software suite on Ubuntu. I have no knowledge on mySQL at all, actually. I have done the following installations on my Ubuntu. sudo apt-get update sudo apt-get install mysql-server-5.5 sudo apt-get install mysql-client-5.5 sudo apt-get install mysql-common sudo apt-get install glade sudo apt-get install ntp Then I do me@ubuntu:~/Desktop/iPDC-v1.3.1/DBServer-1.1$ mysql -uroot -proot <"Db.sql" I ended up with the following error message. ERROR 1045 (28000): Access denied http://stackoverflow.com/questions/21944936/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-y for user 'root'@'localhost' (using password: YES) How may I fix it and continue? mysql linux ubuntu share|improve this question asked Feb 21 '14 at 20:52 Sibbs Gambling 3,2031040103 1 This does not seem to be strictly programming-related to me. I flagged it for migration to SuperUser –Uli Köhler Feb 21 '14 at 20:55 add a comment| 12 Answers 12 active oldest votes up vote 54 down vote accepted The default root password is blank (i.e. empty string) not root. So you can just login as: mysql -u root You should obviously change your root password after installation mysqladmin -u root password [newpassword] In most cases you should also set up individual user accounts before working extensively with the DB as well. Update: For MySQL 5.7+ please see answer from @Anshu to this question. That contains more current information. share|improve this answer edited Aug 29 at 13:40 answered Feb 21 '14 at 20:54 Mike Brant 51.6k54670 Thanks for the quick answer. Could you please explain what the -proot <"Db.sql part does? –Sibbs Gambling Feb 21 '14 at 20:57 @FarticlePilter The -p flag specifies the password, so after you change your root password you would do like mysql -u root -p[newpassword]. The < [filename] is using std input to execute an SQL file at the path given via the user credential you provide. –Mike Brant Feb 21 '14 at 21:00
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links https://ubuntuforums.org/showthread.php?t=1836919 Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.html Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] mySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 2 12 error 1045 Last Jump to page: Results 1 to 10 of 16 Thread: mySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 1st, 2011 #1 BlackWhiteAndRed View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Aug 2011 Beans 3 mySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost I can't get mySQL to run even though mysql error 1045 I have the correct password. I was having problems directing a localhost and I tried fixing things in myphpadmin. I deleted my root directory/privileges in phpmyadmin and then things took a turn for the bad. mySQL could no longer run and I have no idea how to fix it. I've tried reinstalling phpmyadmin and everything related to mySQL and still do not have any luck getting it to run. I know mySQL is running because when I type in: ps -ef | grep mysql I get mysql 1149 1 0 20:23 ? 00:00:00 /usr/sbin/mysqld jeremy 2314 2283 0 20:34 pts/0 00:00:00 grep mysql When I type in: "mysql -u root -p" and enter the password I get reset I get the message: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) I've tried using an init file and loading it from there, resetting passwords and using dkpg to reset things but still have no luck. If I type the command: mysqld --skip-grant-tables I get 110831 20:57:24 [Warning] Can't create test file /var/lib/mysql/jeremy-laptop.lower-test 110831 20:57:24 [Warning] Can't create test file /var/lib/mysql/jeremy-laptop.lower-test 110831 20:57:24 [Warning] One can only use the --user switch if running as root Does anyone ever had this happen to them or know how to fix it? Adv Reply September 1st, 2011 #2 Wim Sturkenboom View Profile View Forum Posts Private Message I Ubuntu, Therefore, I Am Join Date Jan 2005 L
Connectors More MySQL.com Downloads Developer Zone Section Menu: Documentation Home MySQL 5.7 Reference Manual Preface and Legal Notices General Information Installing and Upgrading MySQL Using MySQL as a Document Store Tutorial MySQL Programs MySQL Server Administration Security General Security Issues Security Guidelines Keeping Passwords Secure End-User Guidelines for Password Security Administrator Guidelines for Password Security Passwords and Logging Password Hashing in MySQL Making MySQL Secure Against Attackers Security-Related mysqld Options and Variables How to Run MySQL as a Normal User Security Issues with LOAD DATA LOCAL Client Programming Security Guidelines The MySQL Access Privilege System Privileges Provided by MySQL Grant Tables Specifying Account Names Access Control, Stage 1: Connection Verification Access Control, Stage 2: Request Verification When Privilege Changes Take Effect Troubleshooting Problems Connecting to MySQL MySQL User Account Management User Names and Passwords Adding User Accounts Removing User Accounts Setting Account Resource Limits Assigning Account Passwords Password Expiration Policy Password Expiration and Sandbox Mode Pluggable Authentication Proxy Users User Account Locking SQL-Based MySQL Account Activity Auditing Using Secure Connections OpenSSL Versus yaSSL Building MySQL with Support for Secure Connections Secure Connection Protocols and Ciphers Configuring MySQL to Use Secure Connections Command Options for Secure Connections Creating SSL and RSA Certificates and Keys Creating SSL and RSA Certificates and Keys using MySQL Creating SSL Certificates and Keys Using openssl Creating RSA Keys Using openssl Connecting to MySQL Remotely from Windows with SSH Security Plugins Authentication Plugins The Native Authentication Plugin The Old Native Authentication Plugin Migrating Away from Pre-4.1 Password Hashing and the mysql_old_password Plugin The SHA-256 Authentication Plugin The PAM Authentication Plugin The Windows Native Authentication Plugin The No-Login Authentication Plugin The Cleartext