Query Browser Error 1045
Contents |
phpMyAdmin, you could possibly encounter the error: #1045 Access Denied for user 'root'@'localhost' (using password: YES).If root@localhost wasn't granted the necessary rights to access the database or you provided the wrong
Mysql Error 1045 Access Denied For User 'root'@'localhost'
password, you will then encounter this error.Following this tutorial will help guide you how to solve error #1045 in phpmyadmin on bypassing this error, for any local host server using phpMyAdmin.If you get an Error #1045 in phpMyAdmin it will
Error 1045 Mysql Windows
look like the image below:Step 1: Open your MySQL console. Using WAMP, left click your WAMP icon located at the bottom right of your desktop and click on MySQL Console. Guide to accessing mysql error 1045 using password yes MySQL using XAMPP Guide to accessing MySQL using MAMP. Step 2: Enter the Provided Command LinesIf you have a password, you can ignore this part. Type in: use mysql; Press Enter. Set your MySQL Password: UPDATE mysql.user SET Password=PASSWORD("EnterYourPasswordHere") WHERE User="root"; Replace "EnterYourPasswordHere" with your new chosen password. Press Enter. Flush the privileges: FLUSH PRIVILEGES; Exit by typing: Exit Press Enter. Step 3: Open and edit your error 1045 mysql windows 8 config.inc.php file located in your local server files Using a text editor, such as Notepad++, open your config.inc.php file. Go to My Computer > C Drive > (Your Local Server Folder, WAMP/MAMP/XAMPP) > APPS > PHPMYADMIN > config.inc.php Find this line of code: $cfg['Servers'][$i]['password'] = ''; // MySQL password Change 'password' to the new chosen password you created from Step 2. Click Save. Step 4: Access phpMyAdmin You can access phpMyAdmin by going to http://localhost/phpMyAdmin/. Congratulations! You are now able to access your databases. View the discussion thread. blog comments powered by DISQUS back to top Blog Categories WordPress TutorialsDrupal TutorialsJoomla TutorialsCoding TutorialsOSTraining NewsWeb Design TutorialsBlog LicenseAll our blog posts are published under the Creative CommonsAttribution-NonCommercial license: You can re-use these tutorials. You can modify these tutorials. You must link back to our original tutorial. You can't use these tutorials commercially. Full license details.Our Training Video Training Books On-Site Training Our Books MySQL Explained Drupal 7 Explained Joomla 3 Explained Joomla Explained About OSTraining About Us Our Team Our Blog Partner With Us Become an Affiliate Become a Video Trainer Become a Tutorial Writer Advertise with Us support@ostraining.com / Contact us / /OSTraining / @OSTraining / +OSTraining /
GoogleВойтиСкрытые поляПоиск групп или сообщений
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 http://stackoverflow.com/questions/7956031/mysql-access-denied-1045-error Business Learn more about hiring developers or posting ads with us Stack 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 each other. Join them; it only takes a minute: Sign up MySQL access denied 1045 error up vote 2 down vote favorite 2 I'm getting a very strange error, I've created a user error 1045 'testuser' with the following credentials: CREATE USER 'testuser'@'%' IDENTIFIED BY '123456'; GRANT ALL PRIVILEGES ON *.* TO 'testuser'@'%'; FLUSH PRIVILEGES; I have also modified my /etc/mysql/my.cnf not to bind to any single address. (Which afaik should accept connections from anywhere?) And restarted mysql. And I can connect locally no problem. I am running inside a virtual box on ubunutu. Trying to connect from my windows machine, gives me MySQL error number 1045 Access denied error 1045 mysql for user 'testuser'@'192.168.0.22'. I'm confident that it's not a networking problem as changing the host or port gives a different error "Cannot connect to the specified instance" Logging in as root and looking at the users table - all looks as expected. (Single row, '%' for host and all permissions set.) I've been banging my head against the wall all afternoon... can anyone suggest any other possible causes for this error? Thanks for any help. mysql networking mysql-error-1045 share|improve this question asked Oct 31 '11 at 15:44 Chris 1,84162747 What is full error message? –Devart Oct 31 '11 at 15:52 "Could not connect to the specified instance. MySQL Error Number 1045 Access denied for user 'testuser'@'192.168.0.22' (using password: YES) If you want to check the network connection, please click the Ping button." (Clicking the ping button gives: "Pinging vbox Reply from 192.168.0.11: Time = 1ms TTL = 64 Reply from 192.168.0.11: Time = 0ms TTL = 64 ...") –Chris Oct 31 '11 at 16:00 Check the password. Is it correct? –Devart Oct 31 '11 at 16:09 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted Run the GRANT statement with the IDENTIFIED BY: GRANT ALL PRIVILEGES ON *.* TO 'testuser'@'%' IDENTIFIED BY '123456'; share|improve this answer answered Oct 3