Χρησιμοποιήστε το εξής:
1
|
mysql –u database_username –p database_name < database_file.sql
|
If your database has errors and you want to import it anyway, use the –force (-f) flag. Rather than stopping on the offending statement, MySQL will continue and just log the errors to the console:
Εάν η βάση δεδομένων σας έχει errors και θέλετε να κάνετε εισαγωγή ούτως ή άλλως, χρησιμοποιήστε τη σημαία –force (-f). Αντί να σταματήσει το προβληματικό statement ή MySQL θα συνεχίσει και θα κάνει log στα error στην κονσόλα.
1
|
mysql –u database_username –p –f –D database_name < database_file.sql
|