Notes for compiling and upgrading mysql, such as php connection to mysqlnd phpmyadmin and mysqlndphpmyadmin

Source: Internet
Author: User

Notes for compiling and upgrading mysql, such as php connection to mysqlnd phpmyadmin and mysqlndphpmyadmin

For the InnoDB engine, copy the ib_logfile0, ib_logfile1, ibdata1, and database folders under the data Directory (only frm files are in it)

Don't be afraid of the version. What is wrong with my. cnf? Despite the cold backup, if it feels large, tar compression can be used to make compression more efficient.

For the myisam engine, copy the database folder (including MYD, MYI, frm) under the data Directory)


Of course, it is best to use the cp-pr command, p is to save the meaning of the attribute.

Compile and install mysql to specify the path. Of course, if you cannot set the sock file and pid file during compilation, you can also specify it in my. It is best to specify the path during Backup.

Run ps aux | grep mysql to check the original sock, pid, log, and data paths.


The connection to php seems to be a php issue now. There are no problems concerning the installation of mysql and php (mysq5.6.23, php5.6). The connection method uses mysqlnd.


Php is installed with the php56w source, because it is not very important, it does not matter in which directory (my service provider only provides weekly backup of the data disk)


Ps: At the beginning, php cannot connect to the database. It was found that the mysql client api in the phpinfo information table is of the old version, not mysqlnd. After php5.5, mysqlnd is provided by default.

Even though the pdo mysql method does not seem to provide



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.