Hi everyone!
Iâm attempting to set up a nextcolud server on my website thatâs hosted by fatcow. I created a subdirectory called nextcloud and then I ran the setup-nextcloud.php script. Everything installed fine and I was presented with the nextcloud configuration web page. I added the info for the admin account and then I choose MySQL/MariaDB with the following info:
zog
nextcloud
localhost
I received this output:
Error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory
I did some Googling of the error and I found a suggestion to change âlocalhostâ to â127.0.0.0â so I decided to try that:
zog
nextcloud
127.0.0.0
However, that gave me this error:
Error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] Network is unreachable
I manually created a MySQL database called nextcloud, with the same admin user and password that I used on the configuration webpage but it didnât work.
I think that the problem is that MySQL is looking for the database in the wrong place. I went through the config.sample.php file, but the MySQL section didnât have any information on how to redirect the database.
According to fatcow, the path to my MySQL directory is ****egcom.fatcowmysql.com I tried entering that on the setup webpage but I got the following error
Error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user âzogâ@â10.%â to database ânextcloudâ
When I tried adding a port, (3306), as suggested on the bottom of the page, I got the same:
Error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user âzogâ@â10.%â to database ânextcloudâ
Does anyone have any suggestions?
Thanks!
zog