当我试图将我的Laravel项目连接到Mysql数据库时,就像;
APP_ENV=production
DB_HOST=160.153.16.56:3306
DB_USERNAME=ozanozanozan
DB_DATABASE=software_db
DB_PASSWORD=ozanvolkan1我运行php Artisan迁移程序,
我看到了这样的警告:

发布于 2015-12-21 18:07:13
检查您的数据库权限。首先,确保数据库中存在用户“ozanozanozan”@‘88.246.41.148’,
SELECT User,Host FROM mysql.user WHERE User = 'ozanozanozan';
// This will show all of the hosts that user can connect from并确保用户能够访问software_db数据库。
SHOW GRANTS FOR 'ozanozanozan'@'88.246.41.148';https://stackoverflow.com/questions/34401631
复制相似问题