Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: indra00 - helmikuu 13, 2009, 12:37:18 AP

Otsikko: Database Import Error|Help Urgent|
Kirjoitti: indra00 - helmikuu 13, 2009, 12:37:18 AP
Lainaa#1044 - Access denied for user 'blackboo'@'localhost' to database '146265'

This is the error i am getting when i try to import the database. I hv set disable foreign key checks when i exported it from another host.

blackboo user has been previlegdged to all permissions to the databse also.

Plz tell urgently what should i do.
Otsikko: Re: Database Import Error|Help Urgent|
Kirjoitti: Oldiesmann - helmikuu 13, 2009, 01:54:14 AP
Do you have a database called 146265? If so, make sure it's not trying to drop the database and recreate it.
Otsikko: Re: Database Import Error|Help Urgent|
Kirjoitti: LiroyvH - helmikuu 13, 2009, 02:01:20 AP
If you are using cPanel (and maybe with some other control panels, but your comment about all priviliges made me think wether it was added that way), note that you should add your cPanel username in front of the username and database.
Like if your cPanel username is "indra" then your database name is "indra_146265" and your username "indra_blackboo" :)
Otsikko: Re: Database Import Error|Help Urgent|
Kirjoitti: indra00 - helmikuu 13, 2009, 05:50:50 AP
prob solved... for any future user who faces same problem here is wat u hv to do..

Delete this line from ur sql file by editing...

CREATE DATABASE `db name` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `db name`;

:D :D :D