Comments (4)
After some searching… executing in mariadb container:
mysqld_safe --skip-syslog
Logs give me error about permissions:
160926 14:36:47 mysqld_safe Starting mysqld daemon with databases from /data
2016-09-26 14:36:47 139856825276352 [Note] /usr/sbin/mysqld (mysqld 10.1.17-MariaDB-1~jessie) starting as process 3016 ...
2016-09-26 14:36:47 139856825276352 [ERROR] mysqld: File '/var/log/mysql/mariadb-bin.index' not found (Errcode: 13 "Permission denied")
2016-09-26 14:36:47 139856825276352 [ERROR] Aborting
OK, I do some chown -R core:adm /var/log/mysql
and some new errors appear.
160926 14:36:47 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
160926 14:38:16 mysqld_safe Starting mysqld daemon with databases from /data
2016-09-26 14:38:16 139661845735360 [Note] /usr/sbin/mysqld (mysqld 10.1.17-MariaDB-1~jessie) starting as process 3241 ...
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: Using Linux native AIO
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: Using SSE crc32 instructions
2016-09-26 14:38:16 139661845735360 [Note] InnoDB: Initializing buffer pool, size = 256.0M
2016-09-26 14:38:17 139661845735360 [Note] InnoDB: Completed initialization of buffer pool
2016-09-26 14:38:17 139661845735360 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2016-09-26 14:38:17 139661845735360 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2016-09-26 14:38:17 139661845735360 [Note] InnoDB: Database physically writes the file full: wait...
2016-09-26 14:38:17 139661845735360 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2016-09-26 14:38:17 139661845735360 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2016-09-26 14:38:18 139661845735360 [Warning] InnoDB: New log files created, LSN=45883
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Doublewrite buffer created
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: 128 rollback segment(s) are active.
2016-09-26 14:38:18 139661845735360 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Foreign key constraint system tables created
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Tablespace and datafile system tables created.
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Waiting for purge to start
2016-09-26 14:38:18 139661845735360 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.31-77.0 started; log sequence number 0
2016-09-26 14:38:18 139661049562880 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-09-26 14:38:18 139661845735360 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-26 14:38:18 139661845735360 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2016-09-26 14:38:18 139661845494528 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
2016-09-26 14:38:18 139661845735360 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2016-09-26 14:38:18 139661845735360 [Note] Server socket created on IP: '::'.
2016-09-26 14:38:18 139661845735360 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
160926 14:38:18 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
from docker.
In fact you just need to chown every mysql
writeable folders to core
user.
/var/log/mysql.err
==>chown -R core:adm /var/log/mysql.err
/var/log/mysql.log
==>chown -R core:adm /var/log/mysql.log
/var/log/mysql
==>chown -R core:adm /var/log/mysql
/var/run/mysqld
==>chown -R core:root /var/run/mysqld
from docker.
Any chance of a pull request?
from docker.
Yes I’ll do that 😁
from docker.
Related Issues (14)
- Directory structures required etc HOT 2
- Add envvars to PHP-FPM configuration files HOT 1
- Problem of starting docker container HOT 5
- Insecure writable by web user /data directory in nginx-php package HOT 3
- Problem in tiny-tiny-rss:latest: no "git" available HOT 1
- Add docker for DNS-Tunnel? HOT 2
- Certificates for CouchPotato HOT 1
- Nginx error HOT 5
- Cannot upload files larger than 4KB HOT 1
- Tiny Tiny RSS Git URL is outdated HOT 2
- Old /config/loop in nginx-php HOT 2
- [phpmyadmin] php5-fpm.sock owned by core HOT 1
- php-fpm.sock Operation permitted HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.