早上登陆mysql,报错Ignoring query to other database。
重新登陆后发现正常了。对比二次的登陆语句发现第一次少写了一个u
正确的语句应该是:mysql -h localhost -u root -p