473,396 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MySQL Import: Access denied to database

Hi there-

I'm having problems importing a Joomla database to my new server. I've created an empty database on the new server and attached a user with all permissions, but when I hit 'Import' and select the zipped database it gives this error:

#1044 - Access denied for user 'seasonal'@'localhost' to database 'dscharles_IC_20090410_120434'

Does anyone have any ideas what I can do?

Thanks
Jun 7 '09 #1
4 8552
Atli
5,058 Expert 4TB
Hi.

You need to give the user access to the database.
This is done using the GRANT command.

Like:
Expand|Select|Wrap|Line Numbers
  1. GRANT
  2.   SELECT, INSERT, UPDATE, CREATE,
  3.   DROP, DELETE
  4. ON 'dscharles_IC_20090410_120434'.*
  5. TO 'seasonal'@'localhost'
  6. IDENTIFIED BY '-InsertPassword-';
This needs to be executed by root, or a user with root-like capabilities.

Also, note that you need to specify any command that the user is allowed to use after the GRANT keyword.
The once I entered are just an example.
You can use the ALL keyword if you want to give the user unrestricted access.

Edit.
Re-reading your post (was kind of distracted the first time around), you say the user already has access?

That can't really be true, seeing as you are getting this error.
If it is, please tell us how you attached the user to the database.
Jun 7 '09 #2
Thanks for replying -

I'm no expert with MySQL and I was doing it all in my host's cpanel
So I went to MySQL Databases, created a new database, created a new user with ALL permissions, then added the user to the database - all from the cpanel MySQL Database program thing...!

Then I tried to do the import and had the error message.

Any ideas?
Jun 7 '09 #3
Atli
5,058 Expert 4TB
My guess is that your host's cPanel is broken, or that it doesn't create users with proper permissions.

I would contact your host's technical support and ask them about this.

If you actually had root access to the database, this would be as simple as the above example. But since you are using a hosting service, that is highly unlikely.

I've actually had similar problems with my host's cPanel. (It didn't allow users to create MySQL functions)
Their technical support told me this was a deliberate limitation and if I wanted to create functions, I would have to petition them to do it.

Perhaps this is a similar situation.
Jun 7 '09 #4
mwasif
802 Expert 512MB
What is the name of new database?
Jun 12 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has...
3
by: c_chen | last post by:
Hi, i am a beginner in PHP and mySQL. Whenever I try to connect my php and mysql database, i get this error.: MySQL error : access denied for myuser@localhost (Using password:yes) I have...
0
by: bruce | last post by:
Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user:...
0
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior...
2
by: Kevin Goad | last post by:
Im running Mandrake Linux 9.1 on a Laptop I recently bought, and its purpose its a PHP development machine, and I want to use a MySQL Backend. I think when I was installing MySQL, something got...
4
by: Adam Smith | last post by:
I have a dedicated server running 'FreeBSD 4.9 STABLE' at a hosting site. They have done some default installations, presumably from the CVS ports package ??. Herein lies the problem, "I do not...
4
by: MLH | last post by:
I am having failures processing the following command and I wonder if you can tell me what I must do in order to have success. When I try to run source mysql_dump.sql.txt ==> it is a problem...
3
by: Xerxes | last post by:
Hi, I would like to import the tables from MySQL database into Access database and I am not sure how to go about it. I tired to "Import External Data" from Access, selected "ODBC database" from...
12
by: mistral | last post by:
phpMyAdmin 2.6.2 problem: can no connects to mySQL database: each time shown error #1045 - Access denied for user 'username'@'192.168.1.2' (using password: YES) Is seems, this is most common...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.