MariaDB on Windows - what is this error when trying to start the database engine?

后端 未结 2 1203
囚心锁ツ
囚心锁ツ 2021-02-06 16:48

I am asking this question as an offshoot myself and another SO had from this other MariaDB question: MariaDB on Windows - getting started help?

When I install MariaDB (v

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 17:23

    The error basically tells that installer did not create the service (it currently does not create services), thus you'll need to do it yourself.

    • start elevated command line
    • switch to directory of your MariaDB installation (C:\Program Files\MariaDB 5.2.4, something like that)
    • bin\mysqld --install

    and only then

    • net start mysql

    Assuming that there is nothing that runs on port 3306, this will stat.

    Alas, the server you will create this way would not be optimized at all. It is better to create a configuration file my.ini (take a look at MySQL docs and .ini files in the installation directory for examples), and put with performance -related stuff here (innodb bufferpool size etc). With config file, you'll need a different command line to register service (step 3 above):

    • bin\mysqld --install MySQL --defaults-file=path\to\my.ini

    Installer for 5.2.4 is basic indeed. It is being reworked though, new one is going to be better usable.

提交回复
热议问题