在安装网站是出现mysql_connect 显示不支持的错误请问是什么原因》》》》该怎么处理呢。。。。我按网上查找的那些资料处理了,,,还是不行。。。。。求正解。。。。Apache+php+Mysql
回复讨论(解决方案)
错误代码粘出来啊
我不管网上是怎么说的,只看你是怎么做的
这个是错误截图: 我不管网上是怎么说的,只看你是怎么做的 当我用phpinfo测试的时候,Mysql和Mysqli,同时都不显示。关于php上的Mysql扩展 我该做的步骤也都做了,可还是不行。php.ini的内容如下:
extension_dir-"D:/PHP/php5/ext";extension=php_bz2.dll;extension=php_curl.dll;extension=php_dba.dll;extension=php_dbase.dll;extension=php_exif.dll;extension=php_fdf.dll;extension=php_gd2.dll;extension=php_gettext.dll;extension=php_gmp.dll;extension=php_ifx.dll;extension=php_imap.dll;extension=php_interbase.dll;extension=php_ldap.dll;extension=php_mbstring.dll;extension=php_mcrypt.dll;extension=php_mhash.dll;extension=php_mime_magic.dll;extension=php_ming.dll;extension=php_msql.dll;extension=php_mssql.dllextension=php_mysql.dllextension=php_mysqli.dll;extension=php_oci8.dll;extension=php_openssl.dllextension=php_pdo.dll;extension=php_pdo_firebird.dll;extension=php_pdo_mssql.dllextension=php_pdo_mysql.dll;extension=php_pdo_oci.dll;extension=php_pdo_oci8.dll;extension=php_pdo_odbc.dll;extension=php_pdo_pgsql.dll;extension=php_pdo_sqlite.dll;extension=php_pgsql.dll;extension=php_pspell.dll;extension=php_shmop.dll;extension=php_snmp.dll;extension=php_soap.dll;extension=php_sockets.dll;extension=php_sqlite.dll;extension=php_sybase_ct.dll;extension=php_tidy.dll;extension=php_xmlrpc.dll;extension=php_xsl.dll;extension=php_zip.dlllibmysql.dll也放到了C:\Windows下,我是初学者,想学会自己配置Apache+php+Mysql,一点点的做到现在,我坚持了。。但是,还是总是出现这样那样的错误。不想用傻瓜式安装。。。。真心求指教。。。我想了想 现在的错误地方 应该就是php连接Mysql的时候,始终连接不上。。。求正确的方法。。。
错误代码粘出来啊 是安装网站的时候,出现这样的错误。。。
phpinfo 中 Loaded Configuration File 加载的php.ini与你修改的php.ini 是否是同一个?
贴出 phpinfo 测试时以下项的值
Configuration File (php.ini) Path
Loaded Configuration File
和 Apache Environment 节的 PATH
贴出 phpinfo 测试时以下项的值
Configuration File (php.ini) Path
Loaded Configuration File
和 Apache Environment 节的 PATH
phpinfo 中 Loaded Configuration File 加载的php.ini与你修改的php.ini 是否是同一个?
把 PATH 中的 所有含有 MySQL 字样的项删掉
如果你不会,就请教你的同事或请电脑公司的人帮忙
把 PATH 中的 所有含有 MySQL 字样的项删掉
如果你不会,就请教你的同事或请电脑公司的人帮忙 恩。。是把path中所有路径里包含Mysql的文件 全部删掉 是么???这是公司新买了一个php的网站 让我辅助安装看下,其实我也是个新手,不过公司里除了我自己全部都是搞销售的,也就只有我自己来整了。。
重装了一下PHP,按图索骥般的安装,这次的安装和之前的安装有一个区别就是(我想之前安装不成功的原因也可能就是这么个原因,就是环境变量里面没有php.ini的路径。)我把php.ini文件也拷到了C:windows下,问题就解决了。。。希望我把我的错误点贴出来,能给初学者提供一些问题所在的思路。。。

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools