My experience on MySQL4.1

Source: Internet
Author: User
Author: Jeanx [solves the problem and shares it with you] garbled problem: during MySQL4.1 installation, the default character settings are displayed. if your server has selected the default value of GB, UFT8 will be used and garbled characters will appear, or after you connect to the database, syntaxHighlighter. all ();

Author: Jeanx
[Resolve your own problems and share them with you]
Garbled problem:
The default character settings are displayed during MySQL4.1 installation.
If the default value of GB is selected for your server, UFT8 will cause garbled characters.
Or
You only need to execute this statement after you connect to the database.
Mysql_query ("Set Names uft8 ");
Uft8 can be changed to the encoding you need, such as e.g. gb2312.
This command can also be used for mysql command lines to display correct text.
Database Connection
Bytes -------------------------------------------------------------------------------------------
Client does not support authentication protocol requested
By server; consider upgrading MySQL client
Bytes -------------------------------------------------------------------------------------------
Since the password hash algorithm changed since MySQL 4.1 started, the database is connected.
Client does not support authentication protocol may occur.
You can solve this problem in two ways:
1:
Mysql> SET PASSWORD
-> Some_user @ some_host = OLD_PASSWORD (newpwd );
Second:
Mysql> UPDATE mysql. user SET Password = OLD_PASSWORD (newpwd)
-> WHERE Host = some_host AND User = some_user;


Mysql> flush privileges;

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.