art-d-sign
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 09.03.2005, 10:45   #1
TP-Supporter
 
Benutzerbild von |23|
 
Registriert seit: Feb 2001
Ort: Göttingen
|23| macht alles soweit korrekt

kein verbindung zum MySQL server


Hallo,

irgendwie geht die Verbindung zu meinem Mysqlserver nicht.

Kurze info:

Apache2 läuft
php auch.. also auf jednefall wird die phpinfo(); angezeit. Stimmt auch alles soweit. Nun hab ich Maysql install "mysql-4.1.10-win32". in das Verzeichnis C://mysql . So hab den service gestartet. Rennt auch. Aber will ich z.b :

http://127.0.0.1/phpMyAdmin/ aufrufen bekommt ich die meldung von phpmyadmin:

Zitat:
MySQL meldet:
#2003 - Der Server antwortet nicht.
wie kann das möglich sein? meine php.ini, httpd.conf und config.inc.php sollten eigentlich richtig sein.


config.inc.php :
PHP-Code:
$cfg['Servers'][$i]['host']          = '127.0.0.1'// MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '3306';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = 'root';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                    // and "mysql/db" tables).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                    // with 'config' auth_type)
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                    // this db is displayed in left frame
                                                    // It may also be an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname 
ein password habe ich bis jetzt noch nicht gesetzt.


php.ini:

PHP-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 = 127.0.0.1

; Default user for mysql_connect() (doesn'
t apply in safe mode).
mysql.default_user root

; 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 courseany 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 modeWhen trace_mode is active (=On), warnings for table/index scans and
SQL-Errors will be displayed.
mysql.trace_mode Off 
__________________

----------------------------
Ritter des PNG -Formats
>> Web Security - Angriffsmethoden und ihre Folgen
>> Buffer-Overflows und wie man sich davor schützt
|23| ist offline   Mit Zitat antworten


Alt 09.03.2005, 11:17   #2
TP-Supporter
 
Benutzerbild von |23|
 
Registriert seit: Feb 2001
Ort: Göttingen
|23| macht alles soweit korrekt
Fehler gefunden:

mysql.default_socket =

muss noch der socket eingetragen werden.. komisch.. musste ich sonnst nieee machen naja .. DANKE
__________________

----------------------------
Ritter des PNG -Formats
>> Web Security - Angriffsmethoden und ihre Folgen
>> Buffer-Overflows und wie man sich davor schützt
|23| ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Traum-Dynamik
kein verbindung zum MySQL server kein verbindung zum MySQL server
« Array-Problem | bis zu wievielen Datensätzen ist php/mysql sinnvoll? »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:12 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67