Laravel身份验证迁移错误SQLSTATE [HY000] [1045]用户'zulkufad_user'@'localhost'的访问被拒绝(使用密码:是)(SQL:从information_schema.tables中选择*,其中table_schema = zulkuf
ad_db和table_name =迁移)
我无法在托管上使用命令行。如何解决此错误,或者我可以在会话中使用身份验证?
chart_element = driver.find_element_by_xpath(
"//*[name()='g' and @class='highcharts-series-group']//*[name()='rect']")
ActionChains(driver).click(chart_element).perform()
php artisan make:migrate 这是我的.env
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->string('picture');
$table->integer('status');
$table->integer('level');
$table->string('description');
$table->string('phone');
$table->dateTime('register_date');
$table->dateTime('login_date');
$table->dateTime('last_seen');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}
答案 0 :(得分:0)
此错误可能是由以下任何原因引起的:
.env
文件不存在(并且您没有使用系统/服务器环境变量)