summaryrefslogtreecommitdiff
path: root/sql/winservice.c
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-30498 Rename mysql_upgrade state file to mariadb_upgradeChristian Gonzalez2023-02-071-6/+6
| | | | | | | | | | Renames the upgrade state file, and ensures the old file is properly removed when `mariadb-upgrade` tool is executed. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
* MDEV-26713 UTF8 support on Windows, mysql_upgrade_service preparationVladislav Vaintroub2021-12-151-9/+16
| | | | | | | | | | | | | - Tolerate situation, when datadir for service seems invalid/non-existing prior to upgrade. It could be that my.ini contains legacy ANSI characters for the data directory. Those can't be read correctly by mysql_upgrade_service, which uses a different ANSI codepage(UTF8) . - schedule upgrade_config_file at later stage, because once we convert it to UTF-8 (followup patch), this will render config file uselss with the older version of mariadbd.exe - Refactor upgrade_conf_file.cc, prepare for UTF-8 conversion.
* Revert "MDEV-26713 Windows - improve utf8 support for command line tools"st-10.8-wladVladislav Vaintroub2021-11-191-20/+12
| | | | This reverts commit several commits pushed by mistake.
* xxxVladislav Vaintroub2021-11-181-12/+20
|
* Merge 10.5 into 10.6Marko Mäkelä2020-08-041-4/+26
|\
| * Merge 10.2 into 10.3Marko Mäkelä2020-07-141-4/+26
| |\
| | * Merge 10.1 into 10.2Marko Mäkelä2020-07-141-5/+26
| | |\
| | | * MDEV-23098 mariadb-upgrade-service.exe does not work on WAMPServerVladislav Vaintroub2020-07-061-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | While trying to detect datadir, take into account that one can use Windows service name as section name in options file, for Windows service. The historical obscurity is being used by WAMP installations.
* | | | Merge branch '10.5' into 10.6Vladislav Vaintroub2020-07-041-22/+22
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2020-07-021-22/+22
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Marko Mäkelä2020-07-021-19/+19
| | |\ \ | | | |/
| | | * MDEV-23067 Windows : manually registered services rejected mysql_upgrade_serviceVladislav Vaintroub2020-07-011-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | - service not using "--defaults-file" can have any name not just "MySQL" - service with "--defaults-file", without datadir in them use default datadir (install_root\data)
* | | | Fix whitespacing (end of line space)Vladislav Vaintroub2020-05-181-11/+11
| | | |
* | | | Look also for mariadbd.exe when looking for mariadb service.Vladislav Vaintroub2020-05-181-1/+2
|/ / /
* | | Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2019-05-131-1/+1
| |\ \ | | |/
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
| | |\
| | | * Update FSF addressMichal Schorm2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
* | | | Merge branch '10.2' into 10.3Sergei Golubchik2019-03-291-1/+1
|\ \ \ \ | |/ / /
| * | | MDEV-19054 : mysql_upgrade_service now allows MySQL 5.7 to MariaDB 10.2 ↵Vladislav Vaintroub2019-03-281-1/+1
| |/ / | | | | | | | | | upgrade.
* | | Simple cleanupsMonty2017-11-051-5/+6
|/ / | | | | | | - Add 'stage name' to debug output
* | Correct FSF addressiangilfillan2017-03-101-1/+1
| |
* | MDEV-10118 : do not suggest upgrade from MySQL 5.7 to MariaDB 10.x in the ↵Vladislav Vaintroub2016-05-241-3/+10
|/ | | | installer. Do not lauch upgrade wizard after installation
* Merge 5.3->5.5Igor Babaev2012-03-171-1/+38
|\
| * LP952607: Do not show MySQL services preinstalled by Dell in the upgrade wizardVladislav Vaintroub2012-03-121-1/+38
| |
* | fix the include guards and add missing gplv2 headersSergei Golubchik2012-02-171-0/+16
| |
* | 5.3.4 mergeSergei Golubchik2012-02-151-2/+2
|\ \ | |/
| * lp:893522 more problems found by PVS StudioSergei Golubchik2012-01-121-2/+2
| |
* | Fix build and packaging on Windows:Vladislav Vaintroub2011-11-261-1/+1
|/ | | | | | | | | | | | | | | | | | - build executables we have in 5.3 (mysql_install_db.exe, mysq_upgrade_service.exe, upgrade wizard), and MSI - add some missing headers to windows specific source files. This needs to be done since 5.5 is using WIN32_LEAN_AND_MEAN preprocessor constant thus windows.h no more includes whiole Windows - do not deliver perl scripts (mysql_install_db.pl & friends) -they do not work, are not documented, and we have native executables for this functionality. do not pack echo.exe, replace.exe into MSI, they are not needed. Do not build resolveip on Windows, it is not used. - precache results of of system checks in cmake/os/WindowsCache.cmake (like it is alreay done for majority of tests to speed up cmake run with VS) - make feedback plugin DEFAULT on Windows (so MSI works if user enables plugin), fix null pointer access in PSI_register
* MWL#55 : Philip's review:Vladislav Vaintroub2011-02-151-6/+19
| | | | | | | Take into account that mysql services start even with invalid defaults files (using data file relative to mysqld.exe location). Handle this case in upgrade scenarios, as if there was no --defaults-file in service definition.
* MWL#55: look for my.cnf in addition to my.ini trying to figure out defaults ↵Vladislav Vaintroub2011-02-081-2/+6
| | | | file for the service
* MWL#55: Handle cases where service was installed with Vladislav Vaintroub2011-02-041-12/+75
| | | | | | | | | | | mysqld --install without any parameters. In such case, service name is always MYSQL, as service binary path is "path\to\mysqld.exe" "MySQL". Guess data directory it is either from my.ini (which is assumed to be in the installation root), or just data directory under install root.
* MWL#55: correct mysqld.exe file path, to extract version from it.Vladislav Vaintroub2011-02-031-1/+1
| | | | | Take into account that services registered by MySQL do not have .exe extension in service binary path.
* split long lines, use get_mysql_service_properties()Vladislav Vaintroub2011-01-301-0/+167