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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:23:56+00:00 2026-06-01T11:23:56+00:00

Probably I cant get more dumb, but seriously this is the first time I

  • 0

Probably I cant get more dumb, but seriously this is the first time I had to think about it(for the first time the single user app goes multi-user from multiple locations). For what purpose is a MySQL (or any other database for that matter) password? The password we see in connection strings, as if like this:

"SERVER=localhost;DATABASE=tree;UID=root;PASSWORD=branch;Min Pool Size = 0;Max Pool Size=200"

Is branch a code word for user root to access database tree? Or is it for root to access any MySQL database on a specific machine? Or is it a password for any user to access database tree? Or password for any user to access any MySQL database on that machine?

So my questions are basically?

  1. Is the password specific for the MySQL, or the database, or the user? Or for that particular user for that particular database on that particular MySQL installation? Or any combination of these?

  2. Can we have a password for MySQL itself (if thats not the case with branch), can we have a password for the db itself (if thats not the case with branch) etc?

Sorry for my ignorance 😉

Edit: I can run this query to drop my database:

query = "DROP DATABASE tree";

with the connection string:

"SERVER=localhost;UID=root;PASSWORD=branch;Min Pool Size = 0;Max Pool Size=200"

Doesn’t that mean password is not per database, but per user?

  • 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-01T11:23:57+00:00Added an answer on June 1, 2026 at 11:23 am

    1) Is the password specific for the MySQL, or the database, or the
    user? Or for that particular user for that particular database on that
    particular MySQL installation? Or any combination of these?

    Let me start from scratch. First time when you install MySQL you are asked to enter Username(say root) and Password(say root). This is for the whole server.
    After you connect to the server with the above username and password, you can create user accounts for different reasons like- User ‘abc’ with password ‘xxx’ should connect to only one database, say Test. And, another user ‘xyz’ with password ‘aaa’ can connect to the server and access all the databases but with only SELECT privilege.

     CREATE USER 'abc'@'%' IDENTIFIED BY 'xxx'; 
     FLUSH PRIVILEGES; 
     GRANT ALL ON `test`.* TO 'abc'@'%' WITH GRANT OPTION;
    

    Here user ‘abc’ with password ‘xxx’ can connect to the server but with minimal privileges- By only accessing Test database.

     CREATE USER 'xyz'@'%' IDENTIFIED BY 'aaa'; 
     FLUSH PRIVILEGES; 
     GRANT SELECT ON *.* TO 'xyz'@'%' ;
    

    This user- ‘xyz’ with password ‘aaa’ connects to server with only SELECT privilege.

    So, three users with different passwords can actually connect to the server with ‘root’ user with password ‘root’ has all the privileges whereas ‘abc’ and ‘xyz’ has minimal privileges.

    I think I have answered your 2nd question also 🙂

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

Sidebar

Related Questions

I'm probably doing something realy stupid but I cant get this to work: var
This is probably an easy solution but I can't get my head around it.
I get the feeling this is probably something I should know but I can't
This is probably something really simple but I cant see what! Any images I
This is probably dead simple, but I can't get it to work. How do
Probably I'm just missing something obvious, but I can't get the image in my
I've been working all day and I somehow can't get this probably easy task
This is probably a simple answer but I can't find it. I have a
This is probably a simple question but I can't seem to find the solution.
First of all (before this question get down voted): I am a developer developing

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.