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 9071071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:49:41+00:00 2026-06-16T17:49:41+00:00

I am working on a project for a client, and instead of using my

  • 0

I am working on a project for a client, and instead of using my usual ‘root’ SQL password, I needed to create a new User/Password with specific access rights. I looke up how to do this and found that I should use the following:

CREATE USER 'AppSrv'@'%' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON some_db.* TO 'AppSrv'@'%' WITH GRANT OPTION;

When I run select * from mysql.user; I can see that the user has been added to the table, however when using PDO or PHPMyAdmin I get an error stating: Access denied for user 'AppSrv'@'localhost'

I have created users in the past without a problem, and am not sure why it is now not working. I have attempted rebooting the SQL server as well with no avail.

Running:

Linux version 3.2.0-24-virtual (buildd@crested) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) )
MySQL v5.5.28-0ubuntu0.12.04.3 – (Ubuntu)

What could be a possible fix to create new users for my SQL Server?

EDIT

I have also tried using PHPMyAdmin to create the user, and even that fails when trying to login.

  • 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-16T17:49:42+00:00Added an answer on June 16, 2026 at 5:49 pm

    Create the account with @’localhost’:

    CREATE USER 'AppSrv'@'localhost' IDENTIFIED BY 'some_pass';
    GRANT ALL PRIVILEGES ON some_db.* TO 'AppSrv'@'localhost' WITH GRANT OPTION;
    

    Otherwise the anonymous-user account for localhost that is created by mysql_install_db would take precedence – see mysql doc adding users or access denied

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

Sidebar

Related Questions

I am working on a new project for a client; they have supplied the
OK, this is Another Project Im Working ON. Its a Chat Client. and Using
I am working on a asp.net project the client has given me access to
I'm working on this project where the client has a virtual server setup. I
I'm working on a project where the client wants to have existing pages dynamically
I'm working on a project for a client in which the client owns the
I`m an Android developer, and recently started working on JAVA PC project for client.
I'm currently working on a project that has a sizable amount of both client
Currently, I'm working on a project where I have a server - client relationship
Client side Validation and ValidationSummary is working fine for my project (MVC4 + Razor

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.