Mac mini OS 11.3, XAMPP 8.03
Trying to install Wordpress. Followed the directions here:
https://wordpress.org/support/article/how-to-install-wordpress/
I can't connect to the database with anything but root.
define( 'DB_NAME', 'mcsga' );
define( 'DB_USER', 'mcsga_user' );
define( 'DB_PASSWORD', 'XXX' );
//works fine
//define( 'DB_USER', 'rootr' );
//define( 'DB_PASSWORD', '' );
I tried this and can't connect with anything but root.
<?php
$servername = "localhost";
$username = "mcsga_user";
$password = "XXX";
//root works fine
//$username = "root";
// $password = "";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
I'm out of ideas.