PHP Fatal error: Uncaught think\exception\ErrorException: mkdir(): Permission denied in C:\inetpub\wwwroot\thinkphp\library\think\log\driver\File.php:50
Stack trace:
#0 [internal function]: think\Error::appError(2, 'mkdir(): Permis...', 'C:\\inetpub\\wwwr...', 50, Array)
#1 C:\inetpub\wwwroot\thinkphp\library\think\log\driver\File.php(50): mkdir('C:\\inetpub\\wwwr...', 493, true)
#2 C:\inetpub\wwwroot\thinkphp\library\think\Log.php(157): think\log\driver\File->save(Array)
#3 C:\inetpub\wwwroot\thinkphp\library\think\Error.php(84): think\Log::save()
#4 [internal function]: think\Error::appShutdown()
#5 {main}
thrown in C:\inetpub\wwwroot\thinkphp\library\think\log\driver\File.php on line 50
这到底是什么东西? C:\inetpub 这个权限貌似改不了怎么搞?
Stack trace:
#0 [internal function]: think\Error::appError(2, 'mkdir(): Permis...', 'C:\\inetpub\\wwwr...', 50, Array)
#1 C:\inetpub\wwwroot\thinkphp\library\think\log\driver\File.php(50): mkdir('C:\\inetpub\\wwwr...', 493, true)
#2 C:\inetpub\wwwroot\thinkphp\library\think\Log.php(157): think\log\driver\File->save(Array)
#3 C:\inetpub\wwwroot\thinkphp\library\think\Error.php(84): think\Log::save()
#4 [internal function]: think\Error::appShutdown()
#5 {main}
thrown in C:\inetpub\wwwroot\thinkphp\library\think\log\driver\File.php on line 50
这到底是什么东西? C:\inetpub 这个权限貌似改不了怎么搞?
然后你创建文件夹的时候也加上权限 mkdir('dirName', 0777)
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
这个是怎么回事?
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
这个是怎么回事?
这个是数据库你的root用户禁止了登陆 一般都是新搭建好的环境才会出现 如果用到[email protected] 同样也会出现这个问题
你看看这个文章https://www.cnblogs.com/qq78292959/p/3641972.html