Python2.7 connect to the mysql database of PHP

Source: Internet
Author: User
If you want to use a scheduled task, install Python on the php server and then install the pymysql module. But can you use the same database? Where are the requirements for installing Python? How to connect to the mysql database of PHP? What should I pay attention to? The test environment is the local wamp2.5 which wants to use a scheduled task,
On the php server, install Python and then install the pymysql module,
But can I use the same database,
What are the requirements for installing Python?
How to connect to the mysql database of PHP,
What should I pay attention?

The test environment is local wamp2.5.

Reply content:

To use a scheduled task,
On the php server, install Python and then install the pymysql module,
But can I use the same database,
What are the requirements for installing Python?
How to connect to the mysql database of PHP,
What should I pay attention?

The test environment is local wamp2.5.

I'm surprised.
Conceptual error.
What does it mean?Mysql database of PHP?
Php and python are scripting languages
Mysql is a database service.

YesPhp + mysql
YesPython + mysql

Http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001391435131816c6a377e100ec4d43b3fc9145f3bb8056000

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.