I am using the following function in class implementation to insert values username_s , ipadress_s, and so on MYSQL database with column username , ipadress and so on but I keep getting the following error
mysql.connector.errors.ProgrammingError: 1054 (42S22): Unknown column 'username_s' in 'field list'
The confusion is the interchange of column names with the column values
def insert_server(self , username_s , ipadress_s , BLACKLISTED_s , clientid_s):
self.connect.database = self.m_database
self.cursor.execute(
"INSERT INTO server"
" ( username , ipadress , blacklisted , clientid )"
"VALUES ( username_s , ip_adress_s , BLACKLISTED_s , clientid_s)")