I am new to OJS system however I was trying to localhost it on my Mac even after having configured MySQL, Apache and all working fine. I am getting the following error. Any assistance is appreciated
[Database error has occurred: No such file or Directory]
September 17, 2017, 12:08pm
It might be difficult to assist you with only this information about the problem. Did you install it directly on your mac, do you use something like XAMPP or VirtualBox?
Can you try logging into your MySQL server via terminal using the second code example on this page:
MySQL :: MySQL 5.7 Reference Manual :: 4.5.1 mysql — The MySQL Command-Line Client
Sorry I forgot to mention that I have MySQL server installed on my Mac and not a VirtualBox.
September 25, 2017, 7:15am
Hm my advice would be to always use a VirtualBox or similar to have a boxed environment where you do your work - including the option to back up, create restore points and to duplicate your local server.
Did you suceed logging into your MySQL server as suggested above?
There is an issue in the old forum which may be related:
This problem you are facing has a similar thread:
Hi, I’m a designer with little and limited knowledge on coding (html and css).
I tried to install a ojs on my website (as a test before I do the installation at a friend’s site) and when doing that I faced this problem :"“A database error has occurred: No such file or directory”.
I also tried to do a local install using Mamp, and everytime I do it says: “The localhost page isn’t working”
Somehow I think they are the same problem. I am trying to install the version ojs-2.4.8-1
Does anyone kno…
Take a look on it, but in summary, you need create a database before start install procedure.