Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just installed phpmyadmin on a Windows 2008 Sever with IIS installed and I want to important a database which I have created on my own machine onto this server within phpmyadmin.

When I try do so I get an error message

File could not be read

I have read this may be due to the open_basedir within php.ini

I have changed open_basedir to open_basedir = D:\inetpub and then placed the file into the inetpub folder but I am still getting the same error message.

Anyone know where I am going wrong?

share|improve this question
up vote 2 down vote accepted

see this article.

I don't know why that works but seemed to help that case. My answer to you is don't use phpmyadmin as a crutch. You should at least learn the basic mysql syntax to import your database from the command line.

share|improve this answer
thanks very much – user1132612 Feb 7 '12 at 15:53
+1 for "don't use phpmyadmin as a crutch" – dunxd Mar 16 '12 at 12:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.