I was woring on a project last year, and was exporting and importing fine, but recently I decided to import my sql file and I cannot import due to lots of errors in each table.
I deleted xampp once I stopped working on it, and now decided to download it again, but am stuck on import, here is my full file:
My error is the following:
CREATE TABLE
company_type(company_type_idint(11) NOT NULL,company_typevarchar(50) NOT NULL,company_type_datedatetime NOT NULL DEFAULT CURRENT_TIMESTAMP,company_type_enabledvarchar(15) NOT NULL DEFAULT 'enabled' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 MySQL said: Documentation1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use
near '-----------------------------------------
CREATE TABLE
company_type( `comp' at line 1
But when I delete that, I get another error:
CREATE TABLE
employees(employees_idint(11) NOT NULL,employees_pageint(11) NOT NULL,employees_page_typevarchar(15) NOT NULL,employees_userint(11) NOT NULL,employees_datedatetime NOT NULL DEFAULT CURRENT_TIMESTAMP,employees_managevarchar(15) NOT NULL DEFAULT 'sent' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 MySQL said: Documentation1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use
near '-----------------------------------------
------------------------------------' at line 1
How can I fix this? I have ran the sql through checkers online, and it state'sthe sql is fine.