Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th Aug 2013, 12:16 PM   #1
HyperActive Warrior
War Room Member
 
kylenelson24's Avatar
 
Join Date: 2010
Location: California
Posts: 268
Thanks: 37
Thanked 24 Times in 24 Posts
Default
MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

I am trying to transfer a site that I bought. It comes from a different host. I made a new data base and tried to upload the sql file. I get this error.
Error SQL query:
--
-- Database: information_schema

CREATE DATABASE information_schema DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
MySQL said: Documentation
1044 - Access denied for user 'chirops0'@'localhost' to database 'information_schema'

How do i fix this?

All Services Provided by
Kyle Nelson
[/CENTER]
kylenelson24 is offline  
Unread 14th Aug 2013, 12:34 PM   #2
HyperActive Warrior
War Room Member
 
bapparabi's Avatar
 
Join Date: 2008
Posts: 366
Thanks: 20
Thanked 90 Times in 57 Posts
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

can you provide detail info like database so i can test it ..in local machine and tell you the solution

bapparabi is offline  
Unread 14th Aug 2013, 12:51 PM   #3
Code Painter
War Room Member
 
saxatwork's Avatar
 
Join Date: 2008
Location: Bangalore, India.
Posts: 124
Thanks: 152
Thanked 31 Times in 27 Posts
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

Kyle,

If you have downloaded the entire database, you may not be able to upload them to the new one because it would also include some of the system databases. INFORMATION_SCHEMA is one of them, and is related to the MySQL setup on your old host.

What you need to do is open up PHPMyAdmin (if you have it in your old setup), choose Export, select the databases that you want and download them as a SQL file. New host means new databases and users will need to be created and . Then you could come back to your new host and upload them. If you are using cPanel on a shared host, then you would have to create the databases and users individually, and upload the data for each of them separately. For dedicated hosts you would have much more control and should be able to upload the SQL file directly.

"Be Still Like A Mountain And Flow Like A Great River"
saxatwork is offline  
Unread 14th Aug 2013, 12:58 PM   #4
HyperActive Warrior
War Room Member
 
peteJ's Avatar
 
Join Date: 2010
Posts: 179
Thanks: 17
Thanked 23 Times in 19 Posts
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

Sounds like one of two problems.

Either your trying to copy an entire database into a database which already includes ones of the same name your trying to copy.

Or, it may be whatever code your trying to run has invalid credentials.

Full Service Web Development and Small Business Marketing - Total Web Connections
peteJ is offline  
Unread 14th Aug 2013, 03:54 PM   #5
Warrior Member
War Room Member
 
Join Date: 2013
Location: Romania
Posts: 25
Thanks: 5
Thanked 19 Times in 12 Posts
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

If you use cPanel you can allow from there a particular user to access the required database, but looks that you are uploading in the wrong one. If you can send me the login details, I can fix it for you .

SendinBlue.com - Send 350,000 emails / month for $175
ineagu is offline  
Unread 14th Aug 2013, 03:59 PM   #6
www.veerotech.net
War Room Member
 
Kingfish85's Avatar
 
Join Date: 2011
Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

Originally Posted by ineagu View Post

If you use cPanel you can allow from there a particular user to access the required database, but looks that you are uploading in the wrong one. If you can send me the login details, I can fix it for you .
^This. You're not importing into the correct database. I'd recommend contacting your web host - they should be able to either do it for you quickly or explain what you need to do.

|~| VeeroTech Hosting - sales @ veerotech.net
|~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
|~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
|~| Visit us @veerotech Facebook - Twitter - LinkedIn
Kingfish85 is offline  
Unread 14th Aug 2013, 04:05 PM   #7
ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ
War Room Member
 
RobinInTexas's Avatar
 
Join Date: 2008
Location: Texas
Posts: 2,138
Thanks: 243
Thanked 453 Times in 382 Posts
Blog Entries: 3
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

If you have access to the site on the old host it would be better to use one of the free transfer plugins to do the job.

I use xcloner. That would get around your problem and do the whole job in about 10 minutes.

Robin


...Even if you're on the right track, you'll get run over if you just set there.
RobinInTexas is offline  
Unread 14th Aug 2013, 04:11 PM   #8
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

Originally Posted by kylenelson24 View Post

I am trying to transfer a site that I bought. It comes from a different host. I made a new data base and tried to upload the sql file. I get this error.
Error SQL query:
--
-- Database: information_schema

CREATE DATABASE information_schema DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
MySQL said: Documentation
1044 - Access denied for user 'chirops0'@'localhost' to database 'information_schema'

How do i fix this?
I'm going to assume that you're importing this sql file using phpMyAdmin and not the command line. Either way, you're probably on a host that doesn't allow you to run the CREATE DATABASE command like that. You probably don't have privileges to do that.

If that's the case (that you can't create a database using raw MySQL syntax from a file), as it likely is if you're using most shared hosting providers, then you'll probably need to create the database first using cPanel.

Once you've created your database, then edit your SQL file to omit the line with the CREATE DATABASE command. Then load the SQL in the file using phpMyAdmin or whatever you're using.

I'm somewhat certain that was the problem. I could be wrong.

:)
mojojuju is offline  
Unread 14th Aug 2013, 06:20 PM   #9
www.veerotech.net
War Room Member
 
Kingfish85's Avatar
 
Join Date: 2011
Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

Originally Posted by mojojuju View Post

I'm going to assume that you're importing this sql file using phpMyAdmin and not the command line. Either way, you're probably on a host that doesn't allow you to run the CREATE DATABASE command like that. You probably don't have privileges to do that.

If that's the case (that you can't create a database using raw MySQL syntax from a file), as it likely is if you're using most shared hosting providers, then you'll probably need to create the database first using cPanel.

Once you've created your database, then edit your SQL file to omit the line with the CREATE DATABASE command. Then load the SQL in the file using phpMyAdmin or whatever you're using.

I'm somewhat certain that was the problem. I could be wrong.
INFORMATION_SCHEMA is the information database, the place that stores information about all the other databases. The OP is trying to import the database they have into the WRONG database. You need to select the newly created database and import into that one.

|~| VeeroTech Hosting - sales @ veerotech.net
|~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
|~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
|~| Visit us @veerotech Facebook - Twitter - LinkedIn
Kingfish85 is offline  
Unread 14th Aug 2013, 07:52 PM   #10
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: MySQL Wordpress transfer problem. Please HELP!
Share on: 
fb share twitter share gplus share more share

Originally Posted by Kingfish85 View Post

INFORMATION_SCHEMA is the information database, the place that stores information about all the other databases.
Okay, I didn't even notice the name of the database.

Originally Posted by Kingfish85 View Post

The OP is trying to import the database they have into the WRONG database. You need to select the newly created database and import into that one.
Well, yeah, but except that's not going to work for him because as long as his SQL file has the line CREATE DATABASE information_schema ..... then it doesn't matter which database he's trying to import into because he's essentially telling MySQL to create the information_schema database, and he doesn't have privileges to do that, so he's going to get the same error no matter what he does.

What seems to have happened is that the dude that gave him the Wordpress site didn't just dump the one database for the Wordpress site like he should have, but he just went into phpmyadmin and went to "Export" and then chose the "Quick" method which by default exports all the databases.

OP needs to edit his SQL file and remove the lines pertaining to the creation of the information_schema database, its tables, along with all the inserts. If he doesn't, he'll get the same Access denied error.

And as you mentioned, he's got to either create a database with the same name as the wordpress database in the SQL file, or edit his SQL file to match the name of his newly created database.

kylenelson24, you should ask the guy you got these sites from to give you an export that doesn't include the information_schema database. You might also find it easier if he gives you a SQL dump that doesn't include any CREATE DATABASE statement for the table since you need to create the database yourself.

:)
mojojuju is offline  
Closed Thread


Bookmarks

Tags
mysql, problem, transfer, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:58 AM.