MySQL 8.4 · Connecting
Run a SQL file
Execute the statements in a file against a database.
mysql -u root -p mydb < script.sql
Official MySQL 8.4 documentation
MySQL 8.4 · Connecting
Execute the statements in a file against a database.
mysql -u root -p mydb < script.sql
Official MySQL 8.4 documentation
Was this page helpful?