| | | | |
| |||||||
| Server, Hosting und Workstations Server-Konfigurationsdateien (.htaccess/httpd.conf) und Arbeiten auf Serverebene |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Erfahrener Benutzer Registriert seit: 29.03.2008
Beiträge: 551
![]() | Hallo, ich hab ein Problem mit php und der MySql-Erweiterung. Hab auch schon gegoogelt, aber noch keine Lösung gefunden. Ich habe Apache installiert (d:\Webserver\Apache) php installiert (D:\Webserver\php) Mysql installiert (D:\Webserver\MySql) In der php.ini hab ich die Erweiterung aktiviert und das Extension Dir angegeben: Code: extension_dir = D:\32bit\Webserver\php\ext\ extension=php_mysql.dll extension=php_mysqli.dll Code: [MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1
; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port =3306
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host = localhost
; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =
; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =
; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off
[MySQLi]
; Maximum number of links. -1 means no limit.
mysqli.max_links = -1
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysqli.default_port = 3306
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host = localhost
; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_pw =
; Allow or prevent reconnect
mysqli.reconnect = Off
[mSQL]
; Allow or prevent persistent links.
msql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
msql.max_persistent = -1
; Maximum number of links (persistent+non persistent). -1 means no limit.
msql.max_links = -1
Code: Die Erweiterung mysql kann nicht geladen werden. Bitte überprüfen Sie Ihre PHP-Konfiguration. Der Punkt mysqli aber schon. Ich hab de libmysql auch schon ins Windows Systemverzeichnis kopiert. Auch die Pfad-Variable habe ich schon erweitert (Pfad zu mysql, Pfad zu php, Pfad zu ext) Ich hoffe jemand hat ne Idee was da falsch läuft |
| | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Erfahrener Benutzer Registriert seit: 29.03.2008
Beiträge: 551
![]() | Danke für die schnelle Antwort Der Pfad zum extension_dir ist schon richtig. Hab mich nur in diesem Post verschrieben Code: extension_dir = "D:\32bit\Webserver\php\ext\" |
| | |
| | |
| Erfahrener Benutzer Registriert seit: 29.03.2008
Beiträge: 551
![]() | Eine libmysql.dll befindet sich nicht im bin-Verzeichnis von Apache. Aber auch wenn ich die dort reinkopiere ändert sich nichts am Problem. php.ini ist nur eine vorhanden unter "c:\windows" Wenn ich den Apache laufen lasse und die libmysql.dll löschen will, geht das nicht. Das heißt doch sie wird genutzt also auch gefunden?! Was mich auch wundert ist, daß unter phpinfo() mysqli angezeigt wird, aber mysql nicht?! Geändert von pfump (05.07.2010 um 17:45 Uhr). |
| | |
| | |
| moderatives Dielektrikum Registriert seit: 21.05.2008
Beiträge: 34.256
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | [MOD: verschoben]
__________________ -- One pixel is still too big. Please make it smaller. ASAP. Initiative Mittelstand. Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers. -- |
| | |
| | |
| Moderator¹ Registriert seit: 28.03.2010
Beiträge: 7.470
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Und die wird auch wirklich benutzt? Schau bitte oben in der Ausgabe von phpinfo, da steht, welche Konfigurationsdatei benutzt wird.
__________________ RGB is totally confusing - I mean, at least #C0FFEE should be brown, right? |
| | |
| | |
| Erfahrener Benutzer Registriert seit: 07.09.2009
Beiträge: 3.891
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() | Benutze Slashes, keine Backslashes! An einigen Stellen - nicht an allen - ist der Webserver pingelig und Backslashes müssen escaped werden -> D:\\mein\\pfad. Mit normalen Slashes umgeht man das Problem "elegant"
__________________ Über 90% aller Gewaltverbrechen passieren innerhalb von 24 Stunden nach dem Konsum von Brot. |
| | |
| | |
| Erfahrener Benutzer Registriert seit: 29.03.2008
Beiträge: 551
![]() | Hallo, tut mitr leid für die späte Antwort. War etwas im Streß Also das funktioniert leider auch nicht. Zur Erklärung. Ich habe Apache, PHP und MySql auf einer 2.Partition installiert gehabt. Nämlich unter D:\32bit\Webserver\ Jetzt mußte ich Windows frisch installieren. Habe dabach den Apache mit http -k install wieder als Dienst installiert. Mysql mußte ich allerdings neu installieren. Hab ich gemacht. Mit den Pfadangeben vom Mysql-Ordner auf D. Jetzt wird aber ide Mysql-Extension nicht erkannt. Kann das daran liegen das ich die Windows-Updates noch nicht ausgeführt habe? |
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [Erledigt] MySQL Link Resource in einer statischen Variablen speichern | Lenki | PHP-Fortgeschrittene | 8 | 18.03.2010 16:37 |
| [Erledigt] MySQL Select * und CSV export funktioniert nicht?! | Enra | PHP Tipps 2009 | 3 | 19.04.2009 13:47 |
| MySQL Konsole und Umlaute unter Windows [LÖSUNG] | f4ckm5 | Datenbanken | 8 | 30.03.2009 22:10 |
| mysql insert funktioniert net | Smilerr | PHP Tipps 2008 | 4 | 08.03.2009 14:02 |
| mysql LIMIT funktioniert nicht! | Kori | PHP Tipps 2007 | 2 | 20.12.2006 21:42 |
| mysql timestamp funktioniert nicht auf allen servern? | zwerg | PHP Tipps 2006 | 1 | 22.03.2006 20:48 |
| Suche Tipps für Persormance-Steigerung (Geld für Nützliches) | Beitragsarchiv | 18 | 16.08.2005 10:57 | |
| Schreiben in die Datenbank (MySQL) funktioniert nicht | PHP Tipps 2005 | 3 | 28.02.2005 01:01 | |
| MySQL Error aber es funktioniert trotzdem | PHP Tipps 2005 | 3 | 27.02.2005 04:16 | |
| Abfrage funktioniert unter MySQL aber nicht unter MS SQL | Schiedsrichter | Datenbanken | 2 | 27.01.2005 15:43 |
| MySQL UPDATE Befehl funktioniert nicht | PHP Tipps 2005 | 6 | 24.01.2005 15:03 | |
| mysql update query mit mehreren Tabellen funktioniert nicht | PHP-Fortgeschrittene | 5 | 08.01.2005 16:29 | |
| Problem: MySQL Query funktioniert nicht. Wieso? | PHP Tipps 2004-2 | 3 | 24.12.2004 13:58 | |
| [Erledigt] MySQL Erweiterung wurde nicht gefunden!!! | PHP Tipps 2004 | 6 | 03.09.2004 13:00 | |
| PHP5 & MySQL | Datenbanken | 5 | 01.08.2004 05:47 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| http://www.php.de/server-hosting-und-workstations/69462-mysql-funktioniert-nicht-erweiterung-nicht-erkannt.html, php.ini mysql, mysqli nicht erkannt, php mysql nicht erkannt, win php mysql läuft nicht, php mysqli funktioniert nicht, php.ini mysql laden, mysql erweiterung php in .htacces, die erweiterung mysql kann nicht geladen werden. bitte überprüfen sie ihre php-konfiguration, mysql wird in phpinfo nicht angezeigt, mysql php.ini, apache mysql funktioniert nicht -xampp, extension_dir phpinfo ändert sich nicht, php mysql extension dir, php ext mysqli wird nicht eingebunden, mysql von php nicht erkannt, php.ini mysql konfigurieren, mysqli geht nicht mysql schon, sql php.ini, in welchem modus läuft mysql |