#Step1: Create just databse in your phpMyAdmin
Ex: test_table.sql
#Step2: put sql databse file in bin folder
Ex: E:\wamp64\bin\mysql\mysql5.7.26\bin\DB\test_table.sql
# Open CMD
# Step3: Change the directory folder current directory to mysql bin directory.
C:\Users\kishanvk>CD E:\wamp64\bin\mysql\mysql5.7.26\bin ↲
C:\Users\kishanvk>E: ↲
E:\wamp64\bin\mysql\mysql5.7.26\bin>
# Step4: write below command line and in this cmd
E:\wamp64\bin\mysql\mysql5.7.26\bin>mysql -u [Username] -p [DBNAME] < DB\[DBNAME.sql] ↲
Ex: E:\wamp64\bin\mysql\mysql5.7.26\bin>mysql -u root -p test_table < DB\test_table.sql ↲
# Step5: Enter password
Enter password:***** ↲
# Step6: You can see imported database in your phpMyAdmin
No comments:
Post a Comment