Hallo,
ich hatte ein Joomla 2.5 system auf meinem Localhost (XAMPP). Jetzt habe ich die einzelnen Files aus dem htdocs ordner hochgeladen und die Tabellen aus PHPMyAdmin exportiert und in die Datenbank bei bplaced importiert. Dann habe ich mir die configuration.php vorgeknüpft und folgende werte bearbeitet:
public $password = '--passwort welches ich bei der erstellung der datenbank angegeben habe--';
public $db = '1920pixel_gymfeu'; --->datenbankname
public $log_path = '/users/1920pixel/www/logs';
public $tmp_path = '/users/1920pixel/www/tmp';
Trotzdem bekomme ich noch die Meldung: Database connection error (2): Could not connect to MySQL.
public $password = '--passwort welches ich bei der erstellung der datenbank angegeben habe--';
public $password = '1920pixel_gymfeu'; --->datenbankname
zwei mal public $password!?
Es wäre hilfreich, wenn du alle relevanten Einstellungen posten würdest. Also auch was du bei host und username eingetragen hast. Daß die Datenbank “1920pixel_gymfeu” vorhanden ist und auch so heißt, hast du ja sicher schon geprüft.
Hier ist jetzt einfach mal der gesamte Inhalt der configuration.php. Muss ich dort, oder irgendwo anders noch etwas ändern?
<?php
class JConfig {
public $offline = '0';
public $offline_message = 'Diese Website ist zurzeit im Wartungsmodus.<br />Bitte später wiederkommen.';
public $display_offline_message = '1';
public $offline_image = '';
public $sitename = 'Feuchtwanger Gymnasium';
public $editor = 'tinymce';
public $captcha = '0';
public $list_limit = '20';
public $access = '2';
public $debug = '0';
public $debug_lang = '0';
public $dbtype = 'mysql';
public $host = 'localhost';
public $user = '1920pixel_gymfeu';
public $password = '********';
public $db = '1920pixel_gymfeu';
public $dbprefix = 'ferky_';
public $live_site = '';
public $secret = '1r8c80a4Eox2vMY2';
public $gzip = '0';
public $error_reporting = 'default';
public $helpurl = 'http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help16:{keyref}';
public $ftp_host = '1920pixel.bplaced.net';
public $ftp_port = '21';
public $ftp_user = '';
public $ftp_pass = '';
public $ftp_root = '';
public $ftp_enable = '0';
public $offset = 'UTC';
public $offset_user = 'UTC';
public $mailer = 'mail';
public $mailfrom = 'deckerfabian@ymail.com';
public $fromname = 'Feuchtwanger Gymnasium';
public $sendmail = '/usr/sbin/sendmail';
public $smtpauth = '0';
public $smtpuser = '';
public $smtppass = '';
public $smtphost = 'localhost';
public $smtpsecure = 'none';
public $smtpport = '25';
public $caching = '0';
public $cache_handler = 'file';
public $cachetime = '15';
public $MetaDesc = '';
public $MetaKeys = '';
public $MetaTitle = '1';
public $MetaAuthor = '1';
public $MetaVersion = '0';
public $robots = '';
public $sef = '1';
public $sef_rewrite = '0';
public $sef_suffix = '0';
public $unicodeslugs = '0';
public $feed_limit = '10';
public $log_path = '/users/1920pixel/www/logs';
public $tmp_path = '/users/1920pixel/www/tmp';
public $lifetime = '15';
public $session_handler = 'database';
public $MetaRights = '';
public $sitename_pagetitles = '0';
public $force_ssl = '0';
public $feed_email = 'author';
public $cookie_domain = '';
public $cookie_path = '';
}
Die Datenbankeinstellungen sehen soweit richtig aus. Passwort ist richtig, nehme ich an. Stimmt der Präfix, so wie er da steht mit dem in der DB überein?
Da in meinen Daten in der Datenbank überall ferky_… steht, geh ich davon aus, dass das der Präfix ist. ich hab auch schonmal probiert, 1920pixel_ als präfix zu nehmen und gymfeu als db Name