Access denied for user root localhost mysql. Catch (exception $e) { throw new queryexception( $query, $this->preparebindings($bindings), $e ); }. access denied level 8.