I've recently begun trying out XAMPP and I really like it so far. I'm having a problem however with creating a new MySQL user... I don't really like running PHP scripts with root MySQL access.
I've ran XAMPP security, and logging in to mysql command line using root and the root password works just fine. I used:
- Code: Select all
/opt/lampp/bin/mysql -u root -p
CREATE DATABASE newdatabase;
GRANT ALL PRIVILEGES ON newdatabase.* TO 'newacc'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
The last query returns 'Query OK, 0 rows affected', however, and logging in using this new user returns an error. I've also tried adding the user using PHPMyAdmin but with the exact same result.
Does anyone have an idea on how to do this correctly?
Thanks in advance,