报错:
mysql>update mysql.user set authentication_string=password('neo666666') where user=r='root' and host='localhost'; #开始报错
ERROR 1146 (42S02): Table 'mysql.user' doesn't exist #错误日志查看mysql> flush privileges;
ERROR 1146 (42S02): Table 'mysql.user' doesn't exist
一次源码新装的mysql,由于没有复制my-default.cnf到/etc/my.cnf位置,在启动mysql的时候碰到了无法打开mysql.user表的错误。具体错误为:[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist。下面是该错误的描述及其解决办法。