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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:44:44+00:00 2026-05-18T00:44:44+00:00

I use PhpMyAdmin to setup mysql tables and such. I also have root (full)

  • 0

I use PhpMyAdmin to setup mysql tables and such.

I also have root (full) access to everything.

Currently I have this in my phpMyAdmin under the privileges tab:

  USER:       HOST:       PASS:      GLOB PRIVILEGES:
phpmyadmin  localhost   Y    USAGE          No  
root    127.0.0.1   Y    ALL PRIVILEGES       Y 
root    localhost   Y    ALL PRIVILEGES       Y 
root    domain.com  Y    ALL PRIVILEGES       Y 
db1     localhost   Y    ALL PRIVILEGES       Y 
db2     localhost   Y    ALL PRIVILEGES       Y 
user    localhost   Y    USAGE                No    

And I use this to connect via PHP:

$dbhost ='localhost';
$dbuser ='db2';
$dbpass ='password_here';
$dbname ='db2';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
mysql_select_db($dbname,$conn) or die(mysql_error());
mysql_set_charset('utf-8', $conn);

What confuses me is that if I change the password of the user lets say “db2” to something, and try using that in my PHP code for connecting, I don’t get access. I am using an old password and it works even though I change passwords in phpMyAdmin to the database.
I don’t even remember setting the first password up, it must have been a long time ago.
Thats my first problem!
Btw, when I click “change privileges”, then the fields where it says if it is supposed to use password or not, is displaying “Dont change the password” from the drop list. Shouldn’t it say something like “Use textfield”?

Second is that I need to know how it SHOULD be set up, from the start to end…

I have my own server and I am a rookie at maintaining my own servers, but I am learning everyday.

But this information is something I didn’t find on the web.

What do I need to setup on my server? my.cnf? etc…

  • 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-18T00:44:45+00:00Added an answer on May 18, 2026 at 12:44 am

    try

    UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='db2';
    FLUSH PRIVILEGES;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with the MySQL root user in My MySQL setup, and
I use phpmyadmin, and when entering this adress: www.mydomain.com/phpmyadmin a login page appears. Is
I have two databases, tvguide and episodes1. Both are InnoDB, and I use Phpmyadmin
Which scripts/solutions do use for import and export large mysql databases? Phpmyadmin gives an
I use the VS2008 command prompt for builds, TFS access etc. and the cygwin
I'm trying to learn how to use MySQL stored procedures. MySQL accepted my procedure:
I don't use php or mysql but I am trying to upgrade a phpbb
After successful setup on initial launch of MySQL, the page prompted me to set
Possible Duplicate: How to secure phpMyAdmin I use phpmyadmin to preview the database of
I'm trying to use a join on three tables query I found in another

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.