I Followed https://www.youtube.com/watch?v=PKsq7k2pwsI to install Nextcloud using docker, some errors happen when I config the Mariadb.
when came to the step mysql -uroot -p, it resulted:
Warning: World-writable config file '/etc/mysql/conf.d/custom.cnf' is ignored
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
I tried to chmod the file custom.cnf, but it seems no use, still 777
I can't connect to the MariaDB. Could anyone help me to figure out and solve the problem?
The following are the contents of the log:
------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 100
-------------------------------------
chown: changing ownership of '/config': Operation not permitted
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-initialise-db: executing...
Setting Up Initial Databases
chown: changing ownership of '/config/log/mysql/mariadb-bin.state': Operation not permitted
chown: changing ownership of '/config/log/mysql/mariadb-bin.000001': Operation not permitted
chown: changing ownership of '/config/log/mysql/mariadb-bin.index': Operation not permitted
chown: changing ownership of '/config/log/mysql': Operation not permitted
Warning: World-writable config file '/etc/mysql/conf.d/custom.cnf' is ignored
chown: changing ownership of '/config/databases': Operation not permitted
Cannot change ownership of the database directories to the 'abc'
user. Check that you have the necessary permissions and try again.
Warning: World-writable config file '/etc/mysql/conf.d/custom.cnf' is ignored
2019-12-11 22:00:44 0 [Note] mysqld (mysqld 10.4.10-MariaDB-1:10.4.10+maria~bionic-log) starting as process 273 ...
2019-12-11 22:00:44 0 [Warning] Setting lower_case_table_names=2 because file system for /config/databases/ is case insensitive
2019-12-11 22:00:44 0 [Note] InnoDB: Using Linux native AIO
2019-12-11 22:00:44 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-12-11 22:00:44 0 [Note] InnoDB: Uses event mutexes
2019-12-11 22:00:44 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-12-11 22:00:44 0 [Note] InnoDB: Number of pools: 1
2019-12-11 22:00:44 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-12-11 22:00:44 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2019-12-11 22:00:44 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2019-12-11 22:00:44 0 [Note] InnoDB: Completed initialization of buffer pool
2019-12-11 22:00:44 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-12-11 22:00:44 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-12-11 22:00:44 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-12-11 22:00:44 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-12-11 22:00:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-12-11 22:00:45 0 [Note] InnoDB: 10.4.10 started; log sequence number 113847; transaction id 9
2019-12-11 22:00:45 0 [Note] InnoDB: Loading buffer pool(s) from /config/databases/ib_buffer_pool
2019-12-11 22:00:45 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-12-11 22:00:45 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2019-12-11 22:00:45 0 [Note] InnoDB: Buffer pool(s) load completed at 191211 22:00:45
2019-12-11 22:00:45 6 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
2019-12-11 22:00:45 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2019-12-11 22:00:45 0 [Note] Server socket created on IP: '::'.
2019-12-11 22:00:45 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
2019-12-11 22:00:45 0 [ERROR] Aborting