note 54678 added to ref.mysql
| From: | dana at osu1 dot php dot net | Date: | Tue, 12 Jul 2005 15:23:03 +0000 |
| Subject: | note 54678 added to ref.mysql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91818@lists.php.net to get a copy of this message | ||
I'm trying to run a mysql script file through mysql_query command.
The script file contains the create table, alter table commands for my database.
$result=mysql_query("source file.sql");
But it's not creating the database.
Any suggestions on how to do that?
Thanks
----
Manual Page -- http://www.php.net/manual/en/ref.mysql.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54678
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54678&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54678&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54678&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54678&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54678&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54678&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54678&report=yes
Search -- http://master.php.net/manage/user-notes.php