Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if I change mysql service name, cakephp does not find service any more #71

Closed
mikk150 opened this issue May 26, 2017 · 3 comments
Closed

Comments

@mikk150
Copy link

mikk150 commented May 26, 2017

when creating cakephp application from example, then pre-hook throws this:

Generating Schema...
Error: Database connection "Mysql" is missing, or could not be created.
#0 /opt/app-root/src/lib/Cake/Model/Datasource/DboSource.php(269): Mysql->connect()
#1 /opt/app-root/src/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array)
#2 /opt/app-root/src/lib/Cake/Model/CakeSchema.php(201): ConnectionManager::getDataSource('default')
#3 /opt/app-root/src/lib/Cake/Console/Command/SchemaShell.php(148): CakeSchema->read(Array)
#4 /opt/app-root/src/lib/Cake/Console/Shell.php(458): SchemaShell->generate()
#5 /opt/app-root/src/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('generate', Array)
#6 /opt/app-root/src/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#7 /opt/app-root/src/app/Console/cake.php(47): ShellDispatcher::run(Array)
#8 {main}
@mikk150
Copy link
Author

mikk150 commented May 26, 2017

ok, db service name cannot contain "-"

@bparees
Copy link
Contributor

bparees commented May 26, 2017

thanks for the update.

@bparees bparees closed this as completed May 26, 2017
@mikk150
Copy link
Author

mikk150 commented May 26, 2017

I do not think, that this should be closed, as this should be validated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants