I want to use this script:
-- De drop table if exists zorgt ervoor als tabellen die later in dit script
worden aangemaakt al bestaan, dat deze worden verwijderd.
drop table if exists Oligos;
drop table if exists Genen;
-- In de table Genen wordt de tabel Genen aangemaakt. Ook staat hier in welke
waardes worden geaccepteerd in elke kolom.
create table Genen
(gen_id int not null unique,
chromosoom int null,
sequentie text not null,
primary key(gen_id)
);
-- In de table Oligos wordt de tabel Oligos aangemaakt. Ook staat hier in welke
waardes worden geaccepteerd in elke kolom.
create Table Oligos
(oligo_id int auto_increment,
gen int null,
sequentie text not null,
startpositie int not null,
stoppositie int not null,
smeltpunt float not null,
valide_probe boolean null,
foreign key(gen) references Genen(gen_id),
primary key(oligo_id)
);
LOAD DATA INFILE 'test.csv'
INTO TABLE Genen FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n' (gen_id, chromosoom, sequentie);
Within test.csv I have 2 simple lines for testing purposes:
323;4;skdjksdjkk
123;4;jknfrkfn
This is my command:
$ mysql --local-infile=1 -u rnieuwenhuis -D Rnieuwenhuis -p < Plasmodium_falciparum.sql
and the error it returns is:
ERROR 1045 (28000) at line 25: Access denied for user 'rnieuwenhuis'@'%' (using password: YES)
I can't find out what causes this. Line 25 is LOAD DATA line. The mysql help page for acces denied leaves so much possibilities. But maybe you guys know what is most often the cause of this.
CREATEthat is missing.