# |
Jan 13th 2020, 16:40 |
neon1024 |
Good find! |
# |
Jan 13th 2020, 16:37 |
Human_G33k |
it was about the test connection |
# |
Jan 13th 2020, 16:37 |
Human_G33k |
ok find |
# |
Jan 13th 2020, 16:35 |
neon1024 |
As I mentioned above for MySQL. Although I can’t help with Postgres, and I haven’t used it, sorry |
# |
Jan 13th 2020, 16:35 |
neon1024 |
I would imagine that Postgres is configured to only allow localhost |
# |
Jan 13th 2020, 16:35 |
Human_G33k |
but not from the lan |
# |
Jan 13th 2020, 16:35 |
Human_G33k |
it s working fine in/from/to localhost |
# |
Jan 13th 2020, 16:35 |
neon1024 |
Could simply be a missing `use` statement |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
*app_local |
# |
Jan 13th 2020, 16:34 |
neon1024 |
I mean, is Postgres installed? |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
and in the same in app.php |
# |
Jan 13th 2020, 16:34 |
neon1024 |
Might be Composer autoloader? |
# |
Jan 13th 2020, 16:34 |
neon1024 |
You don’t need it, but your application is looking for it. That’s your bug |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
'driver' => Postgres::class, in app.php |
# |
Jan 13th 2020, 16:34 |
neon1024 |
Because the app.default.php has been copied |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
why i need the mysql if i will not use it ? |
# |
Jan 13th 2020, 16:33 |
neon1024 |
Probably because your app.php is using MySQL |
# |
Jan 13th 2020, 16:33 |
neon1024 |
Is why that message is being displayed |
# |
Jan 13th 2020, 16:33 |
neon1024 |
missing PHP extension |
# |
Jan 13th 2020, 16:33 |
Human_G33k |
so why the error message ? |
# |
Jan 13th 2020, 16:33 |
Human_G33k |
il my all config file |
# |
Jan 13th 2020, 16:33 |
Human_G33k |
'driver' => Postgres::class, |
# |
Jan 13th 2020, 16:33 |
neon1024 |
So read the error out loud now to yourself |
# |
Jan 13th 2020, 16:32 |
neon1024 |
Right, so nothing to do with Postgres then. |
# |
Jan 13th 2020, 16:32 |
Human_G33k |
is the error |
# |
Jan 13th 2020, 16:32 |
Human_G33k |
Database driver Cake\Database\Driver\Mysql cannot be used due to a missing PHP extension or unmet dependency |
# |
Jan 13th 2020, 16:32 |
neon1024 |
That doesn’t sound right, MySQL wouldn’t have a Postgres config file, they’re different databases |
# |
Jan 13th 2020, 16:31 |
neon1024 |
You said “but not from the lan” |
# |
Jan 13th 2020, 16:31 |
Human_G33k |
and it talk about mysql but all conf file contain postgres |
# |
Jan 13th 2020, 16:31 |
neon1024 |
Oh sure, 127.0.0.1 will work, that’s localhost |
# |
Jan 13th 2020, 16:31 |
neon1024 |
192.168.1.12 or whatever it is |
# |
Jan 13th 2020, 16:31 |
Human_G33k |
but it s work in local |
# |
Jan 13th 2020, 16:31 |
neon1024 |
..and then access is using the machines lan ip |
# |
Jan 13th 2020, 16:30 |
Human_G33k |
it says database driver is wrong |
# |
Jan 13th 2020, 16:30 |
neon1024 |
You would need to expose the database to the network |
# |
Jan 13th 2020, 16:30 |
Human_G33k |
but not from the lan |
# |
Jan 13th 2020, 16:30 |
Human_G33k |
local work with 127 |
# |
Jan 13th 2020, 16:30 |
Human_G33k |
the conf in local or app not work |
# |
Jan 13th 2020, 16:29 |
ndm |
Basically, yes. You'd most likely use `allowEmptyString()`, as most of the time request data is actually a string, as validation happens before marshalling. If you have an API, and therefore parse raw data into request data, you might have a problem, as @dereuromark pointed out, as you'd likely receive integers as actual integers. |
# |
Jan 13th 2020, 16:29 |
Human_G33k |
how can i set up config (database) for local network with embed dev php server ? |
# |
Jan 13th 2020, 16:25 |
phantomwatson |
Oh, cool. So essentially for a nullable integer field, I just need `allowEmptyArbitrary()` :) |