Question: Im trying to create a database with MySQL and when trying to transfer in the data from the file, it is giving me an error.

Im trying to create a database with MySQL and when trying to transfer in the data from the file, it is giving me an error. * See the code and error below*

How do I correct this?

mysql> LOAD DATA INFILE 'C:\wamp64\www\PHP_Projects\PHP_Projects\Chapter.07\Projects\team_stats.txt'

-> INTO TABLE teamstats;

ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement mysql>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!