When I install shuguang cms to the VM, the Accessdeniedforuser 'root' @ 'localhost' is reported'

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.