Commit Graph

131 Commits

Author SHA1 Message Date
ca814a4e6f If we get an ERROR output when executing an SQL file, consider it failed even if the exit status is zero 2023-01-03 18:25:50 -08:00
4ae46dbe83 Also fix MySQL strings in PHP-INI module https://github.com/virtualmin/virtualmin-gpl/issues/464 2022-10-08 23:22:52 -07:00
e1144a7398 Fix to replace config and help labels too (MySQL ⇾ MariaDB) 2022-09-29 09:58:14 +03:00
dd5bce5adf Always set ENV{'PASS'} when needed https://sourceforge.net/p/webadmin/bugs/5542/ 2022-02-01 19:34:40 -08:00
9e8747ede4 Add extra check for wrong packet size https://forum.virtualmin.com/t/virtualmin-backup-truncates-part-of-mysql-dump-without-generating-error/113551/9 2022-01-12 21:11:51 -08:00
732941d30a Fix to handle removed options in MySQL 8 #1561 2021-12-08 15:59:33 +03:00
480c81f272 Fix Virtualmin breaking mysql backup_database force parameter 2021-08-23 14:40:24 +01:00
ea91c26d70 Add custom mysql backup parameters option 2021-08-12 09:29:02 +01:00
5b5f86c1a1 Add a new way of overriding the module.info description, and use it for MySQL 2021-04-21 21:54:07 -07:00
a76125769f Use cached DB type when performing mysql -> mariadb string replacement 2021-01-04 20:28:50 -08:00
371be571af Display MariaDB name for module if used 1/2 https://github.com/webmin/webmin/issues/1421 2021-01-02 14:09:26 +03:00
62c0569525 Default variant should be MySQL with fancy builds 96257e8956 (diff-660d08ad1fbe98f13c43a2e7221aa57990287dd782394524d3a3a332d0860aecR3456) 2020-11-30 12:57:25 +03:00
d10b1578ae Add ability to force reset lost admin password for MySQL 2020-11-29 18:07:39 +03:00
a79a09a60d Satisfy requirement to restart database process on renaming admin user 2020-11-29 16:39:02 +03:00
6a9b1a4dd3 Fix missing var after moving code 2020-11-29 16:12:33 +03:00
3731b28435 Fix to call update config in the right context (rename) 2020-11-29 14:47:04 +03:00
125cc7b418 Fix MySQL password handling for users with unix auth https://github.com/webmin/webmin/issues/1333
Additionally fixed renaming of admin user and password, all at once or separetely
2020-11-28 21:02:50 +03:00
1a707f1d06 Fix typo 2020-10-12 22:04:26 +03:00
68f0e8dc98 Fix setting of perms for new users 2020-10-11 20:08:07 -07:00
f61c7bd773 Add support for MariaDB 10.4 2/3 2020-10-11 19:58:04 +03:00
b82bd80f42 Revert "Escape to prevent command expansion"
This reverts commit 20f947e7e5.
2020-10-07 20:48:20 +03:00
20f947e7e5 Escape to prevent command expansion 2020-10-07 20:17:21 +03:00
2a956a021b Add support for latest MySQL/MariaDB 1/2 2020-09-23 16:55:52 +03:00
ba0c38aeed Ubuntu has MariaDB too c2245246f5
https://www.virtualmin.com/node/69012
https://www.virtualmin.com/node/69064
https://forum.virtualmin.com/t/mysql-database-failed-sql-alter-user-failed-old-problem-again/105647/5
2020-05-14 16:25:32 +03:00
35df515dee Param is a number 2020-04-05 17:12:49 -07:00
a2dc3f7124 Switch all calls to open() to explicitly open for read 2020-03-14 17:20:54 -07:00
02e3722b01 Display charset details 2020-02-29 23:59:31 +03:00
921121be60 The ubuntu sub-version isn't really a version 2020-01-05 19:00:43 -08:00
8faabd6d22 Properly escape where clause 2019-10-05 22:40:29 -07:00
771a4a413c Fix double-slashes 2019-08-04 15:05:51 -07:00
66683b0e3f Add param to skip errors 2019-04-27 17:55:34 -07:00
1dbfe23ed3 Sometimes version doesn't have -mariadb 2019-02-23 16:58:17 -08:00
14fc240771 Properly check mysql variant when making version decisions 2019-02-23 11:20:01 -08:00
eededaf844 Include full version in msql_version, and actually do version comparisons properly 2019-02-18 16:44:21 -08:00
b8d7e277f3 Fix MySQL 8 version detection https://sourceforge.net/p/webadmin/bugs/5125/ 2018-05-13 15:37:40 -07:00
0f9fb77369 Fix typo 2017-11-08 16:43:37 +08:00
f1902d418e sort_buffer has been renamed in MySQL 5.5 https://www.virtualmin.com/node/53871 2017-11-03 23:13:06 -07:00
d3d4db4ab6 Use the 'source' command to read in sql files, as it's more reliable that simply redirecting input https://www.virtualmin.com/node/53763 2017-09-29 21:54:23 -07:00
97107f4fcf Support MySQL 7,8 and 9 https://sourceforge.net/p/webadmin/bugs/4992/ 2017-07-07 22:48:56 -07:00
79877df57c Escape output from the init script 2017-04-29 16:56:58 -07:00
a37185b170 Fix code that detects support for mysql.hosts table https://sourceforge.net/p/webadmin/bugs/4945/ 2017-04-23 14:17:51 -07:00
c3a5efb914 Don't include error messages in the output from mysqldump https://www.virtualmin.com/node/50156 2017-03-14 20:40:22 -07:00
5bd77486d9 Catch failure of the mysqldump command in the pipeline https://sourceforge.net/p/webadmin/bugs/4878/ 2017-01-22 19:39:39 -08:00
1fd2f398ad Add and use a function to save the MySQL version number 2016-12-26 21:11:11 -08:00
ad381d1447 Differentiate remote and local mysql versions 2016-12-24 22:33:26 -08:00
cda820a418 MySQL 5.7.16 doesn't support the hosts table https://www.virtualmin.com/node/43131 2016-11-09 20:56:08 -08:00
d03f6fdc67 Support views without needing to login to MySQL 2016-10-30 22:43:49 -07:00
0a08ee52ea mysql 5.5+ always supports views 2016-10-27 23:18:35 -07:00
c7554ac611 Only treat undef as null 2016-05-27 14:52:40 -07:00
a405b317e3 When backing up a database, only run the actual writing command as the user, rather than all of mysqldump 2016-05-01 11:21:51 -07:00