Installing DBD on Perl: MySQL

Source: Internet
Author: User
Tags mysql client
Install DBD: MySQL on Perl, so it takes more than half a day. MySQL is really bad
First, when the DBD: MySQL module is installed, make and the error message is printed as follows:

GCC: Language strconst not recognized

GCC: dbdimp. C: Linker input file unused because linking not done

GCC: Language strconst not recognized

GCC: mysql. C: Linker input file unused because linking not done

After checking on the Internet for a long time, I finally found on the official MySQL website that this was a bug in MySQL itself. Why did the server and GCC versions happen to be consistent with the bug, this is too bad!
The problem is a bug on MySQL:

Bug #22430-xstrconst-MT in makefile for GCC- 4.1.1 On Solaris 10
How to repeat:
Perform configure then make using gcc-4.1.1 on Solaris 10.
Solution
Remove-xstrconst and-MT from makefiles.

Finally, you can install DBD!

Next we encountered a problem.
When logging on to MySQL, the correct user name and password cannot be logged on, and the error is: client does not support Authentication Protocol requested by server; consider upgrading MYSQL client
This is also a problem of MySQL, because the new password verification mechanism is used in the MySQL server version, which requires the Client Version above 4.0, the original password function is changed to old_password ();, which makes it difficult for the client to use the password () generated on the old version.
Solution
Mysql> set password for user1 @ "localhost" = old_password ('yourpassword ');

Another point is to record here, that is, when logging on to MySQL remotely, the user must be given the remote login permission in the database, that is, user1 @ %.

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.