Solved

Amazon EC2: Access denied for user abc / while other users can connect

Posted on 2010-08-31
2
787 Views
Last Modified: 2012-05-10
I've installed a php application on our server. I have created the user "abc", with a password, and I can login via commandline to mysql as this user. So the user seems to work correctly. We use Amazon EC2, and have a separate database server. When I run the installation wizard, I get the following error:

Access denied for user 'abc'@'ip-xxx.xxx.xxx.xxx.compute.internal' (using password: YES)

In the wizard, I can change the user to 'root', and then the connection works. I don't know what I'm doing wrong here. How can I get this working for this user?
0
Comment
Question by:R7AF
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
chataros earned 500 total points
ID: 33595888
I think you may need to change the pass and try again with the new password:
MySQL Change User Password                               

 to change a password for user called tom using command line option.
   
First,  login to MySQL server, type following command at prompt to login as root
 1) mysql -u root -p
2) Use mysql database (type command at mysql> prompt, do not include string "mysql>"):
 mysql> use mysql;
3) Change password for user tom:
 mysql> update user set password=PASSWORD("NEW-PASSWORD-HERE") where User='tom';

then try again  to login
0
 
LVL 2

Assisted Solution

by:chataros
chataros earned 500 total points
ID: 33595909
Or if this still doesn't work, you may need to grant permissions to the tables:

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
    ->     ON Database.Table
    ->     TO 'user'@'localhost'
    ->     IDENTIFIED BY 'pass';


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now