How Install MariaDB Instead of MySQL?
1/ Download: MariaDB Server
2/ Giải nén vào: C:\Apps\Portable\mysql
3/ Mở Notepad, dán đoạn script sau vào:
:: Run file as Administrator
:: Put this file into directory where mariadb is extracted
@echo off
::change to drive where mariadb zip file is extracted
d:
::change directory into mariadb zip file is extracted
cd C:\Apps\Portable\mysql
echo Installing mysql
cd bin
:: set --datadir to where you want to store your MariaDB Data
:: set --service to name which will be in windows service
:: set --password which will be default password for root
:: set --port if you want to change port on which MariaDB service should run. Default port: 3306
mysql_install_db.exe --datadir="C:\Apps\Portable\mysqldata" --service=mysql --password=mypassword --port=3306 --socket=mysql
:: whatever --service name you gave will be called on following command
sc start mysql
pause
Lưu lại với tên là "Install_Mariadb.cmd:
Chạy với quyền Administrator để cài đặt.
That's all.