I encountered a similar issue while setting up OCS Inventory NG Server and OCS Reports with MySQL v8, and I wanted to share my experience in case it helps others.
Problem:
I needed to know which versions of OCS Inventory Server and OCS Reports were compatible with MySQL v8. After some research and trial and error, I found that the installation works well with MySQL v8, but there are some important things to keep in mind, especially related to authentication configuration in MySQL v8.
Solution:
MySQL v8 Compatibility: Both OCS Inventory Server and OCS Reports work perfectly with MySQL v8, but there are a few specific configurations that need to be addressed for smooth operation, especially related to authentication. By default, MySQL v8 uses caching_sha2_password as the authentication method, which can cause issues when connecting older clients like the OCS Inventory Server.
Authentication Configuration:
- In my case, I had to ensure that MySQL v8 was configured to use mysql_native_password for user authentication to make it compatible with OCS Inventory Server.
- This can be done by running the following MySQL command:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourpassword';
- This command switches the root user's authentication to the older mysql_native_password method, which works better with legacy applications like OCS.
Debian Setup: I followed a Debian tutorial (in French) that guided me through the steps of installing MySQL v8 and configuring it for compatibility with OCS Inventory. If you're using a similar system, I would highly recommend checking out the tutorial for further details on installation and configuration
Vultr’s Documentation Help: For those using Vultr as their cloud provider, I also found their detailed documentation very helpful. The guide on how to install MySQL on Ubuntu and configure it properly for applications like OCS Inventory is comprehensive and can save a lot of time during setup.
Conclusion:
By ensuring proper authentication configuration in MySQL v8 and following the steps provided in the tutorials and documentation, I was able to successfully get OCS Inventory NG Server and OCS Reports running with MySQL v8 on my system.
I hope this helps others who are facing similar compatibility issues between OCS Inventory and MySQL v8!