You are not logged in.
I've written the wrong data in the initial install wizard in "Database Connection Setup"
in the first input, I thought it was asking me to choose between MySQL OR MariaDB, so I specified my option **and that was my mistake!**
(I'd really want to post the screenshots but the links don't paste here o.O)
I then changed
config/config_db.php :
to the line
public $dbhost = 'localhost'
just like the documentation specified -> /glpi-install.readthedocs.io/en/latest/install/wizard.html
But I didn't fixed the issue, and now it gives me error of:
It's giving me the error:
PHP Warning (2): mysqli::real_connect(): (HY000/2002): No such file or directory in /var/www/html/glpi/src/DBmysql.php at line 250
I still don't know **why the documentation only mentions MySQL?** If the form tells me that I can choose also MariaDB?
So these are my questions:
1. How to reset configuration to factory defaults
2. How to specify MariaDB Database in the initial wizard
Last edited by Cloufish (2023-02-26 21:43:58)
Offline
1. I figured I can reset it only by deleting the existing /gpli directory and un-archiving the new gpli[...].tar
2. Okay so then I figured that it doesn't matter whether I use MariaDB or MySQL, usually MariaDB still uses mysqli directory, am I right?
So the new problems i had:
1. setting localhost as the documentation specified also resulted in an error during configuration xD
I mean... my database lives in /var/lib/mysql <- and If I try to input that I also receive an error that the directory is not found
So only when I type "MariaDB" it lets me continue, but then later it crashes in the "Initialization of the Database"
What am I missing?
EDIT: OKAY SOLVED I'M SO SORRY!..
So it didn't crashed during this initialization stage - it just took really long.
Everything works now - so specifying "MariaDB" is correct - even though documentation says otherwise...
Last edited by Cloufish (2023-02-26 22:05:02)
Offline