Jump to content

PHP to install DB


canadabeeau

Recommended Posts

How do I go about making PHP install to a MySQL DB the content in a .sql file?

 

I'm not sure what you're asking from your wording, but if you're wanting to import a .sql file into a database you'd use phpMyAdmin, or via command line:

mysql -p -h DBSERVER dbname < dbname.sql

 

I can list many ways, but It'd help to further explain yourself.

Link to comment
https://forums.phpfreaks.com/topic/188657-php-to-install-db/#findComment-995983
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.