PySpark - JDBC Syntax Error

Hi Team,

I am trying to connect to Mysql using pyspark to execute one simple program . But it is throwing error as below . Can you please help since I verified multiple times Syntax is good.

pyspark --driver-class-path /usr/share/java/mysql-connector-java.jar
File “”, line 1
pyspark --driver-class-path /usr/share/java/mysql-connector-java.jar
^
SyntaxError: invalid syntax