Php 指定为定义器(';mysql.infoschema';@';localhost';)的用户不存在-第一个Laravel项目

Php 指定为定义器(';mysql.infoschema';@';localhost';)的用户不存在-第一个Laravel项目,php,mysql,laravel,Php,Mysql,Laravel,我想学一点语言,但我遇到了一些麻烦。 如果我跑的话,从终点站 msql > SHOW DATABASES; 我得到这个错误 The user specified as a definer ('mysql.infoschema'@'localhost') does not exist 谷歌搜索了几个小时——什么都试过了。论坛上的共同决心是 mysql_upgrade -uroot 然而,这会抛出错误 The mysql_upgrade client is now deprecated.

我想学一点语言,但我遇到了一些麻烦。 如果我跑的话,从终点站

msql > SHOW DATABASES;
我得到这个错误

The user specified as a definer ('mysql.infoschema'@'localhost') does not exist
谷歌搜索了几个小时——什么都试过了。论坛上的共同决心是

mysql_upgrade -uroot
然而,这会抛出错误

The mysql_upgrade client is now deprecated. The actions executed by the upgrade client are now done by the server.
To upgrade, please start the new MySQL binary with the older data directory. Repairing user tables is done automatically. Restart is not required after upgrade.
The upgrade process automatically starts on running a new MySQL binary with an older data directory. To avoid accidental upgrades, please use the --upgrade=NONE option with the MySQL binary. The option --upgrade=FORCE is also provided to run the server upgrade sequence on demand.
It may be possible that the server upgrade fails due to a number of reasons. In that case, the upgrade sequence will run again during the next MySQL server start. If the server upgrade fails repeatedly, the server can be started with the --upgrade=MINIMAL option to start the server without executing the upgrade sequence, thus allowing users to manually rectify the problem.
I’m on macOS High Sierra v 10.13.6.  I installed mysql via homebrew.
There’s some fundamental database error and I can’t migrate the database because of this or really do anything in the setup tutorials.
我认为现在无论如何都不需要做mysql\u升级

我在macOS High Sierra v 10.13.6上

我通过自制安装了mysql


出现一些基本的数据库错误,因此我无法迁移数据库,也无法在安装教程中执行任何操作。

for me works dump用户再次创建数据库

创建用户:

mysql>创建由“密码”标识的用户“mysql.infoschema”@“localhost”; 查询正常,0行受影响(0.00秒)

授予权限:

mysql>授权选择打开。到
mysql.infoschema
@
localhost

查询正常,0行受影响,1条警告(0.00秒)

对于me works转储,用户anc再次创建它

创建用户:

mysql>创建由“密码”标识的用户“mysql.infoschema”@“localhost”; 查询正常,0行受影响(0.00秒)

授予权限:

mysql>授权选择打开。到
mysql.infoschema
@
localhost
; 查询正常,0行受影响,1条警告(0.00秒)