tp3.2.3 upload to server error local test OK '

Source: Internet
Author: User
Undefined class constant ' Mysql_attr_init_command '

PHP Version 5.3.17
The Extension=php_pdo_mysql.dll is also open.

Local test OK
Error uploading to server
3.2.3

' Config item ' = ' config value '
' Db_type ' = ' mysql ',//Set Database type
' Db_host ' + ' locahost,//set host
' Db_name ' = ' chidata ',//Set database name
' Db_user ' = ' user ',//Set username
' Db_pwd ' = ' password ',//Set Password
' Db_port ' = ' 3306 ',//Set port number
' Db_prefix ' = ' chi_ ',//Set table prefix [b][/b]

Reply content:

Undefined class constant ' Mysql_attr_init_command '

PHP Version 5.3.17
The Extension=php_pdo_mysql.dll is also open.

Local test OK
Error uploading to server
3.2.3

' Config item ' = ' config value '
' Db_type ' = ' mysql ',//Set Database type
' Db_host ' + ' locahost,//set host
' Db_name ' = ' chidata ',//Set database name
' Db_user ' = ' user ',//Set username
' Db_pwd ' = ' password ',//Set Password
' Db_port ' = ' 3306 ',//Set port number
' Db_prefix ' = ' chi_ ',//Set table prefix [b][/b]

tp3.2 is required for PHP version. PHP5.3 above version (note: Php5.3dev version and PHP6 are not supported)

See if PHP php_mysql is open for this extension?

This is a bug in php5.3;
A workaround is to use its integer value 1002 (pdo::mysql_attr_init_command=1002) directly

  • 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.