| | #1 |
| HyperActive Warrior War Room Member Join Date: 2010 Location: California
Posts: 268
Thanks: 37
Thanked 24 Times in 24 Posts
|
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? |
| | |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2008
Posts: 366
Thanks: 20
Thanked 90 Times in 57 Posts
|
can you provide detail info like database so i can test it ..in local machine and tell you the solution
|
| | |
| |
| | #3 |
| Code Painter War Room Member Join Date: 2008 Location: Bangalore, India.
Posts: 124
Thanks: 152
Thanked 31 Times in 27 Posts
|
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"
| |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2010
Posts: 179
Thanks: 17
Thanked 23 Times in 19 Posts
|
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 | |
| |
| | #5 |
| Warrior Member War Room Member Join Date: 2013 Location: Romania
Posts: 25
Thanks: 5
Thanked 19 Times in 12 Posts
|
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
| |
| |
| | #6 |
| www.veerotech.net War Room Member Join Date: 2011 Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2 |
^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 | |
| |
| | #7 |
| ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ War Room Member Join Date: 2008 Location: Texas
Posts: 2,138
Thanks: 243
Thanked 453 Times in 382 Posts
Blog Entries: 3 |
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 | |
| |
| | #8 | |
| VIP Warrior Join Date: 2005 Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
|
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. | |
|
:)
| ||
| |
| | #9 | |
| www.veerotech.net War Room Member Join Date: 2011 Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2 |
| |
|
|~| 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 | ||
| |
| | #10 | ||
| VIP Warrior Join Date: 2005 Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
|
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. | ||
|
:)
| |||
| |
|
| Bookmarks |
| Tags |
| mysql, problem, transfer, wordpress |
| |