How to enable FEDERATED Engine in MySQL? - mysql

I installed a new instance on MySQL 5.7.6 on a Windows 7 Laptop.
I need to enable FEDERATED Engine on it.
in the [mysqld] section I added FEDERATED
but when I try to start the server I get error.
Here is what mysql error logs show that --FEDERATED is an unknown option
A note from MySQL documentation
To include the FEDERATED storage engine if you build MySQL from
source, invoke CMake with the -DWITH_FEDERATED_STORAGE_ENGINE option.
How do I CMake with -DWITH_FEDERATED_STORAGE_ENGIN on windows?
Here is the error from MySQL error files
2015-10-27T04:15:47.031678Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-10-27T04:15:47.031678Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2015-10-27T04:15:47.034678Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.9-log) starting as process 5780 ...
2015-10-27T04:15:47.046679Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-10-27T04:15:47.047679Z 0 [Note] InnoDB: Uses event mutexes
2015-10-27T04:15:47.048680Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2015-10-27T04:15:47.049680Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-10-27T04:15:47.049680Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
2015-10-27T04:15:47.051680Z 0 [Note] InnoDB: Number of pools: 1
2015-10-27T04:15:47.052680Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2015-10-27T04:15:47.089684Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M
2015-10-27T04:15:47.092684Z 0 [Note] InnoDB: Completed initialization of buffer pool
2015-10-27T04:15:47.220697Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2015-10-27T04:15:47.373712Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2015-10-27T04:15:47.374712Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2015-10-27T04:15:47.533728Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2015-10-27T04:15:47.541729Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2015-10-27T04:15:47.543729Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2015-10-27T04:15:47.546729Z 0 [Note] InnoDB: Waiting for purge to start
2015-10-27T04:15:47.597734Z 0 [Note] InnoDB: 5.7.9 started; log sequence number 2472339
2015-10-27T04:15:47.600735Z 0 [Note] InnoDB: Loading buffer pool(s) from C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool
2015-10-27T04:15:47.600735Z 0 [Note] Plugin 'FEDERATED' is disabled.
2015-10-27T04:15:47.600735Z 0 [Note] InnoDB: not started
2015-10-27T04:15:47.616736Z 0 [ERROR] unknown option '--FEDERATED'
2015-10-27T04:15:47.617736Z 0 [ERROR] Aborting
2015-10-27T04:15:47.618737Z 0 [Note] Binlog end
2015-10-27T04:15:47.620737Z 0 [Note] Shutting down plugin 'ngram'
2015-10-27T04:15:47.621737Z 0 [Note] Shutting down plugin 'partition'
2015-10-27T04:15:47.623737Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2015-10-27T04:15:47.624737Z 0 [Note] Shutting down plugin 'ARCHIVE'
2015-10-27T04:15:47.625737Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-10-27T04:15:47.627737Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2015-10-27T04:15:47.629738Z 0 [Note] Shutting down plugin 'MyISAM'
2015-10-27T04:15:47.630738Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2015-10-27T04:15:47.631738Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-10-27T04:15:47.632738Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-10-27T04:15:47.635738Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-10-27T04:15:47.636738Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-10-27T04:15:47.637738Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-10-27T04:15:47.638739Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-10-27T04:15:47.639739Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-10-27T04:15:47.640739Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-10-27T04:15:47.641739Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-10-27T04:15:47.642739Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-10-27T04:15:47.643739Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-10-27T04:15:47.644739Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-10-27T04:15:47.645739Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-10-27T04:15:47.646739Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-10-27T04:15:47.647739Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-10-27T04:15:47.647739Z 0 [Note] InnoDB: Buffer pool(s) load completed at 151026 21:15:47
2015-10-27T04:15:47.648740Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2015-10-27T04:15:47.649740Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2015-10-27T04:15:47.650740Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-10-27T04:15:47.651740Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-10-27T04:15:47.652740Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-10-27T04:15:47.653740Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-10-27T04:15:47.654740Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-10-27T04:15:47.654740Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-10-27T04:15:47.655740Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-10-27T04:15:47.656740Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-10-27T04:15:47.657740Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2015-10-27T04:15:47.658741Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-10-27T04:15:47.658741Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-10-27T04:15:47.659741Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2015-10-27T04:15:47.660741Z 0 [Note] Shutting down plugin 'InnoDB'
2015-10-27T04:15:47.661741Z 0 [Note] InnoDB: FTS optimize thread exiting.
2015-10-27T04:15:47.662741Z 0 [Note] InnoDB: Starting shutdown...
2015-10-27T04:15:47.763751Z 0 [Note] InnoDB: Dumping buffer pool(s) to C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool
2015-10-27T04:15:47.779753Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 151026 21:15:47
2015-10-27T04:15:49.017876Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2472358
2015-10-27T04:15:49.018877Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2015-10-27T04:15:49.019877Z 0 [Note] Shutting down plugin 'MEMORY'
2015-10-27T04:15:49.020877Z 0 [Note] Shutting down plugin 'CSV'
2015-10-27T04:15:49.020877Z 0 [Note] Shutting down plugin 'sha256_password'
2015-10-27T04:15:49.021877Z 0 [Note] Shutting down plugin 'mysql_native_password'
2015-10-27T04:15:49.022877Z 0 [Note] Shutting down plugin 'binlog'
2015-10-27T04:15:49.023877Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Shutdown complete

I figured it out.
FEDERATED should be federated in my.ini file.

I recently help to my co-worker to enable this,
He was using wamp in windows 7,
You should have care with my.ini file.
you probably can see a line like this:
# The MySQL server
[wampmysqld]
port = 3306
socket = /tmp/mysql.sock
key_buffer_size = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
You should have to add this above to enable federeted:
# Here follows entries for some specific programs
[mysqld]
federated
You final result could be something like this:
# Here follows entries for some specific programs
[mysqld]
federated
# The MySQL server
[wampmysqld]
port = 3306
socket = /tmp/mysql.sock
key_buffer_size = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
basedir=c:/wamp/bin/mysql/mysql5.6.17
log-error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.6.17/data
Finally you have to restart your services.
I hope this help.

Related

MySQL doesn't like any configs ins ~/.my.cnf

Mac El Capitan (10.11.6) here. I installed MySQL via homebrew (brew install mysql, which installed 5.7.17) and was able to get it started with defaults (absolutely zero configuration to my.cnf). I was able to create a database with tables, populate them, etc.
I open ~/.my.cnf and see that its empty, which makes sense seeing that I never added any special configs to it in the first place.
So I add (to this empty file):
[mysqld]
default-storage-engine = innodb
default-character-set=utf8
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
I then run mysql.server start to start MySQL and:
mysql.server start
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/MyUsername.local.pid).
If I clear (and make empty again) the contents of ~/.my.cnf and restart MySQL, it starts up perfectly fine (no errors; I can query tables, etc.). But if I add those contents back in, I get the same error.
So clearly MySQL is checking ~/.my.cnf for configs to load, and clearly there's something about that syntax it doesn't like. So I start a series of config/test cycles to see which property is the offender.
I change ~/.my.cnf to:
[mysqld]
default-storage-engine = innodb
And restart. Same exact error.
I change ~/.my.cnf to:
[mysqld]
default-character-set=utf8
And restart. Same exact error.
I change ~/.my.cnf to:
[mysqld]
collation-server = utf8_unicode_ci
And restart. Same exact error.
I change ~/.my.cnf to:
[mysqld]
init-connect='SET NAMES utf8'
And restart. Same exact error. Clearly something else is going on here. MySQL doesn't like it when I specify any configurations inside ~/.my.cnf. What's going on here?!?
I tried following all the recommendations in this article but none of them worked. Definitely seems like a MacOS/MySQL issue.
If I open /usr/local/var/mysql/MyUser.local.err I see:
2017-04-13T13:10:42.6NZ mysqld_safe Logging to '/usr/local/var/mysql/MyUser.local.err'.
2017-04-13T13:10:42.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2017-04-13T13:10:42.365982Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-13T13:10:42.366238Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-04-13T13:10:42.366286Z 0 [Note] /usr/local/Cellar/mysql/5.7.17/bin/mysqld (mysqld 5.7.17) starting as process 56561 ...
2017-04-13T13:10:42.369426Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2017-04-13T13:10:42.371041Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-04-13T13:10:42.371058Z 0 [Note] InnoDB: Uses event mutexes
2017-04-13T13:10:42.371062Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-04-13T13:10:42.371066Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-04-13T13:10:42.371389Z 0 [Note] InnoDB: Number of pools: 1
2017-04-13T13:10:42.371487Z 0 [Note] InnoDB: Using CPU crc32 instructions
2017-04-13T13:10:42.373341Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-04-13T13:10:42.385062Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-04-13T13:10:42.402413Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-04-13T13:10:42.456473Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2017-04-13T13:10:42.456722Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2017-04-13T13:10:42.498060Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2017-04-13T13:10:42.499778Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2017-04-13T13:10:42.499807Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2017-04-13T13:10:42.500089Z 0 [Note] InnoDB: Waiting for purge to start
2017-04-13T13:10:42.550861Z 0 [Note] InnoDB: 5.7.17 started; log sequence number 6305962580
2017-04-13T13:10:42.551099Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/var/mysql/ib_buffer_pool
2017-04-13T13:10:42.551345Z 0 [Note] Plugin 'FEDERATED' is disabled.
2017-04-13T13:10:42.555196Z 0 [Note] InnoDB: Buffer pool(s) load completed at 170413 13:10:42
2017-04-13T13:10:42.559085Z 0 [ERROR] unknown variable 'default-character-set=utf8'
2017-04-13T13:10:42.559125Z 0 [ERROR] Aborting
2017-04-13T13:10:42.559139Z 0 [Note] Binlog end
2017-04-13T13:10:42.559221Z 0 [Note] Shutting down plugin 'ngram'
2017-04-13T13:10:42.559253Z 0 [Note] Shutting down plugin 'partition'
2017-04-13T13:10:42.559266Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2017-04-13T13:10:42.559300Z 0 [Note] Shutting down plugin 'ARCHIVE'
2017-04-13T13:10:42.559311Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2017-04-13T13:10:42.559387Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2017-04-13T13:10:42.559406Z 0 [Note] Shutting down plugin 'MyISAM'
2017-04-13T13:10:42.559430Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2017-04-13T13:10:42.559439Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2017-04-13T13:10:42.559443Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2017-04-13T13:10:42.559447Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2017-04-13T13:10:42.559450Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2017-04-13T13:10:42.559453Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2017-04-13T13:10:42.559457Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2017-04-13T13:10:42.559460Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2017-04-13T13:10:42.559464Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2017-04-13T13:10:42.559467Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2017-04-13T13:10:42.559473Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2017-04-13T13:10:42.559477Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2017-04-13T13:10:42.559510Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2017-04-13T13:10:42.559514Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2017-04-13T13:10:42.559517Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2017-04-13T13:10:42.559523Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2017-04-13T13:10:42.559529Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2017-04-13T13:10:42.559535Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2017-04-13T13:10:42.559539Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2017-04-13T13:10:42.559543Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2017-04-13T13:10:42.559546Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2017-04-13T13:10:42.559550Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2017-04-13T13:10:42.559588Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2017-04-13T13:10:42.559608Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2017-04-13T13:10:42.559622Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2017-04-13T13:10:42.559629Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2017-04-13T13:10:42.559635Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2017-04-13T13:10:42.559640Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2017-04-13T13:10:42.559665Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2017-04-13T13:10:42.559674Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2017-04-13T13:10:42.559681Z 0 [Note] Shutting down plugin 'InnoDB'
2017-04-13T13:10:42.559742Z 0 [Note] InnoDB: FTS optimize thread exiting.
2017-04-13T13:10:42.559798Z 0 [Note] InnoDB: Starting shutdown...
2017-04-13T13:10:42.665019Z 0 [Note] InnoDB: Dumping buffer pool(s) to /usr/local/var/mysql/ib_buffer_pool
2017-04-13T13:10:42.665949Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 170413 13:10:42
2017-04-13T13:10:44.125226Z 0 [Note] InnoDB: Shutdown completed; log sequence number 6305962599
2017-04-13T13:10:44.126507Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-04-13T13:10:44.126528Z 0 [Note] Shutting down plugin 'MEMORY'
2017-04-13T13:10:44.126540Z 0 [Note] Shutting down plugin 'CSV'
2017-04-13T13:10:44.126545Z 0 [Note] Shutting down plugin 'sha256_password'
2017-04-13T13:10:44.126549Z 0 [Note] Shutting down plugin 'mysql_native_password'
2017-04-13T13:10:44.126701Z 0 [Note] Shutting down plugin 'binlog'
2017-04-13T13:10:44.126824Z 0 [Note] /usr/local/Cellar/mysql/5.7.17/bin/mysqld: Shutdown complete
2017-04-13T13:10:44.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/MyUser.local.pid ended
Regarding character-set: what you write may be no longer allowed.
See Change MySQL default character set to UTF-8 in my.cnf

install mysql server on linux without admin persmission

I tried to install MySQL 5.7 on a redhat server without root permission. I downloaded the source code and it compiled and installed smoothly. But when I run mysqld it always pop out error.
I followed the instruction on
http://www.martijn-onderwater.nl/2010/11/23/installing-mysql-on-linux-without-root-privileges/
and I created a my.cnf file
[mysqld]
port=3306
socket=/afs/crc.nd.edu/user/j/jlai1/MySQL/thesock
basedir=/afs/crc.nd.edu/user/j/jlai1/MySQL
datadir=data
pid-file=$HOME/MySQL/mysql.pid
user=root
[client]
port=3306
socket=$MySQL_HOME/thesock
user=root
[mysqladmin]
socket=$MySQL_HOME/thesock
user=root
when I run ./bin/mysqld --defaults-file=my.cnf --initialize, it works fine. But I got the following problem
./bin/mysqld --defaults-file=my.cnf
2017-02-24T16:04:40.098102Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-02-24T16:04:40.098259Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-02-24T16:04:40.098302Z 0 [Note] ./bin/mysqld (mysqld 5.7.17) starting as process 1786 ...
2017-02-24T16:04:40.103470Z 0 [Warning] One can only use the --user switch if running as root
2017-02-24T16:04:40.105092Z 0 [Note] InnoDB: PUNCH HOLE support available
2017-02-24T16:04:40.105121Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-02-24T16:04:40.105128Z 0 [Note] InnoDB: Uses event mutexes
2017-02-24T16:04:40.105137Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-02-24T16:04:40.105143Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-02-24T16:04:40.105466Z 0 [Note] InnoDB: Number of pools: 1
2017-02-24T16:04:40.105593Z 0 [Note] InnoDB: Using CPU crc32 instructions
2017-02-24T16:04:40.106782Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-02-24T16:04:40.115005Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-02-24T16:04:40.117871Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2017-02-24T16:04:40.133076Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-02-24T16:04:40.150182Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2017-02-24T16:04:40.150804Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2017-02-24T16:04:40.279174Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2017-02-24T16:04:40.280871Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2017-02-24T16:04:40.280904Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2017-02-24T16:04:40.281963Z 0 [Note] InnoDB: Waiting for purge to start
2017-02-24T16:04:40.332115Z 0 [Note] InnoDB: 5.7.17 started; log sequence number 2534599
2017-02-24T16:04:40.332297Z 0 [Note] InnoDB: Loading buffer pool(s) from /afs/crc.nd.edu/user/j/jlai1/MySQL/data/ib_buffer_pool
2017-02-24T16:04:40.332547Z 0 [Note] Plugin 'FEDERATED' is disabled.
2017-02-24T16:04:40.337533Z 0 [Note] InnoDB: Buffer pool(s) load completed at 170224 11:04:40
2017-02-24T16:04:40.340352Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2017-02-24T16:04:40.340424Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2017-02-24T16:04:40.342270Z 0 [Note] IPv6 is not available.
2017-02-24T16:04:40.342313Z 0 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2017-02-24T16:04:40.342355Z 0 [Note] Server socket created on IP: '0.0.0.0'.
2017-02-24T16:04:40.344528Z 0 [ERROR] Can't start server : Bind on unix socket: Operation not permitted
2017-02-24T16:04:40.344546Z 0 [ERROR] Do you already have another mysqld server running on socket: /afs/crc.nd.edu/user/j/jlai1/MySQL/thesock ?
2017-02-24T16:04:40.344563Z 0 [ERROR] Aborting
2017-02-24T16:04:40.344584Z 0 [Note] Binlog end
2017-02-24T16:04:40.344674Z 0 [Note] Shutting down plugin 'ngram'
2017-02-24T16:04:40.344686Z 0 [Note] Shutting down plugin 'partition'
2017-02-24T16:04:40.344692Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2017-02-24T16:04:40.344699Z 0 [Note] Shutting down plugin 'ARCHIVE'
2017-02-24T16:04:40.344704Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2017-02-24T16:04:40.344805Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2017-02-24T16:04:40.344813Z 0 [Note] Shutting down plugin 'MyISAM'
2017-02-24T16:04:40.344830Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2017-02-24T16:04:40.344835Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2017-02-24T16:04:40.344840Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2017-02-24T16:04:40.344844Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2017-02-24T16:04:40.344849Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2017-02-24T16:04:40.344853Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2017-02-24T16:04:40.344858Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2017-02-24T16:04:40.344862Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2017-02-24T16:04:40.344866Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2017-02-24T16:04:40.344871Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2017-02-24T16:04:40.344875Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2017-02-24T16:04:40.344880Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2017-02-24T16:04:40.344895Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2017-02-24T16:04:40.344899Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2017-02-24T16:04:40.344904Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2017-02-24T16:04:40.344908Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2017-02-24T16:04:40.344913Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2017-02-24T16:04:40.344917Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2017-02-24T16:04:40.344921Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2017-02-24T16:04:40.344926Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2017-02-24T16:04:40.344932Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2017-02-24T16:04:40.344936Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2017-02-24T16:04:40.344941Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2017-02-24T16:04:40.344946Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2017-02-24T16:04:40.344951Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2017-02-24T16:04:40.344955Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2017-02-24T16:04:40.344960Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2017-02-24T16:04:40.344964Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2017-02-24T16:04:40.344969Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2017-02-24T16:04:40.344973Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2017-02-24T16:04:40.344978Z 0 [Note] Shutting down plugin 'InnoDB'
2017-02-24T16:04:40.345065Z 0 [Note] InnoDB: FTS optimize thread exiting.
2017-02-24T16:04:40.345135Z 0 [Note] InnoDB: Starting shutdown...
2017-02-24T16:04:40.445348Z 0 [Note] InnoDB: Dumping buffer pool(s) to /afs/crc.nd.edu/user/j/jlai1/MySQL/data/ib_buffer_pool
2017-02-24T16:04:40.447661Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 170224 11:04:40
2017-02-24T16:04:41.779942Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2534618
2017-02-24T16:04:41.795993Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-02-24T16:04:41.796030Z 0 [Note] Shutting down plugin 'MEMORY'
2017-02-24T16:04:41.796045Z 0 [Note] Shutting down plugin 'CSV'
2017-02-24T16:04:41.796092Z 0 [Note] Shutting down plugin 'sha256_password'
2017-02-24T16:04:41.796105Z 0 [Note] Shutting down plugin 'mysql_native_password'
2017-02-24T16:04:41.796375Z 0 [Note] Shutting down plugin 'binlog'
2017-02-24T16:04:41.796973Z 0 [Note] ./bin/mysqld: Shutdown complete
The problem seems that your user dont have permission to bind a port, 3306 specifically for Mysql.

MySQL installation on Windows - and how to fix missing mysql.user?

I was using an old MySql 5.0 installation. Then decided to get newest 5.7 .zip release.
This is what I have done:
mysqld -initialize-insecure
(As I intend to use this for localhost/root usage only)
This creates some files in the root of the MySQL data directory.
However, running
mysqld --console
gives error
2017-02-03T02:52:01.076801Z 0 [ERROR] Fatal error: Can't open and lock
privilege tables: Table 'mysql.user' doesn't exis
I then intended to move over my two 5.0 databases (each in a subfolder in my old mysql 5.0 "data dir" directory.)
Possibly I could then run mysql_upgrade then?
My full error log is here:
D:\databases\MySQL-5_7(x86)\bin>mysqld --console
2017-02-03T02:52:00.227754Z 0 [Warning] TIMESTAMP with implicit
DEFAULT value is deprecated. Please use
--explicit_defaults_for_timestamp server option (see documentation for more details). 2017-02-03T02:52:00.227754Z 0 [Warning] 'NO_ZERO_DATE',
'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be
used with strict mode. They will be merged with strict mode in a
future release. 2017-02-03T02:52:00.227754Z 0 [Warning]
'NO_AUTO_CREATE_USER' sql mode was not set.
2017-02-03T02:52:00.227754Z 0 [Note] --secure-file-priv is set to
NULL. Operations related to importing and exporting data are disabled
2017-02-03T02:52:00.227754Z 0 [Note] mysqld (mysqld 5.7.17) starting
as process 13872 ... 2017-02-03T02:52:00.235754Z 0 [Note] InnoDB:
Mutexes and rw_locks use Windows interlocked functions
2017-02-03T02:52:00.236754Z 0 [Note] InnoDB: Uses event mutexes
2017-02-03T02:52:00.236754Z 0 [Note] InnoDB: Memory barrier is not
used 2017-02-03T02:52:00.237754Z 0 [Note] InnoDB: Compressed tables
use zlib 1.2.3 2017-02-03T02:52:00.237754Z 0 [Note] InnoDB: Number of
pools: 1 2017-02-03T02:52:00.238755Z 0 [Note] InnoDB: Not using CPU
crc32 instructions 2017-02-03T02:52:00.240755Z 0 [Note] InnoDB:
Initializing buffer pool, total size = 128M, instances = 1, chunk size
= 128M 2017-02-03T02:52:00.249755Z 0 [Note] InnoDB: Completed initialization of buffer pool 2017-02-03T02:52:00.363762Z 0 [Note]
InnoDB: Highest supported file format is Barracuda.
2017-02-03T02:52:00.498769Z 0 [Note] InnoDB: Creating shared
tablespace for temporary tables 2017-02-03T02:52:00.499769Z 0 [Note]
InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the
file full; Please wait ... 2017-02-03T02:52:00.745783Z 0 [Note]
InnoDB: File '.\ibtmp1' size is now 12 MB. 2017-02-03T02:52:00.933793Z
0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback
segment(s) are active. 2017-02-03T02:52:00.934792Z 0 [Note] InnoDB: 32
non-redo rollback segment(s) are active. 2017-02-03T02:52:00.936793Z 0
[Note] InnoDB: Waiting for purge to start 2017-02-03T02:52:00.988797Z
0 [Note] InnoDB: 5.7.17 started; log sequence number 1209961
2017-02-03T02:52:00.988797Z 0 [Note] Plugin 'FEDERATED' is disabled.
2017-02-03T02:52:00.990797Z 0 [Note] InnoDB: Loading buffer pool(s)
from W:\b-databases\MySql\5.0.x\data\ib_buffer_pool mysqld: Table
'mysql.plugin' doesn't exist 2017-02-03T02:52:00.991796Z 0 [ERROR]
Can't open the mysql.plugin table. Please run mysql_upgrade to create
it. 2017-02-03T02:52:00.993796Z 0 [Note] Salting uuid generator
variables, current_pid: 13872, server_start_time: 1486090320,
bytes_sent: 0, 2017-02-03T02:52:00.993796Z 0 [Note] InnoDB: Buffer
pool(s) load completed at 170203 3:52:00 2017-02-03T02:52:00.997796Z
0 [Note] Generated uuid: 'bc608dfe-e9bb-11e6-b692-00248c156225',
server_start_time: 1486104192, bytes_sent: 361844000
2017-02-03T02:52:00.997796Z 0 [Warning] No existing UUID has been
found, so we assume that this is the first time that this server has
been started. Generating a new UUID:
bc608dfe-e9bb-11e6-b692-00248c156225. 2017-02-03T02:52:01.041799Z 0
[Warning] Gtid table is not ready to be used. Table
'mysql.gtid_executed' cannot be opened. 2017-02-03T02:52:01.041799Z 0
[Warning] Failed to set up SSL because of the following SSL library
error: SSL context is not usable without certificate and private key
2017-02-03T02:52:01.043799Z 0 [Note] Server hostname (bind-address):
'*'; port: 3306 2017-02-03T02:52:01.044802Z 0 [Note] IPv6 is
available. 2017-02-03T02:52:01.045801Z 0 [Note] - '::' resolves to
'::'; 2017-02-03T02:52:01.045801Z 0 [Note] Server socket created on
IP: '::'. 2017-02-03T02:52:01.054800Z 0 [Warning] Failed to open
optimizer cost constant tables
2017-02-03T02:52:01.076801Z 0 [ERROR] Fatal error: Can't open and lock
privilege tables: Table 'mysql.user' doesn't exist
2017-02-03T02:52:01.077801Z 0 [ERROR] Aborting
2017-02-03T02:52:01.078801Z 0 [Note] Binlog end
2017-02-03T02:52:01.079801Z 0 [Note] Shutting down plugin 'ngram'
2017-02-03T02:52:01.079801Z 0 [Note] Shutting down plugin 'partition'
2017-02-03T02:52:01.080801Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2017-02-03T02:52:01.081801Z 0 [Note] Shutting down plugin 'ARCHIVE'
2017-02-03T02:52:01.081801Z 0 [Note] Shutting down plugin
'PERFORMANCE_SCHEMA' 2017-02-03T02:52:01.082801Z 0 [Note] Shutting
down plugin 'MRG_MYISAM' 2017-02-03T02:52:01.082801Z 0 [Note] Shutting
down plugin 'MyISAM' 2017-02-03T02:52:01.083801Z 0 [Note] Shutting
down plugin 'INNODB_SYS_VIRTUAL' 2017-02-03T02:52:01.083801Z 0 [Note]
Shutting down plugin 'INNODB_SYS_DATAFILES'
2017-02-03T02:52:01.084801Z 0 [Note] Shutting down plugin
'INNODB_SYS_TABLESPACES' 2017-02-03T02:52:01.084801Z 0 [Note] Shutting
down plugin 'INNODB_SYS_FOREIGN_COLS' 2017-02-03T02:52:01.085801Z 0
[Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2017-02-03T02:52:01.087801Z 0 [Note] Shutting down plugin
'INNODB_SYS_FIELDS' 2017-02-03T02:52:01.088802Z 0 [Note] Shutting down
plugin 'INNODB_SYS_COLUMNS' 2017-02-03T02:52:01.089802Z 0 [Note]
Shutting down plugin 'INNODB_SYS_INDEXES' 2017-02-03T02:52:01.089802Z
0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2017-02-03T02:52:01.090802Z 0 [Note] Shutting down plugin
'INNODB_SYS_TABLES' 2017-02-03T02:52:01.091802Z 0 [Note] Shutting down
plugin 'INNODB_FT_INDEX_TABLE' 2017-02-03T02:52:01.091802Z 0 [Note]
Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2017-02-03T02:52:01.092802Z 0 [Note] Shutting down plugin
'INNODB_FT_CONFIG' 2017-02-03T02:52:01.093802Z 0 [Note] Shutting down
plugin 'INNODB_FT_BEING_DELETED' 2017-02-03T02:52:01.093802Z 0 [Note]
Shutting down plugin 'INNODB_FT_DELETED' 2017-02-03T02:52:01.094802Z 0
[Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2017-02-03T02:52:01.094802Z 0 [Note] Shutting down plugin
'INNODB_METRICS' 2017-02-03T02:52:01.095802Z 0 [Note] Shutting down
plugin 'INNODB_TEMP_TABLE_INFO' 2017-02-03T02:52:01.097802Z 0 [Note]
Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2017-02-03T02:52:01.098802Z 0 [Note] Shutting down plugin
'INNODB_BUFFER_PAGE_LRU' 2017-02-03T02:52:01.099802Z 0 [Note] Shutting
down plugin 'INNODB_BUFFER_PAGE' 2017-02-03T02:52:01.099802Z 0 [Note]
Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2017-02-03T02:52:01.100802Z 0 [Note] Shutting down plugin
'INNODB_CMP_PER_INDEX' 2017-02-03T02:52:01.100802Z 0 [Note] Shutting
down plugin 'INNODB_CMPMEM_RESET' 2017-02-03T02:52:01.101802Z 0 [Note]
Shutting down plugin 'INNODB_CMPMEM' 2017-02-03T02:52:01.102802Z 0
[Note] Shutting down plugin 'INNODB_CMP_RESET'
2017-02-03T02:52:01.102802Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2017-02-03T02:52:01.103803Z 0 [Note] Shutting down plugin
'INNODB_LOCK_WAITS' 2017-02-03T02:52:01.103803Z 0 [Note] Shutting down
plugin 'INNODB_LOCKS' 2017-02-03T02:52:01.104802Z 0 [Note] Shutting
down plugin 'INNODB_TRX' 2017-02-03T02:52:01.104802Z 0 [Note] Shutting
down plugin 'InnoDB' 2017-02-03T02:52:01.105803Z 0 [Note] InnoDB: FTS
optimize thread exiting. 2017-02-03T02:52:01.107803Z 0 [Note] InnoDB:
Starting shutdown... 2017-02-03T02:52:01.209808Z 0 [Note] InnoDB:
Dumping buffer pool(s) to
W:\b-databases\MySql\5.0.x\data\ib_buffer_pool
2017-02-03T02:52:01.214809Z 0 [Note] InnoDB: Buffer pool(s) dump
completed at 170203 3:52:01 2017-02-03T02:52:02.408874Z 0 [Note]
InnoDB: Shutdown completed; log sequence number 1209980
2017-02-03T02:52:02.408874Z 0 [Note] InnoDB: Removed temporary
tablespace data file: "ibtmp1" 2017-02-03T02:52:02.409874Z 0 [Note]
Shutting down plugin 'MEMORY' 2017-02-03T02:52:02.410874Z 0 [Note]
Shutting down plugin 'CSV' 2017-02-03T02:52:02.410874Z 0 [Note]
Shutting down plugin 'sha256_password' 2017-02-03T02:52:02.411874Z 0
[Note] Shutting down plugin 'mysql_native_password'
2017-02-03T02:52:02.412874Z 0 [Note] Shutting down plugin 'binlog'
2017-02-03T02:52:02.412874Z 0 [Note] mysqld: Shutdown complete
And this is my.ini file:
[mysqld]
basedir=D:/databases/MySQL-5_7(x86)
datadir=W:/b-databases/MySql/5.0.x/data
port=3306
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
Somehow I got it working now - I redid what was mentioned here and this time the user tables were created as well. Not quite sure why it did not work befoe, but still deserves to be an answer:
https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html

MySQL error after increasing innodb buffer pool

I increased the buffer pool for mysql innodb and I got this error.
Now mysql wouldn't even start.
This happened when I restarted my computer and mysql still had problems. I am working on OSX and can't find my my.cnf either.
$ mysqld -uroot -p
2017-01-11T11:17:14.127290Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-01-11T11:17:14.128286Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2017-01-11T11:17:14.128917Z 0 [Note] mysqld (mysqld 5.7.13) starting as process 2014 ...
2017-01-11T11:17:14.139702Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2017-01-11T11:17:14.140644Z 0 [Warning] One can only use the --user switch if running as root
2017-01-11T11:17:14.148026Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-01-11T11:17:14.148056Z 0 [Note] InnoDB: Uses event mutexes
2017-01-11T11:17:14.148060Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-01-11T11:17:14.148064Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-01-11T11:17:14.149318Z 0 [Note] InnoDB: Number of pools: 1
2017-01-11T11:17:14.150616Z 0 [Note] InnoDB: Using CPU crc32 instructions
2017-01-11T11:17:14.153003Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-01-11T11:17:14.165811Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-01-11T11:17:14.187092Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-01-11T11:17:14.247127Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2017-01-11T11:17:14.247345Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2017-01-11T11:17:14.261446Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2017-01-11T11:17:14.262167Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2017-01-11T11:17:14.262177Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2017-01-11T11:17:14.264859Z 0 [Note] InnoDB: Waiting for purge to start
2017-01-11T11:17:14.319034Z 0 [Note] InnoDB: 5.7.13 started; log sequence number 1991037762
2017-01-11T11:17:14.319286Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/var/mysql/ib_buffer_pool
2017-01-11T11:17:14.320610Z 0 [Note] Plugin 'FEDERATED' is disabled.
2017-01-11T11:17:14.325376Z 0 [Warning] System table 'plugin' is expected to be transactional.
2017-01-11T11:17:14.327107Z 0 [ERROR] mysqld: unknown option '-p'
2017-01-11T11:17:14.327131Z 0 [ERROR] Aborting
2017-01-11T11:17:14.327143Z 0 [Note] Binlog end
2017-01-11T11:17:14.327361Z 0 [Note] Shutting down plugin 'ngram'
2017-01-11T11:17:14.327372Z 0 [Note] Shutting down plugin 'partition'
2017-01-11T11:17:14.327376Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2017-01-11T11:17:14.327378Z 0 [Note] Shutting down plugin 'ARCHIVE'
2017-01-11T11:17:14.327380Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2017-01-11T11:17:14.327419Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2017-01-11T11:17:14.327425Z 0 [Note] Shutting down plugin 'MyISAM'
2017-01-11T11:17:14.327444Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2017-01-11T11:17:14.327449Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2017-01-11T11:17:14.327453Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2017-01-11T11:17:14.327456Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2017-01-11T11:17:14.327460Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2017-01-11T11:17:14.327464Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2017-01-11T11:17:14.327467Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2017-01-11T11:17:14.327472Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2017-01-11T11:17:14.327475Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2017-01-11T11:17:14.327479Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2017-01-11T11:17:14.327482Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2017-01-11T11:17:14.327485Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2017-01-11T11:17:14.327489Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2017-01-11T11:17:14.327493Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2017-01-11T11:17:14.327496Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2017-01-11T11:17:14.327500Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2017-01-11T11:17:14.327503Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2017-01-11T11:17:14.327507Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2017-01-11T11:17:14.327510Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2017-01-11T11:17:14.327514Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2017-01-11T11:17:14.327543Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2017-01-11T11:17:14.327556Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2017-01-11T11:17:14.327561Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2017-01-11T11:17:14.327566Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2017-01-11T11:17:14.327570Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2017-01-11T11:17:14.327574Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2017-01-11T11:17:14.327577Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2017-01-11T11:17:14.327581Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2017-01-11T11:17:14.327585Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2017-01-11T11:17:14.327590Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2017-01-11T11:17:14.327595Z 0 [Note] Shutting down plugin 'InnoDB'
2017-01-11T11:17:14.327641Z 0 [Note] InnoDB: FTS optimize thread exiting.
2017-01-11T11:17:14.327684Z 0 [Note] InnoDB: Starting shutdown...
2017-01-11T11:17:14.327773Z 0 [Note] InnoDB: Buffer pool(s) load completed at 170111 17:02:14
2017-01-11T11:17:14.327836Z 0 [Note] InnoDB: Dumping buffer pool(s) to /usr/local/var/mysql/ib_buffer_pool
2017-01-11T11:17:14.328161Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 170111 17:02:14
2017-01-11T11:17:15.780219Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1991037781
2017-01-11T11:17:15.781632Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-01-11T11:17:15.781739Z 0 [Note] Shutting down plugin 'MEMORY'
2017-01-11T11:17:15.781747Z 0 [Note] Shutting down plugin 'CSV'
2017-01-11T11:17:15.781752Z 0 [Note] Shutting down plugin 'sha256_password'
2017-01-11T11:17:15.781756Z 0 [Note] Shutting down plugin 'mysql_native_password'
2017-01-11T11:17:15.781958Z 0 [Note] Shutting down plugin 'binlog'
2017-01-11T11:17:15.782174Z 0 [Note] mysqld: Shutdown complete
Did you just upgrade? You probably failed to run mysql_upgrade.

MySQL 5.7 not running windows 10

MySQL version - 5.7.11
I am unable to run mysql server on my windows 10 even after running command prompt as an administrator and marking run as administrator in the exe files for mysql and mysqld.
Following are the contents of log file present in the data directory -
2016-02-28T18:44:37.478791Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-02-28T18:44:37.479292Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2016-02-28T18:44:37.480293Z 0 [Note] mysqld (mysqld 5.7.11) starting as process 504 ...
2016-02-28T18:44:37.643005Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-02-28T18:44:37.644506Z 0 [Note] InnoDB: Uses event mutexes
2016-02-28T18:44:37.645507Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2016-02-28T18:44:37.646508Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-02-28T18:44:37.651010Z 0 [Note] InnoDB: Number of pools: 1
2016-02-28T18:44:37.655562Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2016-02-28T18:44:37.716605Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-02-28T18:44:37.736603Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-02-28T18:44:37.757664Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2016-02-28T18:44:37.760134Z 0 [Note] InnoDB: Setting file '.\ibdata1' size to 12 MB. Physically writing the file full; Please wait ...
2016-02-28T18:44:37.956704Z 0 [Note] InnoDB: File '.\ibdata1' size is now 12 MB.
2016-02-28T18:44:38.047061Z 0 [Note] InnoDB: Setting log file .\ib_logfile101 size to 48 MB
2016-02-28T18:44:38.500757Z 0 [Note] InnoDB: Setting log file .\ib_logfile1 size to 48 MB
2016-02-28T18:44:39.211654Z 0 [Note] InnoDB: Renaming log file .\ib_logfile101 to .\ib_logfile0
2016-02-28T18:44:39.226714Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-02-28T18:44:39.226714Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-02-28T18:44:39.226714Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-02-28T18:44:39.423633Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2016-02-28T18:44:39.477796Z 0 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-02-28T18:44:39.657048Z 0 [Note] InnoDB: Doublewrite buffer created
2016-02-28T18:44:39.703088Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-02-28T18:44:39.704591Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-02-28T18:44:39.731614Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-02-28T18:44:39.975606Z 0 [Note] InnoDB: Foreign key constraint system tables created
2016-02-28T18:44:39.977607Z 0 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-02-28T18:44:40.036710Z 0 [Note] InnoDB: Tablespace and datafile system tables created.
2016-02-28T18:44:40.036710Z 0 [Note] InnoDB: Creating sys_virtual system tables.
2016-02-28T18:44:40.132743Z 0 [Note] InnoDB: sys_virtual table created
2016-02-28T18:44:40.134252Z 0 [Note] InnoDB: Waiting for purge to start
2016-02-28T18:44:40.185456Z 0 [Note] InnoDB: Waiting for purge to start
2016-02-28T18:44:40.236970Z 0 [Note] InnoDB: Waiting for purge to start
2016-02-28T18:44:40.292644Z 0 [Note] InnoDB: 5.7.11 started; log sequence number 0
2016-02-28T18:44:40.421142Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
2016-02-28T18:44:40.642217Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-02-28T18:44:41.016703Z 0 [Note] Salting uuid generator variables, current_pid: 504, server_start_time: 1456685077, bytes_sent: 0,
2016-02-28T18:44:41.056673Z 0 [Note] Generated uuid: '539246ef-de4b-11e5-a535-b8ac6f65e9fe', server_start_time: 1456685581, bytes_sent: 3022329767296
2016-02-28T18:44:41.106807Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 539246ef-de4b-11e5-a535-b8ac6f65e9fe.
2016-02-28T18:44:41.496798Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-02-28T18:44:41.644892Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2016-02-28T18:44:41.697459Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2016-02-28T18:44:41.698960Z 0 [Note] IPv6 is available.
2016-02-28T18:44:41.698960Z 0 [Note] - '::' resolves to '::';
2016-02-28T18:44:41.699962Z 0 [Note] Server socket created on IP: '::'.
2016-02-28T18:44:41.703464Z 0 [Warning] Failed to open optimizer cost constant tables
2016-02-28T18:44:45.751401Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-02-28T18:44:45.787570Z 0 [ERROR] Aborting
2016-02-28T18:44:45.788067Z 0 [Note] Binlog end
2016-02-28T18:44:45.828191Z 0 [Note] Shutting down plugin 'ngram'
2016-02-28T18:44:45.828675Z 0 [Note] Shutting down plugin 'partition'
2016-02-28T18:44:45.829175Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2016-02-28T18:44:45.829676Z 0 [Note] Shutting down plugin 'ARCHIVE'
2016-02-28T18:44:45.830175Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-02-28T18:44:46.031497Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2016-02-28T18:44:46.031969Z 0 [Note] Shutting down plugin 'MyISAM'
2016-02-28T18:44:46.598005Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2016-02-28T18:44:46.598485Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-02-28T18:44:46.598988Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-02-28T18:44:46.599486Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-02-28T18:44:46.600036Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-02-28T18:44:46.600486Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-02-28T18:44:46.600986Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-02-28T18:44:46.601486Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-02-28T18:44:46.601988Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-02-28T18:44:46.602487Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-02-28T18:44:46.602487Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-02-28T18:44:46.602988Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-02-28T18:44:46.603489Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-02-28T18:44:46.603989Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-02-28T18:44:46.604490Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-02-28T18:44:46.604990Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-02-28T18:44:46.605490Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2016-02-28T18:44:46.605490Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2016-02-28T18:44:46.605990Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-02-28T18:44:46.606491Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-02-28T18:44:46.606991Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-02-28T18:44:46.607492Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-02-28T18:44:46.607992Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-02-28T18:44:46.608493Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-02-28T18:44:46.608493Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-02-28T18:44:46.608993Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-02-28T18:44:46.609535Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2016-02-28T18:44:46.610023Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-02-28T18:44:46.610511Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-02-28T18:44:46.610511Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2016-02-28T18:44:46.611026Z 0 [Note] Shutting down plugin 'InnoDB'
2016-02-28T18:44:46.611524Z 0 [Note] InnoDB: FTS optimize thread exiting.
2016-02-28T18:44:46.611996Z 0 [Note] InnoDB: Starting shutdown...
2016-02-28T18:44:46.721456Z 0 [Note] InnoDB: Dumping buffer pool(s) to D:\mysql\data\ib_buffer_pool
2016-02-28T18:44:46.729458Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 160229 0:14:46
2016-02-28T18:44:48.212545Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1209970
2016-02-28T18:44:48.213546Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2016-02-28T18:44:48.214047Z 0 [Note] Shutting down plugin 'MEMORY'
2016-02-28T18:44:48.214047Z 0 [Note] Shutting down plugin 'CSV'
2016-02-28T18:44:48.214547Z 0 [Note] Shutting down plugin 'sha256_password'
2016-02-28T18:44:48.214547Z 0 [Note] Shutting down plugin 'mysql_native_password'
2016-02-28T18:44:48.215047Z 0 [Note] Shutting down plugin 'keyring_file'
2016-02-28T18:44:48.259518Z 0 [Note] Shutting down plugin 'binlog'
2016-02-28T18:44:48.260518Z 0 [Note] mysqld: Shutdown complete
At least one of the required tables does not exist as seen in the log file you presented: "Table 'mysql.user' doesn't exist." If you have not already "run mysql_upgrade to create it," then Perhaps manually initialize the data directory
You should run "mysqld --initialize" before server start.
https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html