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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:27:29+00:00 2026-06-15T19:27:29+00:00

I executed this in phpMyAdmin . I executed these lines: CREATE USER root IDENTIFIED

  • 0

I executed this in phpMyAdmin.

I executed these lines:

CREATE USER root IDENTIFIED BY PASSWORD '';

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

I get this when trying to connect:

Connect failed: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)

$dsn = 'mysql:dbname=one';
$user = 'root';
$password = '';
$pdo = "Not set";
try{
    $pdo=new PDO($dsn, $user, $password);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
}
catch(Exception $ex){
    echo "Connect failed: " . $ex->getMessage();
}

Note that the connection above used to work..now it doesn’t (since I switched to XAMPP).

  • 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-15T19:27:30+00:00Added an answer on June 15, 2026 at 7:27 pm

    Are you sure that the root user doesn’t have a password? Do you have PhpMyAdmin installed to check this?

    If the problem isn’t the privileges, then it’s probably the port. The default port of MySQL is 3306, so if your port for MySQL is now 82 that you have to add the port in the connection.

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

Sidebar

Related Questions

This is what I have... a= document.createElement('div'); a.innerHTML=<script>alert(1)</script>; document.body.appendChild(a); The alert(1) doesnt get executed.
I'm trying to create a user that can only read from a database. This
Does anyone happen to know why this query when executed in phpMyAdmin gives me
Is this possible in phpMyAdmin, to execute that query on all records within a
Assume I have executed this js code: var container=function() { //do something } container.a=function
I have a complex query that gets executed like this: if ($stmt = $dbi->prepare($pt_query))
This code when executed displays the expected output but prints segmentation fault (core dumped)
This is a query that is executed without problem with MySql 5.0.51: SELECT cc_split.idSplit,
I keep getting this error when I try to commit a group of executed
i came across this problem, my code in the viewWillAppear method is not executed

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.