permissions安装后出现Access denied for user 'forge'@'localhost' - 小众知识

permissions安装后出现Access denied for user 'forge'@'localhost'

2013年01月27日 14:18:05 苏内容
  标签: Access/MySQL
阅读:7328

After upgrading to Laravel 5.2, none of my .env file values are being read. I followed the upgrade instructions; none of my config files were changed except auth.php. They were all working fine in previous version, 5.1.19


.env contains values such as


DB_DATABASE=mydb

DB_USERNAME=myuser

config/database.php contains


'mysql' => [

    'database' => env('DB_DATABASE', 'forge'),

    'username' => env('DB_USERNAME', 'forge'),

]

I get this error:


PDOException: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)

Clearly not pulling in my env config. This is affecting every single one of my config files, including third party such as bugsnag.


I also tried


php artisan config:clear

php artisan cache:clear

Update


Trying php artisan tinker


>>> env('DB_DATABASE')

=> null

>>> getenv('DB_DATABASE')

=> false

>>> config('database.connections.mysql.database')

=> "forge"

>>> dd($_ENV)

[]

I have tried installing a fresh copy of Laravel 5.2. I basically only copied in my "app" folder; no additional composer packages are included. Still having the same issue. I have other Laravel 5.2 projects on the same server that are working fine.


小众安装权限验证之后出现以上问题

这是由于.env配置没有完全更新的缘故,使用以下命令即可,小众使用的是php artisan config:cache

php artisan config:cache 

php artisan config:clear 

扩展阅读

Suese

2018-03-12 17:47:10

Useful advice. Thanks a lot. commander cialis sur le net <a href="http://cialisfidel.com/">cialis generic</a> cialis 24 year old <a href=http://cialisfidel.com/>cialis generic</a>

Suese

2018-03-13 11:11:18

Whoa all kinds of excellent tips. cialis and warfarin interaction <a href="http://cialisfidel.com/">cialis generic</a> cialis funciona yahoo <a href=http://cialisfidel.com/>buy cialis online</a>

Suese

2018-03-13 12:42:51

Appreciate it, Quite a lot of facts! forzest vs cialis <a href="http://cialisfidel.com/">cialis generic</a> cialis vs viagra strength <a href=http://cialisfidel.com/>cialis without a doctor prescription</a>

Suese

2018-03-14 05:30:39

Useful info. Thanks a lot. cialis hipertensao arterial <a href="http://cialisfidel.com/">coupon cialis</a> cialis ja muut lääkkeet <a href=http://cialisfidel.com/>generic cialis</a>

Suese

2018-03-24 09:47:20

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can break any antibot protection. Captcha Solution Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo, Yandex, VKontakte, Captcha Com - and over 8400 other types! You read this - it means it works! ;) Details on the official website of XEvil, there is a free demo version. Check YouTube video "XEvil ReCaptcha2"

Suese

2018-03-24 16:17:39

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can break almost any antibot captcha. Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo, Yandex, VKontakte, Captcha Com - and over 8400 other types! You read this - it means it works! ;) Details on the official website of XEvil, there is a free demo version. Check YouTube video "XEvil ReCaptcha2"

Suese

2018-03-24 19:37:14

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can solve almost any anti-bot CAPTCHA's. Captcha Bypass Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo, Yandex, VKontakte, Captcha Com - and over 8400 other types! You read this - it means it works! ;) Details on the official website of XEvil, there is a free demo version. Check YouTube video "XEvil ReCaptcha2"

Suese

2018-04-13 21:51:43

splitting levitra 20mg <a href="http://myvardenafilok.com#">levitra rezeptfrei deutschland</a> viagra cialis oder levitra vs viagra <a href=http://mylevitraok.com#levitra+online>buy levitra</a> levitra cijena bihari

Suese

2018-04-14 06:07:17

levitra schwimmschule bremerhaven <a href="http://myvardenafilok.com#">levitra prices</a> ovet the counter levitra <a href=http://mylevitraok.com#levitra+generic>levitra prices</a> levitra antiguo testamento biblia

Suese

2018-04-14 14:38:49

efek samping viagra cialis levitra <a href="http://mylevitraok.com#">generic levitra</a> levitra bahtera pratama ptt <a href=http://myvardenafilok.com#levitra+prices>vardenafil 20mg</a> taking cialis and levitra together

Suese

2018-04-15 00:33:22

levitra magnetics international est <a href="http://myvardenafilok.com#">levitra rezeptfrei deutschland</a> levitra house nw18 <a href=http://myvardenafilok.com#levitra+20+mg+bayer+prezzo>levitra rezeptfrei deutschland</a> site o levitra flavio insinna

Suese

2018-04-15 10:51:43

levitra professional canadian <a href="http://mylevitraok.com#">levitra 10 mg prezzo</a> levitra 40 mg kaufen auf <a href=http://mylevitraok.com#buy+levitra>levitra 10 mg prezzo</a> penny levitra side

Suese

2018-04-15 11:30:42

cena rubla levitra <a href="http://myvardenafilok.com#">levitra generic</a> os levitra 2014 corvette <a href=http://myvardenafilok.com#levitra+generic>levitra online</a> levitra online kaufen paypal prepaid

Suese

2018-04-15 12:28:57

levitra 20mg information en espanol <a href="http://mylevitraok.com#">levitra 10 mg prezzo</a> levitra daeyang gallery <a href=http://myvardenafilok.com#levitra+generic>vardenafil 20mg</a> levitra 20 mg nedir

Suese

2018-04-15 20:33:00

levitra dosierung vitamin <a href="http://myvardenafilok.com#">levitra generic</a> levitra thayna cardoso driving school <a href=http://myvardenafilok.com#levitra+20mg>levitra 20mg</a> ohad levitra omonoia ac

Suese

2018-04-15 21:20:13

robin de levitra imagination movers <a href="http://mylevitraok.com#">levitra prices</a> levitra 10mg orodispersible prix fixe <a href=http://myvardenafilok.com#vardenafil+20mg>levitra 20 mg bayer prezzo</a> levitra e levitinha download movies

Suese

2018-04-15 22:22:07

effects of levitra <a href="http://mylevitraok.com#">levitra 20 mg bayer prezzo</a> gleizer levitra <a href=http://myvardenafilok.com#vardenafil+20mg>levitra 20 mg</a> audrey levitra online

Suese

2018-04-18 20:10:27

corredor de forex de capital de icm <a href="http://best-platform-binary-options-try.pw/jobs-in-trading-companies-8927.php#">tanja dubois tradersonline brokerage firmware</a> forex mia pip <a href=http://best-platform-try-options-binary.pw/der-handel-mit-binaren-optionen-signales-9944.php>apa yg dimaksud dgn binomial nomenklatur</a>

Suese

2018-04-19 09:46:55

research levitra <a href="http://levitra-gg.com">levitra rezeptfrei deutschland</a> cd o levitra flavio almeida <a href=http://myvardenafilok.com#levitra+rezeptfrei+deutschland>buy levitra</a>

Suese

2018-04-19 17:58:09

splitting levitra 20mg <a href="http://myvardenafilok.com">levitra coupon</a> levitra orodispersibile fa male agli <a href=http://mylevitraok.com#levitra+coupon>levitra prices</a>

Suese

2018-04-19 21:41:36

levitra link spammers.chongqed.org <a href="http://myvardenafilok.com">levitra 20 mg</a> cialis dish levitra viagra visit zyban <a href=http://levitra-gg.com#generic+levitra>levitra generic</a>

Suese

2018-04-20 01:30:39

enterprise levitra rouen relative crossword <a href="http://myvardenafilok.com">levitra online</a> generico levitra brasilia <a href=http://mylevitraok.com#levitra+online>levitra prices</a>

Suese

2018-04-20 05:14:00

viagra levitra ou cialis qual melhor tablet <a href="http://levitra-gg.com">levitra coupon</a> levitra commercial 2012 honda <a href=http://myvardenafilok.com#levitra+generic>levitra rezeptfrei deutschland</a>

Suese

2018-04-20 09:11:45

comparison levitra price <a href="http://mylevitraok.com">levitra 20 mg bayer prezzo</a> levitra spagnolo restaurant <a href=http://mylevitraok.com#levitra+20+mg+bayer+prezzo>levitra coupon</a>

Suese

2018-04-20 13:10:44

levitra 10 mg filmtabletten preisvergleich schweiz <a href="http://mylevitraok.com">vardenafil 20mg</a> disfuncion erectil tratamiento levitra <a href=http://levitra-gg.com#levitra+online>levitra rezeptfrei deutschland</a>

Suese

2018-04-20 17:05:29

dreampharmaceuticalscom levitra online order <a href="http://levitra-gg.com">levitra 10 mg prezzo</a> buy cheap levitra link online.move.to <a href=http://levitra-gg.com#levitra+20+mg>levitra 10 mg prezzo</a>

Suese

2018-04-20 19:42:28

levitra for sale in us <a href="http://mylevitraok.com">levitra 20 mg bayer prezzo</a> levitra forum salute ginecologia <a href=http://levitra-gg.com#levitra+rezeptfrei+deutschland>levitra 20mg</a>

Suese

2018-04-20 23:21:04

levitra coupon bayer <a href="http://mylevitraok.com">levitra 20 mg</a> levitra house nw13 <a href=http://myvardenafilok.com#levitra+20mg>levitra 10 mg prezzo</a>

Suese

2018-04-21 02:39:44

viagra levitra inhibit ejaculation <a href="http://mylevitraok.com">levitra 20 mg bayer prezzo</a> el mago dynamo levitra por londres angleterre <a href=http://myvardenafilok.com#levitra+generic>levitra generic</a>

Suese

2018-04-21 06:02:06

taking levitra with effexor xr <a href="http://levitra-gg.com">levitra 20 mg</a> levitra ldl <a href=http://mylevitraok.com#buy+levitra>levitra 20 mg</a>

相关阅读