变量 'general_log_file' 不能设置为 '/var/lib/msyql/ubuntu.log' 的值

Xåp*_* - 12 mysql linux ubuntu mysql5.5

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

SET GLOBAL general_log_file = '/var/lib/msyql/ubuntu.log';
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

错误 1231 (42000):变量 'general_log_file' 不能设置为 '/var/lib/msyql/ubuntu.log' 的值

这是怎么回事?

qua*_*nta 24

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

这是怎么回事?

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

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