With XAMPP, the password is empty, but cannot log on to the ROOT of mysql. It is strange to change the ROOT password.

Source: Internet
Author: User

When XAMPP is used, the password is empty, but cannot log on to the ROOT of mysql. It is strange to change the ROOT password. In this case, XAMPP shell can be used to log on to mysql directly... However, the default initial password of root is null, but mysql-u root-p cannot be used for logon. Only anonymous logon like mysql can be performed. (Note: You can use CMD in the bin directory of mysql and run XAMPP \ mysql \ bin instead of shell.) www.2cto.com found many methods on the Internet and finally succeeded. Run the command: mysql-u root mysql !!!!! Then, update user set password = password ('your password') where user = 'root. To log on to phpmyadmin, change phpmyadmin/config. inc. php to the same password as above. Attached MYSQL Chinese garbled problem: Find mysql \ bin \ directory to open my. ini is inserted under [mysqld]: character-set-server = utf8 is inserted under [mysql]: default-character-set = gbk

Related Article

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.