我想使用以下代码安装MySQL并在其上创建数据库:
sudo apt-get install mysql-server
mysqladmin -h localhost -u {username} -p create lrs
执行第二行后,我得到以下消息:
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user '{username}'@'localhost' (using password: YES)'
问题是什么?