MySQL Windows: Difference between revisions

From Corat Coret
 
Line 2: Line 2:


Membuat data directory
Membuat data directory
<syntaxhighlight>
<syntaxhighlight lang="shell">
C:\zip_unpack\directory> bin\mysqld_install_db.exe
C:\zip_unpack\directory> bin\mysqld_install_db.exe
</syntaxhighlight>
</syntaxhighlight>


Jalankan dengan console
Jalankan dengan console
<syntaxhighlight>
<syntaxhighlight lang="shell">
C:\zip_unpack\directory> bin\mysqld.exe --console
C:\zip_unpack\directory> bin\mysqld.exe --console
</syntaxhighlight>
</syntaxhighlight>


Install service, menggunakan command prompt administrator
Install service, menggunakan command prompt administrator
<syntaxhighlight>
<syntaxhighlight lang="shell">
sc create "MariaDB" binpath= "\"F:/var/apps/Maria-11.4.2-x64/bin/mysqld\" \"--defaults-file=F:/var/mysql/data/01/my.ini\" MariaDB" DisplayName= "MariaDB" start= "auto"
sc create "MariaDB" binpath= "\"F:/var/apps/Maria-11.4.2-x64/bin/mysqld\" \"--defaults-file=F:/var/mysql/data/01/my.ini\" MariaDB" DisplayName= "MariaDB" start= "auto"
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 18:56, 20 June 2024

Install Service

Membuat data directory

C:\zip_unpack\directory> bin\mysqld_install_db.exe

Jalankan dengan console

C:\zip_unpack\directory> bin\mysqld.exe --console

Install service, menggunakan command prompt administrator

sc create "MariaDB" binpath= "\"F:/var/apps/Maria-11.4.2-x64/bin/mysqld\" \"--defaults-file=F:/var/mysql/data/01/my.ini\" MariaDB" DisplayName= "MariaDB" start= "auto"