H, Ich bin ein Neuling zu Kuchen php. Es gibt also ein Problem, mit dem ich konfrontiert bin.Mysql Fehler bei der Verwendung von Cake Bake
Ich habe XAMPP installiert und mein CakePHP Projektordner liegt in htdocs (/ opt/lampp/htdocs/cakephp). Wenn ich mit dem Befehl /.cake bake den Kuchen backen starte, erhalte ich einen mysql Fehler wie unten.
enter code here
PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /opt/lampp/htdocs/cakephp/cake/libs/model/datasources/dbo/dbo_mysql.php on line 552
können Sie mir helfen?
Was sagt Ihre Datei config/database.php? – RabidFire
Klasse DATABASE_CONFIG { \t var $ default = array ( \t \t 'Treiber' => 'mysql', \t \t 'persistent' => false, \t \t 'host' => 'localhost', \t \t 'anmelden' => 'root', \t \t 'Passwort' => '', \t \t 'Datenbank' => 'cake_blog_tutorial', \t \t 'Präfix' => '', \t); } Dies ist der Inhalt in der Datenbank.php im Konfigurationsordner –