Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
Try to delete file php.ini in c:\windows (or something like that), after that your cake will load the php.ini from your local servers php folder. Type php --ini in command line to ensure that loaded php.ini is from your local servers php folder. Works for me... пятница, 5 декабря 2014 г., 21:34:38 UTC+4 пользователь NickABusey написал: > > The fix is to change localhost to 127.0.0.1. > > On Sunday, April 6, 2014 1:20:58 PM UTC-6, Akitah Blessed wrote: >> >> I am getting this same error with a fresh install of mysql. My database >> settings are correct but for some reason, when i try and bake a model, >> CakePHP brings me back >> >> Database connection "Mysql" is missing, or could not be created. >> >> I've connected the database using other methods but for some reason, cake >> is sending me this error. MY DB settings are as follows: >> >> public $fixmycar = array( >> >> 'datasource' => 'Database/Mysql', >> >> 'persistent' => false, >> >> 'host' => 'localhost', >> >> 'login' => 'admin', >> >> 'password' => 'golden', >> >> 'database' => 'carfixdb', >> >> ); >> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
The fix is to change localhost to 127.0.0.1. On Sunday, April 6, 2014 1:20:58 PM UTC-6, Akitah Blessed wrote: > > I am getting this same error with a fresh install of mysql. My database > settings are correct but for some reason, when i try and bake a model, > CakePHP brings me back > > Database connection "Mysql" is missing, or could not be created. > > I've connected the database using other methods but for some reason, cake > is sending me this error. MY DB settings are as follows: > > public $fixmycar = array( > > 'datasource' => 'Database/Mysql', > > 'persistent' => false, > > 'host' => 'localhost', > > 'login' => 'admin', > > 'password' => 'golden', > > 'database' => 'carfixdb', > > ); > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
I am getting this same error with a fresh install of mysql. My database settings are correct but for some reason, when i try and bake a model, CakePHP brings me back Database connection "Mysql" is missing, or could not be created. I've connected the database using other methods but for some reason, cake is sending me this error. MY DB settings are as follows: public $fixmycar = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'admin', 'password' => 'golden', 'database' => 'carfixdb', ); -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
pls check user name ,database name and passoword correctly... On Friday, 17 May 2013 00:28:37 UTC+5:30, Gabriel Saulescu wrote: > > I am trying to install cakephp on my laptop. > I received this error. > My SO is a WindowsVista in 32 b. > I changed this: > extension=php_mssql.dll. > > I need your help, please. What I have to do? > > Thank you in advance. Gabriel > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
hi i have the same problem On Thursday, May 16, 2013 11:58:37 AM UTC-7, Gabriel Saulescu wrote: > > I am trying to install cakephp on my laptop. > I received this error. > My SO is a WindowsVista in 32 b. > I changed this: > extension=php_mssql.dll. > > I need your help, please. What I have to do? > > Thank you in advance. Gabriel > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
Hello, Gabriel I have same problem. Can you tell me how you fixed it. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
I fixed it. Chenan Patel helped me. Thank you, Chenan :) On Thursday, May 16, 2013 9:58:37 PM UTC+3, Gabriel Saulescu wrote: > > I am trying to install cakephp on my laptop. > I received this error. > My SO is a WindowsVista in 32 b. > I changed this: > extension=php_mssql.dll. > > I need your help, please. What I have to do? > > Thank you in advance. Gabriel > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
Hello again, I installed XAMP for PHP. APACHE and MYSQL are working ok. I installed CAKEPHP. And I changed files required by Cake, php.ini, database.php. core.php I received the following message: "Your version of PHP is 5.2.8 or higher. Your tmp directory is writable. The FileEngine is being used for core caching. To change the config edit APP/Config/core.php Your database configuration file is present. Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created. DebugKit plugin is present" Database.php looks like: class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'gabriel', 'password' => 'gabi62#', 'database' => 'cake', 'prefix' => '', //'encoding' => 'utf8', ); public $test = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'gabriel', 'password' => 'gabi62#', 'database' => 'test_cake', 'prefix' => '', //'encoding' => 'utf8', ); } php.ini looks like: extension=php_bz2.dll extension=php_curl.dll extension=php_mbstring.dll extension=php_exif.dll ;extension=php_fileinfo.dll extension=php_gd2.dll extension=php_gettext.dll ;extension=msql.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll extension=php_mssql.dll ;extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client ;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll extension=php_pdo.dll ;extension=php_pdo_mssql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll ;extension=php_pdo_sqlite_external.dll ;extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll I set up the rights in Mysql for the user gabriel Please, tell me where I am wrong? Thank you in advance -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
Hello again, I installed XAMP for PHP. APACHE and MYSQL are working ok. I installed CAKEPHP. And I changed files required by Cake, php.ini, database.php. core.php I received the following message: "Your version of PHP is 5.2.8 or higher. Your tmp directory is writable. The FileEngine is being used for core caching. To change the config edit APP/Config/core.php Your database configuration file is present. Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created. DebugKit plugin is present" Database.php looks like: class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'gabriel', 'password' => 'gabi62#', 'database' => 'cake', 'prefix' => '', //'encoding' => 'utf8', ); public $test = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'gabriel', 'password' => 'gabi62#', 'database' => 'test_cake', 'prefix' => '', //'encoding' => 'utf8', ); } php.ini looks like: extension=php_bz2.dll extension=php_curl.dll extension=php_mbstring.dll extension=php_exif.dll ;extension=php_fileinfo.dll extension=php_gd2.dll extension=php_gettext.dll ;extension=msql.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll extension=php_mssql.dll ;extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client ;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird. dll extension=php_pdo_mysql.dll extension=php_pdo.dll ;extension=php_pdo_mssql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll ;extension=php_pdo_sqlite_external.dll ;extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll I set up the rights in Mysql for the user gabriel Please, tell me where I am wrong? Thank you in advance On Thursday, May 16, 2013 9:58:37 PM UTC+3, Gabriel Saulescu wrote: > > I am trying to install cakephp on my laptop. > I received this error. > My SO is a WindowsVista in 32 b. > I changed this: > extension=php_mssql.dll. > > I need your help, please. What I have to do? > > Thank you in advance. Gabriel > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
On Thursday, May 16, 2013 9:58:37 PM UTC+3, Gabriel Saulescu wrote: > > I am trying to install cakephp on my laptop. > I received this error. > My SO is a WindowsVista in 32 b. > I changed this: > extension=php_mssql.dll. > > I need your help, please. What I have to do? > > Thank you in advance. Gabriel > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
Test is a schema not a database. Check your mysql server is running and if the config is correct and the schema is created. El 17/05/2013 12:19, "raj kumar Pustela" escribió: > WHEN U BAKE THE PROJECT U HAVE TO GIVEN DATABASE NAME CORRECTY.THEYN IT'S > AUTOMATICALLY CONNECTED TO THE DATABASE. > > IF U HAVE PREFIX IN DATABASE THEN U CAN GIVE U LIKE ZP_ PREFIXES ALSO. > > class DATABASE_CONFIG { > > public $default = array( > 'datasource' => 'Database/Mysql', > 'persistent' => false, > 'host' => 'localhost', > 'login' => 'root', > 'password' => '', > *'database' => 'test', TEST IS A DATABASE NAME* > 'prefix' => 'zp_', > ); > } > > > On Fri, May 17, 2013 at 3:43 PM, Victor Daniel Ojeda wrote: > >> You must create database and configure the file app/config/database.php >> >> class DATABASE_CONFIG { >> >> public $default = array( >> 'datasource' => 'Database/Mysql', >> 'persistent' => false, >> 'host' => 'localhost', >> 'login' => 'user', >> 'password' => 'password', >> 'database' => 'database_name', >> 'prefix' => '', >> //'encoding' => 'utf8', >> ); >> >> public $test = array( >> 'datasource' => 'Database/Mysql', >> 'persistent' => false, >> 'host' => 'localhost', >> 'login' => 'user', >> 'password' => 'password', >> 'database' => 'test_database_name', >> 'prefix' => '', >> //'encoding' => 'utf8', >> ); >> } >> >> >> 2013/5/16 >> >> I am trying to install cakephp on my laptop. >>> I received this error. >>> My SO is a WindowsVista in 32 b. >>> I changed this: >>> extension=php_mssql.dll. >>> >>> I need your help, please. What I have to do? >>> >>> Thank you in advance. Gabriel >>> >>> -- >>> 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+unsubscr...@googlegroups.com. >>> To post to this group, send email to cake-php@googlegroups.com. >>> Visit this group at http://groups.google.com/group/cake-php?hl=en. >>> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to cake-php@googlegroups.com. >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> 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+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
WHEN U BAKE THE PROJECT U HAVE TO GIVEN DATABASE NAME CORRECTY.THEYN IT'S AUTOMATICALLY CONNECTED TO THE DATABASE. IF U HAVE PREFIX IN DATABASE THEN U CAN GIVE U LIKE ZP_ PREFIXES ALSO. 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '', *'database' => 'test', TEST IS A DATABASE NAME* 'prefix' => 'zp_', ); } On Fri, May 17, 2013 at 3:43 PM, Victor Daniel Ojeda wrote: > You must create database and configure the file app/config/database.php > > class DATABASE_CONFIG { > > public $default = array( > 'datasource' => 'Database/Mysql', > 'persistent' => false, > 'host' => 'localhost', > 'login' => 'user', > 'password' => 'password', > 'database' => 'database_name', > 'prefix' => '', > //'encoding' => 'utf8', > ); > > public $test = array( > 'datasource' => 'Database/Mysql', > 'persistent' => false, > 'host' => 'localhost', > 'login' => 'user', > 'password' => 'password', > 'database' => 'test_database_name', > 'prefix' => '', > //'encoding' => 'utf8', > ); > } > > > 2013/5/16 > > I am trying to install cakephp on my laptop. >> I received this error. >> My SO is a WindowsVista in 32 b. >> I changed this: >> extension=php_mssql.dll. >> >> I need your help, please. What I have to do? >> >> Thank you in advance. Gabriel >> >> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to cake-php@googlegroups.com. >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> 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+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
You must create database and configure the file app/config/database.php class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'user', 'password' => 'password', 'database' => 'database_name', 'prefix' => '', //'encoding' => 'utf8', ); public $test = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'user', 'password' => 'password', 'database' => 'test_database_name', 'prefix' => '', //'encoding' => 'utf8', ); } 2013/5/16 > I am trying to install cakephp on my laptop. > I received this error. > My SO is a WindowsVista in 32 b. > I changed this: > extension=php_mssql.dll. > > I need your help, please. What I have to do? > > Thank you in advance. Gabriel > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.
I am trying to install cakephp on my laptop. I received this error. My SO is a WindowsVista in 32 b. I changed this: extension=php_mssql.dll. I need your help, please. What I have to do? Thank you in advance. Gabriel -- 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+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.