Skip to content

Instantly share code, notes, and snippets.

@z2z
Last active August 7, 2019 07:42
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z2z/eb3d1415c2521da76b20 to your computer and use it in GitHub Desktop.
Save z2z/eb3d1415c2521da76b20 to your computer and use it in GitHub Desktop.
winginx update mysql mariadb
Update winginx mysql 5.1 to mysql-5.6.19-winx64 or mariadb 5.X(not tested)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stop all server and exit winginx
Open winginx folder
Rename rename mysql folder to mysql--backup
Download - http://dev.mysql.com/downloads/file.php?id=452189 or maraibdb
Extract to any folder
Explore the extracted folder
Move folders (data,lib,scripts and share) to bin folder
rename my-default.ini to my.ini
Edit and add below line in my.ini
[client]
port = 3306
#default-character-set = utf8
character-set-server = utf8
character-sets-dir = share/charsets
[mysqld]
basedir = ../mysql
datadir = data
#log = off
general-log = off
bind-address = 127.0.0.1
port = 3306
####### END ###########
move renamed my.ini to bin folder
rename bin to mysql
copy mysql to winginx folder
Run WinginX -- You should be able to start mysql server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Restore data -
Shutdown all servess
rename data folder in new mysql to data-org
copy data folder from mysql--backup(old) to new mysql folder
Run Mysql
run mysql_upgrade -u root -p
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
z2z
@gumbert
Copy link

gumbert commented Sep 14, 2014

This manual working with mariadb 10.0.13 too.

@al-ramadhan
Copy link

Very helpfull, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment