No mysql database in mysql server - how do I give users permissions? I have a mysql server (5.5.44) running on my local Ubuntu 14 machine.
I can start the interactive shell via

$ mysql


When I ask to see all the databases, there is only one

mysql&gt; SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
+--------------------+


If I try to make a new database I get an error

mysql&gt; CREATE DATABASE purchases;
ERROR 1044 (42000): Access denied for user 'danielsank'@'localhost' to database 'purchases'


I am puzzled by how to resolve this problem.
I'm used to mysql servers always having a database called mysql containing user access data: passwords, allowed hosts, etc.
My server installation doesn't seem to have this.

How do I give myself permission to create new tables, given that there is no mysql database in the server?
The problem here is that I am invoking mysql as user danielsank, but that user does not have privileges to make new tables, nor to see the mysql database!

The issue becomes clear by invoking mysql as root

$ mysql -u root

mysql&gt; SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+


Now we can see the mysql database, and we can check it for user information

mysql&gt; USE DATABASE mysql;
mysql&gt; SELECT User, Host, Password FROM user;
+------------------+-------------------------+-----------------------------+
| User             | Host                    | Password                    |
+------------------+-------------------------+-----------------------------+
| root             | localhost               |                             |
| root             | &lt;my machine name&gt;       |                             |
| root             | 127.0.0.1               |                             |
| root             | ::1                     |                             |
| debian-sys-maint | localhost               | *&lt;a really long string&gt;     |
| danielsank       | localhost               |                             |
+------------------+-------------------------+-----------------------------+


We can create the new database

mysql&gt; CREATE DATABASE purchases;


and grant permissions to danielsank

mysql&gt; GRANT ALL PRIVILEGES ON purchases . * TO 'danielsank'@'localhost';