Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7735793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:35:21+00:00 2026-06-01T07:35:21+00:00

I install the MySQL in my EC2 instance, then I give to root a

  • 0

I install the MySQL in my EC2 instance, then I give to root a password.

Now I’m trying to create an user to localhost domain and ‘%’ domain too.
It was fine to create the user:

CREATE USER 'valter'@'localhost' IDENTIFIED BY '******';

But when I try to grant it some privilegies :

GRANT ALL PRIVILEGES ON *.* TO 'valter'@'localhost' WITH GRANT OPTION;

Gives me the follow error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Here it says :

shell> mysql –user=root mysql If you have assigned a password to the
root account, you will also need to supply a –password or -p option,
both for this mysql command and for those later in this section.

But how it should look like the command then ?

What I’m doing wrong here ?

I would like to create an user that have access to localhost and external network too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:35:23+00:00Added an answer on June 1, 2026 at 7:35 am

    This is an issue with EC2, not MySQL. Here’s a relevant forum entry:

    The issue is that the RDS instance does not have superuser rights so I
    can’t “grant all privileges” to any user.

    I was able to get my application to work by creating the user with the
    specific rights that I need (insert, update,create, etc)

    This forum discussion may also be worth looking through:

    https://forums.aws.amazon.com/thread.jspa?threadID=64618

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our software has data to store, so it also install MYSQL, a root user
Getting a 'marshal data too short' error when trying to install the mysql gem
Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
I am trying to install mysql on snow leopard and having some problems. I
I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I am using Windows 7 and trying to install mysql-python. > easy_install MySQL-python Searching
I'm attempting to install gearmand on a micro EC2 instance running Amazon Linux 64
I'm trying to install MySQL on Mac OS X 10.6. After I download MySQL
I'm trying to install MySQL on Ubuntu Natty from a shell script. However, I
I am trying to install mysql gem, version: 2.7 though it gives an error:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.