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

How to specify the host ? #4

Closed
gilles6 opened this issue Nov 22, 2017 · 1 comment
Closed

How to specify the host ? #4

gilles6 opened this issue Nov 22, 2017 · 1 comment

Comments

@gilles6
Copy link

gilles6 commented Nov 22, 2017

$ php artisan db:spy dp:../mysql-connector-java-5.1.44-bin.jar
Unknown connection 'dp:../mysql-connector-java-5.1.44-bin.jar'. Command will fail unless you provide DB credentials.

 Enter database name:
 > blog

 Enter database username:
 > root

*** Required parameter 'host' (hostname[:port] host where database resides with optional port) was not specified.  It is required for this database type. ***
Something went wrong
@Stolz
Copy link
Owner

Stolz commented Nov 22, 2017

The parameter you need to pass is not the JAVA connector file path, but the name of your database connection in your Laravel configuration, that is, the value of the default key of your config/database.php file.

To provide the JAVA connector file path you need to edit the config/spy.php file.

@Stolz Stolz closed this as completed Nov 22, 2017
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