I keep getting this error, and I'm not really sure why this isn't working here.
I'm trying to create a database with PHP and it's returning the following error:
Error creating database: Access denied for user 'scriptcooke'@'10.%' to database 'my_db'
I believe I have the correct credentials, but what does @10.% even mean?
NOTE: I'm trying to use the w3schools code example here:
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if (mysql_query("CREATE DATABASE my_db",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
}
mysql_close($con);
?>