Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 20
  1. #1

    undefined function mysql_connect()

    Ciao a tutti, so che l'argomento è sfruttato e si, ho guardato anche i precedenti post al riguardo, ma non riesco a venirne a capo..

    Il problema è semplice, php non sembra interagirmi con mysql nonostante abbia settato tutto il dovuto, da riga di comando mi funziona perfettamente.

    Nel php.ini ho settato decommentato

    extension=php_mysql.dll

    e ho copiato il libmysql.dll in C:\Windows\System32

    Inoltre ho creato un utente con molti grant con il quale collegarmi al database..

    c'è dell'altro da fare? php mi funziona correttamente ma le istruzioni mysql no, mi riportano tutti: Fatal error: Call to undefined function mysql_connect()

    Il fatto è che ho fatto altre macchine e non ho mai avuto problemi del genere con le stesse impostazioni, cosa può essere?
    Perpetual Ribellion With Absolutely No Cause

  2. #2
    Utente di HTML.it L'avatar di bstefano79
    Registrato dal
    Feb 2004
    Messaggi
    2,520
    prova a vedere da phpinfo() se Mysql c'è

  3. #3
    Originariamente inviato da bstefano79
    prova a vedere da phpinfo() se Mysql c'è
    Noto solamente le varie "path" settate con C:\Programmi\MySQL\MySQL Server 5.1\bin

    Dev'esserci un campo dedicato?
    Perpetual Ribellion With Absolutely No Cause

  4. #4
    Utente di HTML.it L'avatar di bstefano79
    Registrato dal
    Feb 2004
    Messaggi
    2,520
    dovresti vedere queste due tabelle
    http://www.plus2net.com/php_tutorial/phpinfo-mysql.php

  5. #5
    Originariamente inviato da bstefano79
    dovresti vedere queste due tabelle
    http://www.plus2net.com/php_tutorial/phpinfo-mysql.php
    mi sembrava... no non le vedo
    Perpetual Ribellion With Absolutely No Cause

  6. #6
    Utente di HTML.it L'avatar di bstefano79
    Registrato dal
    Feb 2004
    Messaggi
    2,520
    allora hai sbagliato qualcosa nell'installazione.......

  7. #7
    Originariamente inviato da bstefano79
    allora hai sbagliato qualcosa nell'installazione.......
    ho eseguito l'installazione standard.. cosa già fatta altre volte, per questo non capisco..
    Perpetual Ribellion With Absolutely No Cause

  8. #8
    Utente di HTML.it L'avatar di bstefano79
    Registrato dal
    Feb 2004
    Messaggi
    2,520
    1.Verify that your installation of PHP has been compiled with mysql support. Create a test web page containing <?php phpinfo(); exit(); ?> and load it in your browser. Search the page for MySQL. If you don't see it, you need to recompile PHP with MySQL support, or reinstall a PHP package that has it built-in, both of which are beyond the scope of this document.
    2.Verify that the line to load the extension in php.ini has been uncommented. In Linux, the line is extension=mysql.so and in Windows, the line is extension=php_mysql.dll. Uncomment the line by removing the semi-colon. You might also need to configure the extension_dir variable.
    3.Check if the php-mysql package is installed by opening a terminal window (bash), and typing, rpm -qa | grep php. If you don't see it, make a note of the exact version of PHP that is installed.
    4.Find the php-mysql RPM for the version of PHP that is installed on your system. The easiest way to find it is to search by the version of RedHat you have. Go to a RedHat mirror or look on your RedHat CDs. If you have RedHat 8.0, then navigate to the folder /linux/8.0/en/os/i386/RedHat/RPMS/ and search for php-mysql. Download this file. (For a list of mirror sites, try RedHat Mirrors or search Google for redhat mirrors.)
    5.To install the file, open a terminal window and cd to the directory where you saved the RPM. Then type rpm -hivv php-mysql-4.2.2-17.i386.rpm and press enter. This will install the RPM for RedHat 9.0.
    6.You might also need MySQL-shared-compat RPM if you get a dependency of libmysqlclient.so.10 error while installing.
    7.The last step is to restart Apache. You can do this with one of the following commands, apachectl restart or /etc/rc.d/init.d/httpd restart.

  9. #9
    Originariamente inviato da DrugsMatt
    ho eseguito l'installazione standard.. cosa già fatta altre volte, per questo non capisco..
    mysql 5.1 "ama" php 5.3 ,,, questioni di nuovi driver e diverso modo di interagire.

    ti rimando a questa recente discussione ... non far caso se parla di un mac, il problema e' lo stesso.

    http://forum.html.it/forum/showthrea...9#post13077509

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  10. #10
    Originariamente inviato da piero.mac
    mysql 5.1 "ama" php 5.3 ,,, questioni di nuovi driver e diverso modo di interagire.

    ti rimando a questa recente discussione ... non far caso se parla di un mac, il problema e' lo stesso.

    http://forum.html.it/forum/showthrea...9#post13077509
    Avevo pensato di aggiornare PHP alla 5.33 .. Ma quando ho scaricato lo zip e l'ho scompattato ho visto che mancavano dell dll che nelle versioni precedenti c'erano, per esempio libmysql.dll... Allora ho optato per la 5.2.14

    Ora cercando qua è la ho trovato una discussione riportante "The mysql extensions use now a bundled driver called mysqlnd, maintained by the mysql connectivity team. libmysql is not necessary anymore".. io ho trovato una dll chiamata php_mysql.dll.. Cosa devo fare per installare correttamente la 5.33?

    -EDIT-
    Inoltre ho trovato un tuo post dove si discuteva se installare la ver. VC6 o VC9, se uso Apache2.2 come web server è giusto usare la VC6 giusto? e fra ts e nts?
    Perpetual Ribellion With Absolutely No Cause

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.