thanks but is this something I must setup? I thought it just needs a database and once you’ve supplied the database connection details, it should create it’s own tables etc.?
SQLSTATE[HY000] [1045] Access denied for user 'ninja'@'10.42.0.1' (using pa
ssword: YES) (Connection: mysql, SQL: select table_name as `name`, (data_le
ngth + index_length) as `size`, table_comment as `comment`, engine as `engi
ne`, table_collation as `collation` from information_schema.tables where ta
ble_schema = 'invoiceninja' and table_type = 'BASE TABLE' order by table_na
me)
In Connector.php line 65:
SQLSTATE[HY000] [1045] Access denied for user 'ninja'@'10.42.0.1' (using pa
ssword: YES)
mysql database is not running at 10.42.0.1. I have specified it to be running on a different IP i.e. 192.168.2.10
I can login using ninja, with password ninja and can see the database ninja. I even created a test table to make sure user ninja had appropriate permissions to create tables in this database.
I don’t understand why we have to supply mysql and database options twice in the env file.
Once you have the database connection details with username/password/database name then it should be enough to create any database tables within that database?
btw I tested with both mysql and without mysql details. still get the same error.
I never had to supply the DB details twice in .env, only once and I’ve installed invoiceninja a dozen times…
The access denied error is likely that you restricted the ninja db user to only localhost or only a specific IP, please recreate the user with allowing access from all so you can test the connection from invoiceninja