Jump to content

Recommended Posts

When I try to create a database I get the error message:

 

#1044 - Access denied for user 'chase'@'localhost' to database 'test'

 

The MySQL database is on a shared hosting server and I operate it with phpMyAdmin in CPanel. I used to be able to create databases and I already have 3 databases, but I must have accidentally changed a setting and now suddenly I'm not able to create any more databases.

 

I've tried googling but I come across a lot of cryptic text that's hard to decipher. I've looked for the right syntax to grant ALL rights to user but every command I find contains "on -database-" in the command. But I think I don't need to grant myself privileges, since I'm the only user, so I should have all privileges already, right?

 

 

What could be the cause for this problem?

 

Any ideas?

 

What I'm doing:

 

I simply go into the SQL register of phpMyAdmin and then I type in:

 

 

create database test;

 

This works on my local server but creates the error access denied on my shared hosting server.

 

EDIT: MySQL version: 5.1.52

Link to comment
https://forums.phpfreaks.com/topic/231136-cant-create-database-access-denied-1044/
Share on other sites

Unfortunately I'm not even able to call the user table, when I try to run the command:

 

desc mysql.user;

 

 

I get the error:

 

#1142 - SELECT command denied to user 'chase'@'localhost' for table 'user'

 

 

Is there a way to RESET MySQL completely? As of now I don't have anything serious on there anyway, it wouldn't harm if the 3 databases I have now get deleted.

  • 2 weeks later...

Sorry for not keeping you up to date, this forum doesn't have a solved button anymore otherwise I would have marked it as such. Well, it was a misunderstanding on my part regarding my web host, to create a database you have to go to the special section for it inside cpanel, other than that you can do pretty much everything inside phpMyAdmin.

 

My web host is Hostgator, if somebody is wondering.

 

See ya.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.