I tried your problem and got it to work...
Here's some commands you can execute in an SQL file or at the MySQL command line or in the MySQL Workbench query builder to create the user:
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password';
Here's some SQL code to create a 'persons' table in your database (make sure to backup your database first if you use it, it will be dropped first!...or you could always change the names):
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP DATABASE IF EXISTS `dbtimereport`;
CREATE DATABASE `dbtimereport` ;
USE `dbtimereport`;
DROP TABLE IF EXISTS `persons`;
CREATE TABLE `persons` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`FirstName` varchar(50) DEFAULT NULL,
`LastName` varchar(50) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `persons` (`ID`, `FirstName`, `LastName`) VALUES
(1, 'Joe', 'Bloe'),
(2, 'Jane', 'Doe'),
(3, 'Larry', 'Smith');
Here's a PHP script to dump it:
<?php
$host="localhost";
$user="user";
$password="password";
$dbname="dbtimereport";
$con=mysqli_connect($host, $user, $password, $dbname);
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM persons");
while($row = mysqli_fetch_array($result))
{
echo $row['FirstName'] . " " . $row['LastName'];
echo "<br>";
}
mysqli_close($con);
?>
...good luck! :)