When I install shuguang cms to a VM, Accessdeniedforuser & # x27; root & # x27 ;@&# x27; localhost & # x27; Sugon cms & nbsp; the installation program in Install under the project folder must be used when thinkphp-based installation program is used to Access the virtual host; otherwise, the installation fails. Access & nbsp; denied & nbsp; for & when I install shuguang cms to a VM, Access denied for user 'root' @ 'localhost' is reported'
Sugon cms is based on thinkphp
When installing programs to a VM, you need to use the installation programs in Install under the project folder.
Otherwise, the installation fails.
Access denied for user 'root' @ 'localhost' (using password: YES)
An error occurred while checking the database configuration.
However, I checked the database account and password in database. inc. php all over and over again.
Hope to help solve Cainiao problems
------ Best solution --------------------
The root user is not found due to configuration issues.
It proves that the root user area was used for login, but now the administrator account has been changed, and the root user cannot be used for login again.
Check whether there is a cache problem.
------ Other solutions --------------------
Log on to the database and run the following command:
Grant all on *. * to 'root' @ 'localhost'
------ Other solutions --------------------
The root user is also denied access, which is amazing. have you modified the root permission?
------ Other solutions --------------------
I have no root permission for renting other hosts, and only have one database management account and password.
Only the host administrator has the root permission.
------ Other solutions --------------------
There is no problem with the program on your machine. The php environment on your machine is built with phpnow, and the root permission of mysql is used.
However, the root permission is not assigned to another host, and the administrator's account and password are used.
During installation, the account and password provided by the administrator are used.
The program cannot run and reports
System error
You can select [retry] [return] or [return to homepage]
[Error message]
Access denied for user 'root' @ 'localhost' (using password: YES)
I don't know what went wrong.
Same virtual host management system used
------ Other solutions --------------------
Can I log on to the database? Or phpmyadmin
If you can execute the first-floor command grant all on *. * to 'root' @ 'localhost'
If the command fails to be executed, only the administrator of the space can solve the problem.
------ Other solutions --------------------
Thinkphp
------ Other solutions --------------------
I also encountered the problem of deleting the app next to runtime.