What is causing MySQL error #1045?
-
This is definitely one of the most frustrating error I've encounted. To my understanding, there are several components involved in database interaction. There is the MySQL database itself, and the phpMyAdmin. From various MAMP forum threads, I've established that I need to change the password inside the following files to solve this error: /Applications/MAMP/bin/phpMyAdmin/config.inc.php, /Applications/MAMP/bin/mamp/index.php, /Applications/MAMP/bin/http://stopMysql.sh I have also been told to change the password in the command line: /Applications/MAMP/Library/bin/mysqladmin -u root -p password [NEW PASSWORD] I have several questions actually: 1. There are many password changing activities happening here. What are the responsibilities of each file above really? 2. Is that password-changing command redundant with changing the password of any of the mentioned files (that are, config.inc.php, index.php, http://stopMysql.sh)? I have edited all of the three mentioned files to have the same username/password (root/root), but still has no luck changing the password on the command-line. Any ideas?
-
Answer:
See the documentation at http://dev.mysql.com/doc/refman/5.1/en/access-denied.html; I'd start by invoking mysql directly and confirming that you can access the DB with the username:password credentials you have set up. If not, confirm that the DB does, indeed, exist, then re-login as root, USE DB; GRANT ALL PERMISSIONS ON DB* TO 'username':@'localhost' IDENTIFIED BY 'password' and confirm that username:password with command line mysql and the various places in your PHP configuration. It's probably a good idea not to use root for the php username.
Richard Careaga at Quora Visit the source
Other answers
Sathish Kumar
Related Q & A:
- What's causing warnings when clicking a link in a newsletter/email message?Best solution by Webmasters
- What is causing my fuzzy/vibrating computer screen?Best solution by Yahoo! Answers
- What is causing an allergic reaction?Best solution by Yahoo! Answers
- I've been breaking out really bad - what's causing it?Best solution by vasseurbeauty.com
- What is causing this jaw pain and what can I do about it?Best solution by medicinenet.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.