简体   繁体   中英

Importing PHP My Admin database error

One of my customers asked me to update her Joomla website from 1.6 to 2.5

Becourse some files need editting for that to work i want to setup an test domain.

When i copied the PHPMyAdmin database file and imported it into my hosting pannel i get this error

SQL-query:



--
-- Databank: `information_schema`
--
CREATE DATABASE `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

MySQL meldt: Documentatie
#1044 - Access denied for user 'jurjen'@'localhost' to database 'information_schema' 

Does anyone know why im getting this error and how i can fix this ?

The database file im using is "localhost.sql"

The domain im using for the test area is jurjenfolkertsma.nl/willy

User jurjen'@'localhost don't have the access to information_schema. Add user to database in your admin panel or software like sqlYog but to be able to do that you need root privileges. Also I don't think you need to change information_schema table just transfer the joomla tables to your host

My guess is that you took a dump of all the databases on your customer's server. Probably what you want is to dump only the Joomla database and export the associated users. You can't create information_schema because it already exists and besides, it's not a standard database. It's internal to MySQL and you probably don't really want to modify it anyway.

You should do the dump again or edit your .sql file to only get the Joomla database. Then from the Users tab, you can click the Export button for whatever Joomla users exist (there might be one, there might be more than one; I'm not certain). That way, you can also import the proper user permissions. Create the user on your system, give them the same password, then import the permissions.

用户导出页面

SQL-query:

--
-- Databank: `information_schema`
--
CREATE DATABASE `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

MySQL meldt: Documentatie
#1044 - Access denied for user 'jurjen'@'localhost' to database 'information_schema' 

Hello I gone through your importing Database error. when you are importing Database just change database name using Notepad++ ..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM