Reputation: 51
I have installed XAMPP. In this I made a database via PhpMyadmin.
How can I upload a SQL file to the database?
Upvotes: 3
Views: 45065
Reputation: 309
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/
Upvotes: 6
Reputation: 1075
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....
Upvotes: 10
Reputation: 3157
In phpmyadmin choose import in the top menu and open your sql file from that page
Upvotes: 1