Here is the technical information:
XAMP : 7.2.10-0
MacOS High Sierra: 10.13.6
Problem:
I reseted the MySQL/MariaDB Root Password by using the mysqladmin command-line utility:
mysqladmin --user=root password "newpassword"
I know that my password change has been accepted, by attempting to connect to the MySQL/MariaDB server using the mysql command-line client in the same directory.
--user=root --password=newpassword -e "SELECT 1+1"
However, when I try to access myphp, I get
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
I tried different solutions online, but none worked:
I am not able to change in config.inc.php
$cfg['Servers'][$i]['password']='NO'
because I don't have privileges. None of the solutions in the previous post helped
Edited my.ini and insert skip-grant-tables below [mysqld] Restart MySQL I am able to get into phpmyadmin; however, I don't have user privileges.
Is there a way to restart to default xampp? I would like to have it like it was before changing the password.