Questions tagged [mysql-error-1044]

Error 1044: Access denied for user: '%s@127.0.0.1' to database '%s'

Error 1044: Access denied for user: '%s@127.0.0.1' to database '%s'

27 questions
36
votes
10 answers

Does mysqldump --password really do what it says?

I'm trying to use mysqldump to dump a schema, and it mostly works but I ran into one curiosity: the -p or --password option seems like it is doing something other than setting the password (as the man page and --help output say it…
John Zwinck
  • 239,568
  • 38
  • 324
  • 436
8
votes
6 answers

Mysql password hashing method old vs new

I'm trying to connect to a mysql server at dreamhost from a php scrip located in a server at slicehost (two different hosting companies). I need to do this so I can transfer new data at slicehost to dreamhost. Using a dump is not an option because…
The Disintegrator
  • 4,147
  • 9
  • 35
  • 43
4
votes
1 answer

MySQL permissions -- can't create functions even with the 'CREATE ROUTINE' grant

When connecting to my server (from a different machine) I get Error Code: 1044 Access denied for user 'username'@'%' to database 'dbname' when I try to create a function. But when I look at my permissions SHOW GRANTS FOR CURRENT_USER; I get 'GRANT…
Charles
  • 11,269
  • 13
  • 67
  • 105
3
votes
1 answer

Access denied in MySQL, even though GRANTS looks right

I'm trying to create a stored proc in MySQL. When I try and run it, I get the error: Access denied for user: '' to database '' However when I look at the GRANTS for this user I get: GRANT USAGE ON *.* TO ''@'%' IDENTIFIED BY…
Ben
  • 4,281
  • 8
  • 62
  • 103
3
votes
2 answers

Unable to import old database after reinstall (permission issue with information_schema)

I have recently re-installed my dev. computer. So what I did was make an export in phpmyadmin into an .sql file and backedup all the site files. Something that normally should be enough? Now my problem is that It will only partially import untill it…
HTDutchy
  • 1,090
  • 2
  • 13
  • 25
3
votes
0 answers

Can't grant privileges to users on Azure MySQL database

yesterday I deployed a MySQL database image from the Azure marketplace. It is this one issued by Microsoft. I can connect with the user I specified in the Azure portal and was able to create an additional user for testing purposes and grant it all…
2
votes
1 answer

How can I run with root@localhost privileges in MySQL?

I'm trying to run a GRANT ALL statement: GRANT ALL ON daisyrepository.* TO daisy@localhost IDENTIFIED BY 'password_here'; I've ran this statement on the server itself using Remote Desktop using: PHPMyAdmin MySQL Administrator Command line…
TechFanDan
  • 3,329
  • 6
  • 46
  • 89
2
votes
5 answers

PHP Script to Backup MySQL Database

I'm trying to write a PHP script to backup a MySQL database: if ( $db_resource = mysql_connect($db_server, $db_username, $db_password, $db_newlink) ) { if ( mysql_select_db( $db_name, $db_resource ) ) { $backupFile =…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
1
vote
1 answer

Debugging a mysql 1044 error

What is the best way to figure out the cause of a mysql 1044 error? ERROR 1044 (42000): Access denied for user 'web'@'%' to database some_db
well actually
  • 11,810
  • 19
  • 52
  • 70
1
vote
1 answer

Error 1044 <42000>: Access denied for user ''@' localhost' to database

I started learning PHP since last few days and this is where I'm stuck at. When I try to type CREATE DATABASE blog; in shell, this is the error I get 'Error 1044 <42000>: Access denied for user ''@' localhost' to database' How do I fix this? I…
NewbieDeveloper
  • 126
  • 2
  • 2
  • 10
0
votes
6 answers

Can't set permissions on MySQL user

I am trying to set the permissions for a MySQL user using the following command. GRANT ALL ON joomla.* to user@localhost; I have tried so many versions but they all return: ERROR 1044 (42000): Access denied for user ''@'localhost' to database…
Ankur
  • 50,282
  • 110
  • 242
  • 312
0
votes
2 answers

Can not create a new database on phpmyadmin because of this error - 1044 - Access denied for user 'xxx' to database 'zzz'

I need to import a sql. database to Wordpress through phpMyAdmin. Anytime I want to create a new database this error happens (#1044 - Access denied for user 'xxx' to database 'zzz'). Thanks for your help.
mia11
  • 1
0
votes
2 answers

Heroku. MariaDB. Access denied for user

I'm creating new app on Heroku. Installed add-on "JawsDB Maria" successfully - I can open it's dashboard In PHP on connection to DB I receive error: SQLSTATE[HY000] [1044] Access denied for user 'vcgu1h273742rn5l'@'%' to database…
Egorrishe
  • 21
  • 5
0
votes
2 answers

Access denied to mysql database

I created a database named auth yesterday in mysql. Today, I went to access it by USE auth; but I got this output ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'auth' I never used to have this problem when I created and…
Leahcim
  • 40,649
  • 59
  • 195
  • 334
0
votes
1 answer

Using variable to invoke MySQL in shell script

I'm creating a script that can be deployed to multiple administrators who would be able to run it with their own credentials. I'm getting an Access Denied error from mysql, however. It seems to think that I'm not passing a username to the MySQL…
sbook
  • 841
  • 1
  • 8
  • 13
1
2