cake-php
[Arriba] [Todas las Listas]

Re: Error: Mysql requiere un database conexión

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Re: Error: Mysql requiere un database conexión
From: Eric Haskins <ehask71@xxxxxxxxx>
Date: Tue, 18 Jun 2013 19:30:53 -0700 (PDT)
Delivery-date: Tue, 18 Jun 2013 22:31:03 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=jtDNXlGT+Gy35diNC/MHr0eymmLT4A+K5f4c+auvvuM=; b=QULYu7nZ0z2TA9gdR/h2+cT40uak/AhcdzQpGYQ6279QBSCog6EjQsxp4BWI7+PFgy 4I38U571UigtW8nPfW0BpwBhkh+OQ49vlKHClsIXwTSqJ2qh5tvOBC+H4sVz9YELRNHi yU3bm5TFjhWtzEPCRB4s9KgkUhw62VCpD73IsrW2JBlz7TADf4ep6TDMDeF4Z1ha0ieo aisXyLlJgGbHOhVfJgFZPU7039n2lbrZhdMDEsC9qMn1gBA79taypxx4Zn7HoZkRliog mgGBowzY/3DMWoz7x+vdF4GVd99MZkQjcE0WPoo2O6tJPQ1MwlTL3vKBuy02hveR7SGF gBnQ==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=jtDNXlGT+Gy35diNC/MHr0eymmLT4A+K5f4c+auvvuM=; b=FLABfxjUidd3K0DyR5NtO4KSt7CnjWVlcXfo70ka3sQJmQefpCT46Ad/Qlt6Vb+1HD ZOdQmQXBpZSIpMFvTMbuCufanw1waKdvlNlxm14xGzs8P7qz0Beny5V/4GZGU2Y5PqGy 011Dl2FjJzgxtcPdSAxQoKi+mMBmVZInQ0xF9PBQUOfAG72zHwejxQ/lpIcyPnbId/gy FOpN5BxOfUGKRavJDfyeozsqQSm3quKsTHDmlObZkgPuZMPdz0UWlKz4MDO0hwm0IZzA ZdHghK0VfpT4tHzy/O69dQTWwHyNE2fLMJG2KmfWLTNTFkOCeEk4NAWNI4m3rmuF0QZE T/6w==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <f2dbddf5-8a27-4c33-aad5-b35b9eeb325e@googlegroups.com>
List-archive: <http://groups.google.com/group/cake-php>
List-help: <http://groups.google.com/support/>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
References: <f77f0a20-8d18-4530-94a1-793649576235@googlegroups.com> <CAK+WH1L80FknQbqy6GWJJ+wTWajwDzR+EWBaJCHZ016FKv8cKQ@mail.gmail.com> <f2dbddf5-8a27-4c33-aad5-b35b9eeb325e@googlegroups.com>
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
*Raxit,

    editas el *settings para emparejar vuestro Usuario y contraseña para vuestro *Mysql 
caso? *Mysql Está corriendo?

Eric

En martes, junio 18, 2013 12:28:00 PM *UTC-4, *Raxit escribió:
>
> *Hi *raj *kumar,
>
> he añadido *database.*php Archivo con contenido mismo bajo *config carpeta todavía 
> da error mismo. Estoy utilizando pastel *php así que podría ser razón para este 
> problema. Tengo comprueba el *mysql archivo de conexión bajo *webroot, está 
> trabajando perfectamente bien pero el problema ocurre cuándo *i índice de llamada.*php.
>
> *Thanks
> 
>
> *Raxit En martes, junio 18, 2013 8:53:12 PM *UTC+5:30, *raj *kumar *Pustela escribió:
>>
>> *Hi..
>>      Hacer *u haber *database.*php Archivo en vuestro *config carpeta.
>>      
>>      Si no crea *database.*php Archivo en vuestro *config la carpeta
>>
>>       Sigue abajo proceso .. Es como sencillo.
>>
>> Crear el *database.*php Archivo y pasado el abajo código.
>>
>>     <?*php
>> Clase *DATABASE_*CONFIG
>>
>> #adj $*default = variedad(
>> '*datasource' => '*Database/*Mysql',
>> 'persistente' => falso,
>>  'anfitrión' => '*localhost',
>> '*login' => 'raíz',
>> 'contraseña' => '',
>>  '*database' => 'prueba',
>> 'prefijo'=>'*zp_',
>> );
>> }
>>
>>
>> En *Tue, *Jun 18, 2013 en 4:56 PM, *Raxit <rajpan...@xxxxxxxxx> escribió:
>>
>>> **Hi,
>>> *
>>>
>>> *estoy afrontando este problema de pasado 5 días. No encontró cualquier solución. He comprobado conexión mucho tiempo. Mi equipo también ha comprobado todas 
>>> las conexiones con *Mysql. El Archivo es también presente bajo camino mismo.
>>> *
>>>
>>> *Error: * Confirmarte ha creado el archivo : *app\*Config\*database.*php.
>>>
>>> *Aviso: * Si quieres *customize este mensaje de error, crea 
>>> *app\Errores\de Vista que\pierden_conexión.*ctp.
>>> *Stack Trace 
>>>    
>>>    - RAÍZ\*lib\Modelo\de Pastel\*ConnectionManager.*php Línea 101<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    *DboSource->__Construir(variedad)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Modelo\de Modelo\del Pastel.*php Línea 3417<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    *ConnectionManager::*getDataSource(Cadena)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Modelo\de Modelo\del Pastel.*php Línea 1083<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    Modelo->*setDataSource(cadena)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Modelo\de Modelo\del Pastel.*php Línea 3443<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    Modelo->*setSource(cadena)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Modelo\de Modelo\del Pastel.*php Línea 2698<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    Modelo->*getDataSource()<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - Modelo\de APP que\Pone.*php Línea 16<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    Modelo->encontrar(cadena)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - Controlador\de APP\*FunfordayController.*php Línea 268<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    Poniendo->*updateCache()<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - Controlador\de APP\*FunfordayController.*php Línea 47<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    *FunfordayController->_*loadSettings()<*http://Www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - [Función interna]<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    *FunfordayController->*beforeFilter(*CakeEvent)<*http://Www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Acontecimiento\de Pastel\*CakeEventManager.*php Línea 246<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ Usuario_de llamada_*func(variedad, 
>>>    *CakeEvent)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Controlador\de Controlador\del Pastel.*php Línea 670<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    *CakeEventManager->Despacho(*CakeEvent)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Pastel\*Routing\*Dispatcher.*php Línea 100<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ 
>>>    Controlador->*startupProcess()<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - RAÍZ\*lib\Pastel\*Routing\*Dispatcher.*php Línea 85<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ *Dispatcher->_Invocar(*FunfordayController, 
>>>    *CakeRequest, *CakeResponse)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>    - APP\*webroot\índice.*php Línea 94<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#>→ *Dispatcher->Despacho(*CakeRequest, 
>>>    *CakeResponse)<*http://www.locustgrovefamilymedicine.com/*funforday/*app/*webroot/índice.*php/#> 
>>>
>>>  -- 
>>> Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
>>> nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP
>>>  
>>> --- 
>>> Recibiste este mensaje porque eres *subscribed al *Google 
>>> Grupos "*CakePHP" grupo.
>>> A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar 
>>> un *email a pastel-*php+u...@xxxxxxxxxxxxxxxx.
>>> A correo a este grupo, envía *email a cake...@xxxxxxxxxxxxxxxx.
>>> Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php.
>>> Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.
>>>  
>>>  
>>>
>>
>>

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


Raxit,

   Did you edit the settings to match your User and password for your Mysql 
instance? Mysql is running?

Eric

On Tuesday, June 18, 2013 12:28:00 PM UTC-4, Raxit wrote:
>
> Hi raj kumar,
>
> I have added database.php file with same content under config folder still 
> it gives same error. I am using cake php so it might be reason for this 
> problem. I have check the mysql connection file under webroot, it is 
> working perfectly fine but problem occurs when i call index.php.
>
> Thanks
> Raxit
>
> On Tuesday, June 18, 2013 8:53:12 PM UTC+5:30, raj kumar Pustela wrote:
>>
>> Hi..
>>      do u have database.php file in your config folder.
>>      
>>      If don't create database.php file in your config folder
>>
>>       Follow below process .. it's as a simple.
>>
>> create the database.php file and past the below code.
>>
>>     <?php
>> class DATABASE_CONFIG {
>>
>> public $default = array(
>> 'datasource' => 'Database/Mysql',
>> 'persistent' => false,
>>  'host' => 'localhost',
>> 'login' => 'root',
>> 'password' => '',
>>  'database' => 'test',
>> 'prefix'=>'zp_',
>> );
>> }
>>
>>
>> On Tue, Jun 18, 2013 at 4:56 PM, Raxit <rajpan...@xxxxxxxxx> wrote:
>>
>>> *Hi,
>>> *
>>>
>>> *I am facing this problem from past 5 days. Didn't find any solution. I 
>>> have checked connection many times. my team have also checked all the 
>>> connections with Mysql. File is also present under same path.
>>> *
>>>
>>> *Error: * Confirm you have created the file : app\Config\database.php.
>>>
>>> *Notice: * If you want to customize this error message, create 
>>> app\View\Errors\missing_connection.ctp.
>>> Stack Trace 
>>>    
>>>    - ROOT\lib\Cake\Model\ConnectionManager.php line 101<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    DboSource->__construct(array)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Model\Model.php line 3417<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    ConnectionManager::getDataSource(string)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Model\Model.php line 1083<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    Model->setDataSource(string)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Model\Model.php line 3443<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    Model->setSource(string)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Model\Model.php line 2698<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    Model->getDataSource()<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - APP\Model\Setting.php line 16<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    Model->find(string)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - APP\Controller\FunfordayController.php line 268<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    Setting->updateCache()<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - APP\Controller\FunfordayController.php line 47<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    FunfordayController->_loadSettings()<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - [internal function]<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    FunfordayController->beforeFilter(CakeEvent)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Event\CakeEventManager.php line 246<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ call_user_func(array, 
>>>    CakeEvent)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Controller\Controller.php line 670<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    CakeEventManager->dispatch(CakeEvent)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Routing\Dispatcher.php line 100<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ 
>>>    Controller->startupProcess()<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - ROOT\lib\Cake\Routing\Dispatcher.php line 85<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ Dispatcher->_invoke(FunfordayController, 
>>>    CakeRequest, CakeResponse)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>    - APP\webroot\index.php line 94<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#>→ Dispatcher->dispatch(CakeRequest, 
>>>    CakeResponse)<http://www.locustgrovefamilymedicine.com/funforday/app/webroot/index.php/#> 
>>>
>>>  -- 
>>> Like Us on FaceBook https://www.facebook.com/CakePHP
>>> Find us on Twitter http://twitter.com/CakePHP
>>>  
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CakePHP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to cake-php+u...@xxxxxxxxxxxxxxxx.
>>> To post to this group, send email to cake...@xxxxxxxxxxxxxxxx.
>>> Visit this group at http://groups.google.com/group/cake-php.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>