所以我在我的 Laravel 文件夹上使用我的 cmd 并且我尝试这样做(php artisan migrate:install).出现了 2 个错误.
So I am using my cmd on my laravel folder and I tried to do (php artisan migrate:install). 2 errors came up.
[PDOException] SQLSTATE[HY000] [2006] MySQL 服务器消失了
[PDOException] SQLSTATE[HY000] [2006] MySQL server has gone away
[ErrorException] PDO::__construct(): MySQL 服务器已经消失
[ErrorException] PDO::__construct(): MySQL server has gone away
谁能解释一下我做错了什么?
Can anyone please explain what I did wrong?
这不是 Laravel 的问题,而是一个普遍的 MySQL 问题.可能服务器没有运行.你确定你在后台运行 MySQL 吗?
This is not a Laravel issue, but a general MySQL Issue. Maybe the server is not running. Are you sure you're running MySQL in the background?
检查这个链接:MySQL消失了
在您的系统中执行以下检查:
Do the following checks in your system:
此后,再次尝试运行迁移命令,即:
After this, try to run the migrations command again, which is:
php artisan migrate
如此处所述
让我们知道这是否有帮助:).
Let us know if that helps :).
这篇关于mysql 服务器在安装迁移过程中消失了错误 (laravel)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
MySQLi准备好的语句&foreach 循环MySQLi prepared statement amp; foreach loop(MySQLi准备好的语句amp;foreach 循环)
mysqli_insert_id() 是从整个服务器还是从同一用户获Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是从整个服务器还是从同一用户获取记录?)
PHP MySQLi 无法识别登录信息PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 无法识别登录信息)
mysqli_select_db() 需要 2 个参数mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 个参数)
Php mysql pdo 查询:用查询结果填充变量Php mysql pdo query: fill up variable with query result(Php mysql pdo 查询:用查询结果填充变量)
MySQLI 28000/1045 用户“root"@“localhost"的访问MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用户“root@“localhost的访问被拒绝)