Mariadb ERROR 2002

Status
Not open for further replies.

oguruma

Patron
Joined
Jan 2, 2016
Messages
226
Attempting to set up a Nextcloud jail per the guide below. When I attempt to run secure installation I receive

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")

No idea where to begin.... I don't see a /tmp/mysql.sock file at all...

mysql error log


2018-05-24 13:55:32 34422743040 [Warning] option 'table_open_cache': unsigned value 4 adjusted to 10
2018-05-24 13:55:32 34422743040 [Note] /usr/local/libexec/mysqld (mysqld 10.1.33-MariaDB) starting as pr$
/usr/local/libexec/mysqld: Undefined symbol "fdatasync"
180524 13:55:32 mysqld_safe mysqld from pid file /var/db/mysql/nextcloud.pid ended
180524 14:02:25 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
2018-05-24 14:02:25 34422743040 [Warning] option 'table_open_cache': unsigned value 4 adjusted to 10
2018-05-24 14:02:25 34422743040 [Note] /usr/local/libexec/mysqld (mysqld 10.1.33-MariaDB) starting as pr$
/usr/local/libexec/mysqld: Undefined symbol "fdatasync"
180524 14:02:25 mysqld_safe mysqld from pid file /var/db/mysql/nextcloud.pid ended



https://forums.freenas.org/index.ph...3-on-freenas-11-with-all-checks-passed.58634/
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Sounds like a php configuration error. Check the php section of the guide and make sure you have everything set up correctly.
 

oguruma

Patron
Joined
Jan 2, 2016
Messages
226
Sounds like a php configuration error. Check the php section of the guide and make sure you have everything set up correctly.

I haven't even made it to the php section.... I verified Apache works, but after that I installed mariadb and I started getting that error....
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Ok well I guess it's not php then. :)
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Yeah sorry about that, I could have sworn I saw that error before from a misconfigured php.ini file.

Me memory just aint what she used to be...........
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Another one using a warden jail. You need to be using iocage. There are at least two fairly-detailed guides on the subject, here and here.
 
Status
Not open for further replies.
Top