CREATE TABLE student
(
student_id INT PRIMARY KEY,
nam VARCHAR (20),
major VARCHAR (20)
);
I'm just running this code and I keep getting a permission denied for schema public message. What does this mean and how can I fix it.?
CREATE TABLE student
(
student_id INT PRIMARY KEY,
nam VARCHAR (20),
major VARCHAR (20)
);
I'm just running this code and I keep getting a permission denied for schema public message. What does this mean and how can I fix it.?
I see you are asking this in reference to the freeCodeCamp's SQL course by the looks of it.
You need to create your own database and you should be good to go, see the steps below:
CREATE DATABASE TestDB
Test connection, if successful, save.
Also, please note this is working on MySQL Server 5.7.20, it may be different on other versions.
Please make sure you are using the right database, in the popSQL the "PopSQL Sample Data" database is selected by default.
you can change it as mentioned below
It means you are using POPsql sample data. Click on manage connections and add a connection to your own database.
You need to add your own new connection instead of running it on POPsql sample data private connection
just delete the other sample server from the list of connections and add your own.
I see you are asking this in reference to the freeCodeCamp's SQL course as the same with me, what you really need to do is make sure you follow all of his instructions and after that make sure you change the connection to MySQL after add the new connections.