MySQL Startup error

Installed an windows version of MySQL and was trying to start it from a cmd prompt.

To Start MySQL server
from command line, you should start a console window (or “DOS window”) and enter the below or direct your command to where your MySQL binaries are installed on your system:
C:\> “C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld”

If you get an error as below from running the above

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. please use –explicit_defaults_for_timestamp server option

the issue can be fixed by adding the below to my.ini , under “mysqld” section

# Enable the query cache
explicit_defaults_for_timestamp = true

run the below again to successfully start the services
C:\> “C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld”

To check MySQL server status
C:\> “C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqladmin” -u root -p status

To Stop MySQL server
C:\> “C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqladmin” -u root -p shutdown

Advertisements

About SQLKit

For almost 10 years supporting SQL versions starting 6.5 to current as an production SQL DBA and as Application admin. Interests or learning include Hadoop , MySQL, PostGRESql and SAP BASIS administration.
This entry was posted in Administration, MySQL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s