Jump to content

https://pimylifeup.com/raspberry-pi-owncloud/

 

Hi, im using this tutorial to create a owncloud server on my raspberry pi 3+

 

The last step is to login to owncloud, i did that. Wrote everything correctly. 

 image.thumb.png.718ae8e102d60e3b10a5533b0b3f39ab.png

 

For the databse host i tried 'localhost' and '127.0.0.1'. still same error on top

image.png.4f84a88342f29d9ffdf6d8c34d98cbc8.png

 

If i do 'localhost: 0000' (with my port number) it gives a different 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'

 

Can somebody help please?

Link to comment
https://linustechtips.com/topic/1394713-owncloud-raspberry-pi-cloud-server-help/
Share on other sites

Link to post
Share on other sites

9 minutes ago, Agena_ said:

image.thumb.png.11e41cdb8a2c34609355aac5626da949.pngi then found this random code line online about a issue

mysql:localhost;dbname=AppDatabase

and it says  i have a error in my SQL syntax.  line 10 in the image. I have no clue what this means and how to fix it. Anybody know?

I'm not an expert in this area, but aren't you supposed to replace 'localhost' with the servers ip and AppDatabase with the db name? I could be way off here, but that's my guess.

Link to post
Share on other sites

Always stick to using 127.0.0.1 over localhost, these should be totally interchangeable however Linux likes to assume localhost will be a socket connection and if you don't have a socket configured it will fail, using 127.0.0.1 will ensure it connects.

 

You likely messed something up on the permissions or misspelled a name somewhere. I strongly advise installing PHPMyAdmin for a nice GUI management interface, it makes configuring mySQL/MariaDB MUCH easier.

 

Heres a live demo - https://demo.phpmyadmin.net/master-config/

 

Are the webserver and DB server both running on the Ras Pi? If not then you'll need to change the hostname variable for the user account to 192.168.% to allow external connections (obvs change it to 10.0.% if that's what you're using).

 

Edit - also its 127.0.0.1:3306 and not 127.0.0.1: 3306 as the screenshot implies, that must be a typo in OwnCloud.

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×