almr27
almr27

Reputation: 53

Why is there an error with the source command in MySQL

I'm trying to add the employee sample database for practicing with MySQL however there's an error since there's a source command and from what I've found it says that MySQL doesn't support this command anymore.

So, how could I add the complete database without any error?

[this is the code line where the source command is called]

1

Upvotes: 0

Views: 756

Answers (1)

Bill Karwin
Bill Karwin

Reputation: 562280

SOURCE is one of the mysql client builtin commands. These are recognized by the mysql client, but not by the MySQL Server's SQL parser.

See https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html

Upvotes: 1

Related Questions