Programación Web y Scripting > PHP
Conectar Php Con Mysql...
Informix:
Hola que tal creo que tengo el mismo problema con mysql y PHP 5 ya logre instalarlos pero cuando puse el phpMyAdmin me salio el error
--- Citar ---no se pudo cargar la extensión mysql,
por favor revise su configuración de PHP.
--- Fin de la cita ---
Creo que el problema va a ser la extension de mysql que se encuentra en la carpeta ext
ya puse la linea
--- Código: Text --- extension=php_mysql.dll
Pero cuando inicia el apache me marca un error que no se puede cargar lo intente con
--- Código: Text --- extension=/ext/php_mysql.dll o extension=php/ext/php_mysql.dll
y nada :( voy a seguir buscando a ver si encuentro la solucion y la pondre aqui pero si pueden contestarme y ayudarme pues que mejor :lol:
saludos
:kicking:
nostromo:
Hola;
Para los nuevos que instalen el AppServer 2.5.2, la siguiente línea no aparece en php.ini en Windows:
extension=php_mysql.dll
Simplemente no viene, y es el error descrito al principio de este post:
Fatal error: Call to undefined function mysql_connect() in C:\Documents and Settings\Mario Martinez\Mis documentos\Eric\Ejercicios Php\conexion.php on line 18
En php.ini, deben colocar lo siguiente:
Donde dice :
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
:
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
extension=php_mysqli.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
:
etc...
Debe decir :
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
:
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
extension=php_mysql.dll <---- Completar línea
extension=php_mysqli.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
Nos vemos.
silent508:
temo que ya lo he hecho, y tampoco, sigue apareciendo lo mismo
alguna idea de como solucionarlo? :unsure:
silent508:
ya lo complete, pero ahora sale otro error
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in c:\AppServ\www\ibeth.php on line 145
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in c:\AppServ\www\ibeth.php on line 146
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\AppServ\www\ibeth.php on line 147
a que se debe
ahora que tengo que hacer?
Gracias de antemano
Navegación
[*] Página Anterior
Ir a la versión completa