Posts mit dem Label mysql werden angezeigt. Alle Posts anzeigen
Posts mit dem Label mysql werden angezeigt. Alle Posts anzeigen

Donnerstag, 24. Juni 2021

#2002 Die Anmeldung am MySQL-Server ist fehlgeschlagen - phpMyAdmin

 Bei Anmeldeversuch an phpmyadmin kommt immer wieder dieser Fehler...

Loesung war in der  config von phpmyadmin zu finden


im phpmyadmin ordner ist eine Datai

config.sample.inc.php

kopiert nach config.inc.php

datei ediert

aus Zeile

$cfg['Servers'][$i]['host'] = 'localhost';

Zeile

$cfg['Servers'][$i]['host'] = '127.0.0.1';


gemacht.


Dann funktioniert die Anmeldung ...

Montag, 5. Februar 2018

Laravel SQLSTATE[HY000] [1045] Access denied for user @ ip

i had this problem on my providers web server:
SQLSTATE[HY000] [1045] Access denied for user @ ip

i double checked .env and did php artisan conifg:cache , nothing helped

Solution: changed the password for the online db to something simpler . changed it in .env file too and cleared the cache again. suddenly no more problems.

it seems that some passwords dont work?!?

Mittwoch, 21. Juni 2017

Mysql Fehler SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY''

Urplötzlich trat dieser Fehler bei der DB auf dem Webserver auf
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY''

Bei der gleichen Aktion in der Entwicklungsumgebung, gab es keine Probleme...

Die betreffende Tabelle hatte bereits einen Eintrag mit Indexwert 0, es sollte ein neuer Eintrag erstellt werden. Der Primary Index ist weder am Anschlag noch ist er nicht auf AutoIncrement.

Eine lange Googlesuche brachte mich zu einer Loesung, die mir half:

mysqlcheck --auto-repair=true -u<dbusername> -p <dbname>


Was habe ich vor diesem Fehler gemacht?
Und zwar nur auf dem Online Webserver?

ich habe phpMyAdmin genutzt um die Spaltenreihenfolge zu aendern (In einer anderen Tabelle) -> Ob dies Ausloeser des Problems war?

Dienstag, 19. Juni 2012

Mysql how to copy/import a table from another Database

Mysql:

Kopieren/Importieren einer Tabelle aus einer DB in eine andere...

1. Drop table in target db if it already exists
 drop table 'targetdb'.'tablename';

2. Create the table
create table 'targetdb'.'tablename' select * from 'sourcedb'.'tablename';

Howto use multiple line html string in append or something like that:

Howto use multiple line html string in append or something like that:

1. define variable:
var tablefooter = '<tfoot><tr>'
tablefooter += '<td><input name="tfoot input" value="Suche" /></td>'
tablefooter += '<td><input name="tfoot input" value="Suche" /></td>'
tablefooter += '<td><input name="tfoot input" value="Suche" /></td>'
tablefooter +=' </tr></tfoot>';


2. use variable
oTable.append(tablefooter);