我将 mysql的general_log_file变量的值更改为其他内容,现在我正在尝试将其更改回原来的变量/var/lib/mysql/ubuntu.log.但当我这样做时:

SET GLOBAL general_log_file = '/var/lib/msyql/ubuntu.log';

我收到此错误:

ERROR 1231 (42000): Variable ‘general_log_file’ can’t be set to the
value of ‘/var/lib/msyql/ubuntu.log’

这是怎么回事?

ERROR 1231 (42000): Variable 'general_log_file' can't be set to the
value of '/var/lib/msyql/ubuntu.log'

What’s going on?

简单的答案是这个文件不存在.

你打字太快了.文件名中有拼写错误,应该是/var/lib/mysql/ubuntu.log.