I have installed XAMPP. In this I made a database via PhpMyadmin.
How can I upload a SQL file to the database?
I have installed XAMPP. In this I made a database via PhpMyadmin.
How can I upload a SQL file to the database?
Follow the setps to upload your sql file to database.
http://localhost/phpmyadmin
.Database
which you want to upload the SQL
file. (If no DB , create new database).Please check the screenshots for your reference.
Try It... This will helps you....
In your mysql console you have to type this command :
mysql> use YourDataBaseName
mysql> source YourFile.sql
or in your console type :
mysql -u root -p [YourPassword] [YourDataBaseName < YourFile.sql
For more information you can visit: http://www.cyberciti.biz/faq/import-mysql-dumpfile-sql-datafile-into-my-database/
In phpmyadmin choose import in the top menu and open your sql file from that page