Running MySQLd as standalone application on Windows
My friend asked me how to get MySQL running as Windows standalone application. So he can execute the mysql start-up command by putting it inside his application. So every time his application run, it also start up mysql daemon. He doesn’t want MySQL running as service every time Windows starts as someone can access the data from outside his program. So after couple of times trying, here it is.
Note:
- I am using 3.23.58 version because it’s the simplest mysql binaries for Windows. But for enhanced feature and security, I think it can be done on newest mysql version.
- I assume you save the zip file on drive C:\> and extract it there.
So here MySQL 3.23.58 Windows binary no install (trimmed version because this is all I need). And below is how to use it:
MySQL Windows version --------------------- c:\>cd server\bin - To start as standalone program c:\server\bin>mysqld-nt.exe --standalone - To shutdown c:\server\bin>mysqladmin -u root [-pXXX] shutdown - To change password c:\server\bin>mysqladmin -u root password [oldpass] newpass
Related posts:
- Install SSH (SFTP) server on Windows 2000 Below is step-by-step installation SSH (and SFTP) server on Windows...
- MySQL partition is full MySQL databases are located on /var/lib/mysql, if you create a...
Related posts brought to you by Yet Another Related Posts Plugin.
May 5th, 2008 at 4:19 pm
coba pake xampp atau vertigo,udah versi terbaru MYsqlnya
May 7th, 2008 at 10:59 pm
Betul, tapi disini tujuannya agar program Delphi yang dibuat dapat dengan gampang menjalankan mysql tanpa perlu install dan si user tidak perlu tahu kalau ada XAMPP atau Vertrigo yang jalan.
Lagian khan sayang banget pake XAMPP / Vertrigo kalau hanya fungsi mysql aja yang digunakan.
BTW, tahu kan disini masih belum comfortable dengan Mysql versi terbaru.