hoq to import database source 1

hoq to import database source

 mysql> use db_name;
 mysql> source file_name.sql;

Here is what the above code is Doing:
1. Connect to the database
2. Create a cursor object
3. Execute the SQL query
4. Commit the changes to the database
5. Close the database connection

Similar Posts