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

  • Home
  • SEARCH
  • 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 6563827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:53:39+00:00 2026-05-25T13:53:39+00:00

creating users through mysql admin, but unable to login mysql command line following on-line

  • 0

creating users through mysql admin, but unable to login mysql command line

following on-line suggestions, as root issued

grant all on *.* to new_user;

it worked, but security-wise was a mess, so issued

revoke all on *.* from new_user;

now new_user can still connect, but security is sane as set in mysql admin

to me this is thoroughly hocus-pocus. what’s really going on, and how do you really enable login?

this seems to be a MySQL Administrator problem (thanks @marco). if the same GRANT is issued in mysql command line, the user can log in; but it the grant is issued in Administrator, the user cannot log in.

as @marco pointed out, any access will grant mysql login access to the user, eg, SELECT privileges – but they need to be entered in msql command line.

  • 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-05-25T13:53:40+00:00Added an answer on May 25, 2026 at 1:53 pm

    That’s because when you first use GRANT, user is created automatically; when you revoke privileges, user remains…
    Check this link.

    First you should give your user only the privileges he really needs.
    Second: give the user access only to db or tables he should see/work on.
    Example:

    GRANT SELECT,INSERT,UPDATE ON mydb.* TO 'jeffrey'@'localhost';
    

    or

    GRANT SELECT ON db2.invoice TO 'jeffrey'@'localhost' 
    IDENTIFIED BY PASSWORD 'sdsd';
    

    EDITED:
    Just to prove what I’m saying:
    enter mysql console (mysql -u root -p) and type

    USE mysql;
    SELECT * FROM user;
    

    You’ll see users MySql has inside.
    Well, now use GRANT as you please on a user which does not exists yet; then repeat SELECT * FROM user;: you’ll see new user created!!

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

Sidebar

Related Questions

I'm creating a system to walk users through a web site. To avoid mistakes
So I am creating a form builder. Users will login and then fillout the
I'm creating a Java application where the user can search through a list of
I was wondering, what's the best approach in creating users authentication for my asp.net-mvc
I need to restrict the development users from creating new schedules for SQL Agent
I'm creating a site that allows users to submit quotes. How would I go
I am creating a component where registered users will be able to use the
I'm creating an site which allows users to upload photos. It's a linux server.
I'm creating a script for users to run. I need to redirect the output
I am creating an application which tracks the users location using GPS, stores the

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.