How do I run a SQL script in Linux terminal?

How do I run a SQL script in Linux terminal?
Answer
Open Terminal and type
mysql -u to Open the MySQL command line. Type the path of your mysql bin directory and press Enter. Paste your SQL file inside the bin folder of mysql server. Create a database in MySQL.
 

Tìm kiếm

Back
Top