0

I'm trying to import a file into MariaDB on my WSL Subsystem on Windows, following this thread: https://stackoverflow.com/questions/17666249/how-to-import-an-sql-file-using-the-command-line-in-mysql

I have copied the .sql file to my home directory in WSL and hence my command looks like this:

$ mysql -u root -p sampledatabase < ~/databases/Datanmodell_init.sql

But I keep getting the following error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using 
password: YES)

What am I doing wrong?

merci A

aerioeus
  • 1,348
  • 1
  • 16
  • 41

0 Answers0