Verbindung zu Mysql mit PHP ist Falsch

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 09:42

Hallo,

ich habe heute Xampp neu installiert.

Als ich gerade versucht habe mit PHP zur Datenbank zu verbinden bekomme ich die Fehlermeldung:

Access denied for user 'root'@'localhost' (using password: NO)


Ich weis ja auch nicht genau welche Daten ich eintragen muss, ich weis nur ich habe in phpmyadmin eine Datenbank mit Namen "mt4binary" erstellt und mein PHP Code zum Verbinden sieht so aus:

Code: Select all
   $DatabaseHost = "localhost";
    $DatabaseUser = "root";
    $DatabasePassword = "";
    $Database = "mt4binary";


Waere nett wenn jemand mir sagen kann was ich falsch einegstellt habe.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 10:33

Ich sehe gerade das ich jetzt auch Probleme aufeinmal habe mich in phpmyadmin ein zu loggen, es ging heute noch und ich konnte die Tabelle erstellen und jetzt aufeinmal ohne das ichetwas geaendert habe geht es nicht mehr.

Diese folgende Meldung steht jetzt bei phpmyadmin in ein roten kasten:

Fehler

MySQL meldet: Dokumentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
phpMyAdmin hat versucht eine Verbindung zum MySQL-Server aufzubauen und die Verbindung wurde zurückgewiesen. Sie sollten Ihre Einstellungen für Host, Benutzername und Passwort in Ihrer config.inc.php überprüfen und sich vergewissern, dass diese den Informationen, die Sie vom Administrator erhalten haben, entsprechen.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Altrea » 27. February 2017 11:07

MaikApache wrote:ohne das ichetwas geaendert habe geht es nicht mehr.

Dann ändert sich das root Passwort auf deinem Computer von ganz alleine?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 11:16

Und wie kann das sein das sich das von alleine aendert? Habe ich ein Virus auf dem PC?

Das einzige was ich gemacht habe ist im ordner phpmyadmin in die datei config.inc.php geschaut und dort steht das hier:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';


kein password wie ich sehe. Und ich habe echt nichts geaendert dort.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Nobbie » 27. February 2017 12:06

MaikApache wrote:Und wie kann das sein das sich das von alleine aendert?


Du solltest professioneller Programmierer werden, das ist der wichtigste Spruch der IT Welt überhaupt: "Dabei habe ich doch gar nichts geändert". Die Wahrheit ist natürlich, dass man sehr wohl "irgendetwas" geändert hat, aber man übersieht den Bezug zum Problem. Dadurch kommen solche vermeintlich überraschten Reaktionen zustande: "Wie ändert sich so etws von von alleine?". Natürlich gar nicht.

Es gibt nur zwei Möglichkeiten: Du hast selbst irgendetwas an Deinem Computer geändert, entweder direkt in der Datenbank oder an irgendeiner anderen Stelle, vielleicht hast Du ja ein anderes Produkt installiert, welches auch MySQL mitbringt und Dein Xampp MySQL läuft in Wirklichkeit gar nicht, sondern die andere Version (das ist natürlich geraten, aber nichtsdestotrotz eine mögliche Ursache), oder es ist wirklich geändert worden, entweder von Dir selbst oder Dein Rechner ist so konfiguriert, dass man von außen auf MySQL zugreifen kann und dann hat das ggf. ein Unbekannter geändert. Das ist allerdings ein relativ unwahrscheinliches Scenario, die meisten PCs zu Hause sind hinter Routern gut geschützt und es ist gar nicht einfach, die im Internet online zu stellen.

DIe Konfigurationsdatei von phpmyadmin brauchen wir hier nicht, Du bist (wie übrigens sehr viele) anscheinend der irrigen(!) Meinung, da würde festgelegt, welches Passwort "root" in der Datenbank hat. DAS IST NICHT SO. Es ist genau anders herum - da muss das richtige Passwort eingetragen werden, wie es in der Datenbank eingetragen ist, d.h. hier in phpmyadmin in config.inc.php wird das Passwort nicht erstellt, sondern phpmyadmin benutzt dieses Passwort hier, um sich damit an MySQL anzumelden. Und da steht eben nicht, weil Xampp auch kein Passwort für "root" vorgegeben hat, aber die Fehlermeldung sagt, dass Du mit "nichts" nicht in die Datenbank kommst, da ist das Passwort doch vorhanden und es nicht leer. Aber (s.o.) wir wissen nicht, welche Ursachen das genau hat. Das kannst nur Du selbst wissen, ob Du irgendwo irgendetwas gemacht hast, was die oben besprochenen Folgen haben könnte. Ist es dann ganz sicher, dass Du im Xampp Dialog sehen kannst, dass MySQL auch wirklich läuft? Wenn ja, dann ist wirklich das Passwort geändert worden, aber die einzige Ursache, die NICHT in Frage kommt, ist die Ursache "von alleine".
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 13:06

Also sagen wir mal so, wenn irgendjeman ddas passwort geaendert, ich wuerde mich nciht wundern wenn irgendwelche hacker auf mein pc zugriff haben, aber das ist mal eine andere Geschichte, also sagen wir das passwort wurde geaendert, was kann ich jetzt mache, wo kannich das Passwort finden oder neu erstellen oder muss ich Mysql komplett leoschenund neu installieren oder ganze xampp neu isntallieren?

Ich bin zwar keine profi aber programmiere auch schon einige jahre auf anderen sprachen und weis das man normal etwas aendern muss und ohne eigene aktion aendert sich normal nichts, ich weis nicht ob beim oeffnen der config.inc.php etwas schief gelaufen ist, aber so wie sich das anhoert liegt es nicht daran.

Ich weis nur ich habe heute erst eine Datnebank erstellt in phpmyadmin und konnte mich abe rnicht einloggen mit dem PHP script und jetzt aufeinmal auch nicht mehr phpmyadmin erreichen.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Nobbie » 27. February 2017 13:56

Das ist zu wenig, damit fange ich nichts an. Dann wünsche ich noch viel Glück.

Möglicherweise hast Du beim Erstellen der Datenbank auch den User "root" zerballert, keine Ahnung.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 14:51

Ich denke am besten ist wenn ich alles deinstalliere und neu installiere
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 14:56

So nun habe ich ein neues Problem und wieder ohne das ich selbst irgendetwas geaendert habe, jetzt bekomme ich von XAMPP Control Panel diese Meldung wenn ich Apache starten will:

Fehler: Apache wurde unerwartet beendet
15:02:02 [Apache] Ursache könnte ein geblockter Port, fehlende Abhängigkeiten,
15:02:02 [Apache] fehlende Berechtigungen, ein Absturz oder ein Abbruch einer anderen Methode sein.
15:02:02 [Apache] Drücke den Logs Button um error logs zu sehen und prüfe
15:02:02 [Apache] im Windows Event Viewer für weitere Hinweise
15:02:02 [Apache] Wenn du weitere Hilfe benötigst, kopiere den kompletten Inhalt des Log Fensters
15:02:02 [Apache] und füge ihn als Ergänzung in einem neuen Forum Eintrag hinzu.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Altrea » 27. February 2017 15:56

MaikApache wrote:15:02:02 [Apache] Wenn du weitere Hilfe benötigst, kopiere den kompletten Inhalt des Log Fensters
15:02:02 [Apache] und füge ihn als Ergänzung in einem neuen Forum Eintrag hinzu.


Ist das der komplette Inhalt für dich?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 16:22

Das ist alles ziemlich strange, jetzt startet Apache Server wieder ohne Fehlermeldung, aber mysql geht immer noch nciht, hier ist der text aus der mysql log datei:

2015-11-10 15:26:56 10fc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown

2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete

2017-02-26 21:40:53 834 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-02-26 21:40:53 2100 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-02-26 21:40:53 2100 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-26 21:40:53 2100 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-26 21:40:53 2100 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-26 21:40:53 2100 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-02-26 21:40:53 2100 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-26 21:40:53 2100 [Note] InnoDB: Using generic crc32 instructions
2017-02-26 21:40:53 2100 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-26 21:40:53 2100 [Note] InnoDB: Completed initialization of buffer pool
2017-02-26 21:40:53 2100 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-26 21:40:55 2100 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-26 21:40:55 2100 [Note] InnoDB: Waiting for purge to start
2017-02-26 21:40:55 2100 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1835037
2017-02-26 21:40:56 5732 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-26 21:40:56 2100 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-26 21:40:56 2100 [Note] Server socket created on IP: '::'.
2017-02-26 21:40:56 2100 [Note] mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2017-02-27 07:32:32 1750 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-02-27 7:32:32 5968 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-02-27 7:32:32 5968 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-27 7:32:32 5968 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-27 7:32:32 5968 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-27 7:32:32 5968 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-02-27 7:32:32 5968 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-27 7:32:32 5968 [Note] InnoDB: Using generic crc32 instructions
2017-02-27 7:32:32 5968 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-27 7:32:32 5968 [Note] InnoDB: Completed initialization of buffer pool
2017-02-27 7:32:33 5968 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-27 7:32:33 5968 [Note] InnoDB: The log sequence numbers 1835037 and 1835037 in ibdata files do not match the log sequence number 1835452 in the ib_logfiles!
2017-02-27 7:32:33 5968 [Note] InnoDB: Database was not shutdown normally!
2017-02-27 7:32:33 5968 [Note] InnoDB: Starting crash recovery.
2017-02-27 7:32:33 5968 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-02-27 7:32:35 5968 [Note] InnoDB: Restoring possible half-written data pages
2017-02-27 7:32:35 5968 [Note] InnoDB: from the doublewrite buffer...
2017-02-27 7:32:38 5968 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-27 7:32:39 5968 [Note] InnoDB: Waiting for purge to start
2017-02-27 7:32:39 5968 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1835452
2017-02-27 7:32:39 5508 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-27 7:32:39 5968 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-27 7:32:39 5968 [Note] Server socket created on IP: '::'.
2017-02-27 7:32:40 5968 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2017-02-27 10:41:42 10bc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-02-27 10:41:42 4284 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-02-27 10:41:42 4284 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-27 10:41:42 4284 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-27 10:41:42 4284 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-27 10:41:42 4284 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-02-27 10:41:42 4284 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-27 10:41:42 4284 [Note] InnoDB: Using generic crc32 instructions
2017-02-27 10:41:42 4284 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-27 10:41:42 4284 [Note] InnoDB: Completed initialization of buffer pool
2017-02-27 10:41:42 4284 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-27 10:41:42 4284 [Note] InnoDB: The log sequence numbers 1835037 and 1835037 in ibdata files do not match the log sequence number 1919068 in the ib_logfiles!
2017-02-27 10:41:42 4284 [Note] InnoDB: Database was not shutdown normally!
2017-02-27 10:41:42 4284 [Note] InnoDB: Starting crash recovery.
2017-02-27 10:41:42 4284 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-02-27 10:41:43 4284 [Note] InnoDB: Restoring possible half-written data pages
2017-02-27 10:41:43 4284 [Note] InnoDB: from the doublewrite buffer...
2017-02-27 10:41:46 4284 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-27 10:41:46 4284 [Note] InnoDB: Waiting for purge to start
2017-02-27 10:41:46 4284 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1919068
2017-02-27 10:41:46 6848 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-27 10:41:46 4284 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-27 10:41:46 4284 [Note] Server socket created on IP: '::'.
2017-02-27 10:41:46 4284 [ERROR] mysqld.exe: Table '.\mysql\user' is marked as crashed and should be repaired
2017-02-27 10:41:46 4284 [Warning] Checking table: '.\mysql\user'
2017-02-27 10:41:46 4284 [ERROR] mysql.user: 1 client is using or hasn't closed the table properly
2017-02-27 10:41:46 4284 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2017-02-27 10:57:39 e38 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-02-27 10:57:39 3640 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-02-27 10:57:39 3640 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-27 10:57:39 3640 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-27 10:57:39 3640 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-27 10:57:39 3640 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-02-27 10:57:39 3640 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-27 10:57:39 3640 [Note] InnoDB: Using generic crc32 instructions
2017-02-27 10:57:40 3640 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-27 10:57:40 3640 [Note] InnoDB: Completed initialization of buffer pool
2017-02-27 10:57:40 3640 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-27 10:57:40 3640 [Note] InnoDB: The log sequence numbers 1835037 and 1835037 in ibdata files do not match the log sequence number 1919078 in the ib_logfiles!
2017-02-27 10:57:40 3640 [Note] InnoDB: Database was not shutdown normally!
2017-02-27 10:57:40 3640 [Note] InnoDB: Starting crash recovery.
2017-02-27 10:57:40 3640 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-02-27 10:57:43 3640 [Note] InnoDB: Restoring possible half-written data pages
2017-02-27 10:57:43 3640 [Note] InnoDB: from the doublewrite buffer...
2017-02-27 10:57:47 3640 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-27 10:57:47 3640 [Note] InnoDB: Waiting for purge to start
2017-02-27 10:57:47 3640 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1919078
2017-02-27 10:57:47 4080 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-27 10:57:47 3640 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-27 10:57:48 3640 [Note] Server socket created on IP: '::'.
2017-02-27 10:57:48 3640 [Note] mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2017-02-27 15:01:43 1794 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-02-27 15:01:43 6036 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-02-27 15:01:43 6036 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-27 15:01:43 6036 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-27 15:01:43 6036 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-27 15:01:43 6036 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-02-27 15:01:43 6036 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-27 15:01:43 6036 [Note] InnoDB: Using generic crc32 instructions
2017-02-27 15:01:43 6036 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-27 15:01:43 6036 [Note] InnoDB: Completed initialization of buffer pool
2017-02-27 15:01:44 6036 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-27 15:01:44 6036 [Note] InnoDB: The log sequence numbers 1835037 and 1835037 in ibdata files do not match the log sequence number 1919088 in the ib_logfiles!
2017-02-27 15:01:44 6036 [Note] InnoDB: Database was not shutdown normally!
2017-02-27 15:01:44 6036 [Note] InnoDB: Starting crash recovery.
2017-02-27 15:01:44 6036 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-02-27 15:01:45 6036 [Note] InnoDB: Restoring possible half-written data pages
2017-02-27 15:01:45 6036 [Note] InnoDB: from the doublewrite buffer...
2017-02-27 15:01:48 6036 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-27 15:01:48 6036 [Note] InnoDB: Waiting for purge to start
2017-02-27 15:01:48 6036 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1919088
2017-02-27 15:01:48 4880 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-27 15:01:48 6036 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-27 15:01:48 6036 [Note] Server socket created on IP: '::'.
2017-02-27 15:01:48 6036 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2017-02-27 16:27:03 1360 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-02-27 16:27:03 4960 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-02-27 16:27:03 4960 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-02-27 16:27:03 4960 [Note] InnoDB: The InnoDB memory heap is disabled
2017-02-27 16:27:03 4960 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-02-27 16:27:03 4960 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-02-27 16:27:03 4960 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-27 16:27:03 4960 [Note] InnoDB: Using generic crc32 instructions
2017-02-27 16:27:03 4960 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-02-27 16:27:03 4960 [Note] InnoDB: Completed initialization of buffer pool
2017-02-27 16:27:04 4960 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-27 16:27:04 4960 [Note] InnoDB: The log sequence numbers 1835037 and 1835037 in ibdata files do not match the log sequence number 1919098 in the ib_logfiles!
2017-02-27 16:27:04 4960 [Note] InnoDB: Database was not shutdown normally!
2017-02-27 16:27:04 4960 [Note] InnoDB: Starting crash recovery.
2017-02-27 16:27:04 4960 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-02-27 16:27:05 4960 [Note] InnoDB: Restoring possible half-written data pages
2017-02-27 16:27:05 4960 [Note] InnoDB: from the doublewrite buffer...
2017-02-27 16:27:07 4960 [Note] InnoDB: 128 rollback segment(s) are active.
2017-02-27 16:27:07 4960 [Note] InnoDB: Waiting for purge to start
2017-02-27 16:27:07 4960 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1919098
2017-02-27 16:27:07 5036 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-02-27 16:27:07 4960 [Note] Plugin 'FEEDBACK' is disabled.
2017-02-27 16:27:07 4960 [Note] Server socket created on IP: '::'.
2017-02-27 16:27:07 4960 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution



Wenn jemand dort eine Info findet wo das Problem ist lass mich wissen ich denke ich deinstalliere sonst alles und installiere es neu und wenn das nicht hilft gehts halt nicht.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Altrea » 27. February 2017 16:29

MaikApache wrote:Das ist alles ziemlich strange, jetzt startet Apache Server wieder ohne Fehlermeldung, aber mysql geht immer noch nciht

Geht nicht ist keine aussagekräftige Fehlerbeschreibung.

2017-02-27 16:27:07 4960 [Note] Server socket created on IP: '::'.
2017-02-27 16:27:07 4960 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.21-MariaDB' socket: '' port: 3306 mariadb.org binary distribution

MariaDB ist um 16:27:07 Uhr erfolgreich gestartet.
Mehr kann man an Hand dieser Beschreibung nicht sagen.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby MaikApache » 27. February 2017 18:41

ok dann ganz einfache Frage nochmal, wie kann ich jetzt vorgehen phpmyadmin gibt mir kein Zugang also wie aender ich das Passwort das ich nciht kenne oder was soll ich jetzt machen, alles deinstalliere und neuinstalliere, keine Ahnung.
MaikApache
 
Posts: 15
Joined: 17. September 2016 20:59
XAMPP version: v3.2.2
Operating System: windows 10

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Altrea » 27. February 2017 20:21

MaikApache wrote:ok dann ganz einfache Frage nochmal, wie kann ich jetzt vorgehen phpmyadmin gibt mir kein Zugang also wie aender ich das Passwort das ich nciht kenne

Wäre eine Möglichkeit. Google mal nach "MariaDB Windows reset root password".

MaikApache wrote:oder was soll ich jetzt machen, alles deinstalliere und neuinstalliere, keine Ahnung.

Wäre die andere Möglichkeit, die auf jeden Fall deutlich einfacher wäre.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Verbindung zu Mysql mit PHP ist Falsch

Postby Nobbie » 27. February 2017 21:14

Ich kann und will nicht glauben, dass wir hier über eine "jungfräuliche" Neuinstallation reden, irgendetwas verschweigst Du uns. Aber letztendlich ist das Dein Problem, vielleicht macht es sogar Sinn, Windows neu zu installieren, dann direkt danach Xampp und sonst erst einmal nichts.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Next

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 43 guests