Seite 1 von 1

phpmy admin installieren ?

Verfasst: 15.07.2004 19:12
von jazoo
wo muss ich hier meine Daten eingeben ?

// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // 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]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // 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

Verschoben

Verfasst: 15.07.2004 19:17
von Leuchte
Verschoben von Smalltalk nach Coding & Technik

KB Artikel KB:phpmyadmin
Hast du dort mal reingeschaut?

Verfasst: 15.07.2004 19:17
von Markus67
Hi ...

eigentlich brauchst du nur 4 Angaben ...

Code: Alles auswählen

$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
Hostname

Code: Alles auswählen

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user 
Benutzername

Code: Alles auswählen

$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed 
// with 'config' auth_type)
Password für die Datenbank

Code: Alles auswählen

$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
Datenbankname

Das sollte eigentlich reichen :wink:

Markus

Verfasst: 15.07.2004 19:20
von jazoo
Und an welcher stelle im Code muss ich etwas angeben ?
( Bitte Bsp: )

Verfasst: 15.07.2004 19:22
von Markus67
Hi ...

Zwischen die beiden Hochkomma :wink:

aus ...

Code: Alles auswählen

$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
wird ...

Code: Alles auswählen

$cfg['Servers'][$i]['meine_Datenbankname'] = ''; // If set to a db-name, only
Markus

Verfasst: 15.07.2004 19:30
von k-5
*g* er meinte ..

Code: Alles auswählen

$cfg['Servers'][$i]['only_db'] = 'datenbankname';
solltest du das teil wirklich online stellen (und nicht nur lokal benutzen) is wohl das hier zu empfehlen

Code: Alles auswählen

// features (pmadb) 
$cfg['Servers'][$i]['auth_type'] = 'http'; 
$cfg['Servers'][$i]['user'] = ''; 
$cfg['Servers'][$i]['password'] = '';
dadurch kommt eine passwort abfrage (sonst kann wirklich jeder drauf zugreifen)

lokal .. oder mit anderen schutzmechanismen (z.b. .htaccess )

Code: Alles auswählen

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'db_user';
$cfg['Servers'][$i]['password'] = 'db_pass';
[code]

Verfasst: 15.07.2004 19:36
von jazoo
Ich habe alles ganau so eingegeben doch jedesma kommt dieser Fehler

Es wurde kein Host angegeben!

Verfasst: 15.07.2004 19:43
von k-5
hm ? .. du sollst die einzelnen einträge abändern .. nicht nur diese 3 zeilen reinschreiben ..

Code: Alles auswählen

$cfg['Servers'][$i]['host'] = 'localhost';
(außer die datenbank befindet sich nicht auf dem selben host/computer)

Verfasst: 15.07.2004 19:51
von jazoo
Danke hab das problem gelöst !!!