You are here: Re: [PHP] novice: how to run .sql script from php? « PHP « IT news, forums, messages
Re: [PHP] novice: how to run .sql script from php?

Posted by Marek Kilimajer on 11/26/19 11:17

tony yau wrote:
> I realised that there is a fundamental problem with using mysql_query( ...)
> to run a .sql script to setup a database, and that was the database needs to
> be there in the first place for php to connect to! also there was a lot of
> comment lines in the script that was causing problem. ... so I gave up
> trying to parse the file.
>
> instead I did this
> 1) create the database with phpmyadmin etc

so you have phpmyadmin installed. good. now while you have the database
selected,

2) click the SQL (it's in the toolbar in the right frame)
3) click "Browse..." button, find the .sql file, click OK
4) click the bottom "Go" button, wait and relax

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация