Commit Graph

105 Commits

Author SHA1 Message Date
Ilia Rostovtsev
02e3722b01 Display charset details 2020-02-29 23:59:31 +03:00
Jamie Cameron
921121be60 The ubuntu sub-version isn't really a version 2020-01-05 19:00:43 -08:00
Jamie Cameron
8faabd6d22 Properly escape where clause 2019-10-05 22:40:29 -07:00
Jamie Cameron
771a4a413c Fix double-slashes 2019-08-04 15:05:51 -07:00
Jamie Cameron
66683b0e3f Add param to skip errors 2019-04-27 17:55:34 -07:00
Jamie Cameron
1dbfe23ed3 Sometimes version doesn't have -mariadb 2019-02-23 16:58:17 -08:00
Jamie Cameron
14fc240771 Properly check mysql variant when making version decisions 2019-02-23 11:20:01 -08:00
Jamie Cameron
eededaf844 Include full version in msql_version, and actually do version comparisons properly 2019-02-18 16:44:21 -08:00
Jamie Cameron
b8d7e277f3 Fix MySQL 8 version detection https://sourceforge.net/p/webadmin/bugs/5125/ 2018-05-13 15:37:40 -07:00
yangfl
0f9fb77369 Fix typo 2017-11-08 16:43:37 +08:00
Jamie Cameron
f1902d418e sort_buffer has been renamed in MySQL 5.5 https://www.virtualmin.com/node/53871 2017-11-03 23:13:06 -07:00
Jamie Cameron
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
Jamie Cameron
97107f4fcf Support MySQL 7,8 and 9 https://sourceforge.net/p/webadmin/bugs/4992/ 2017-07-07 22:48:56 -07:00
Jamie Cameron
79877df57c Escape output from the init script 2017-04-29 16:56:58 -07:00
Jamie Cameron
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
Jamie Cameron
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
Jamie Cameron
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
Jamie Cameron
1fd2f398ad Add and use a function to save the MySQL version number 2016-12-26 21:11:11 -08:00
Jamie Cameron
ad381d1447 Differentiate remote and local mysql versions 2016-12-24 22:33:26 -08:00
Jamie Cameron
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
Jamie Cameron
d03f6fdc67 Support views without needing to login to MySQL 2016-10-30 22:43:49 -07:00
Jamie Cameron
0a08ee52ea mysql 5.5+ always supports views 2016-10-27 23:18:35 -07:00
Jamie Cameron
c7554ac611 Only treat undef as null 2016-05-27 14:52:40 -07:00
Jamie Cameron
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
Jamie Cameron
601b234126 Also set authentication_string to empty if it exists https://sourceforge.net/p/webadmin/bugs/4735/ 2016-04-16 13:44:42 -07:00
Jamie Cameron
46d7022cc9 Complete support for mysql include files https://sourceforge.net/p/webadmin/bugs/4726/ 2016-03-26 18:05:02 -07:00
Jamie Cameron
7efcd84bda Support mysql.conf innf include files https://sourceforge.net/p/webadmin/bugs/4726/ 2016-03-25 21:25:52 -07:00
Jamie Cameron
e9a08bb3bb Variable has been renamed to key_buffer_size https://sourceforge.net/p/webadmin/bugs/4724/ 2016-03-24 20:36:00 -07:00
Jamie Cameron
8d5109718b Don't shows hosts table on MySQL 5.7+ 2016-01-01 15:10:45 -08:00
Jamie Cameron
984ad50d21 Set SSL fields to an empty value at creation time, to satisfy MySQL 5.7 2015-12-29 11:01:27 -08:00
Jamie Cameron
dc121cc427 Remove useless function 2015-12-28 16:01:39 -08:00
Jamie Cameron
2e625451a3 Re-factor DB permissions editing 2015-12-22 17:21:26 -08:00
Jamie Cameron
6330deb1bc Make priv fields function common 2015-12-22 16:30:08 -08:00
Jamie Cameron
7b4d33f0fa Re-factor the way mysql user permissions are edited, to not be dependent on column order 2015-12-22 16:08:38 -08:00
Jamie Cameron
2a6fe1a536 What are these old variables for? No idea 2015-12-21 21:57:29 -08:00
Jamie Cameron
d4872509dd Undre MySQL 5, myisam_sort_buffer_size is now a stand-alone directive http://virtualmin.com/node/22895 2015-12-06 19:11:46 -08:00
Jamie Cameron
3548188c38 Mysqldump can print warnings even if it doesn't fail http://virtualmin.com/node/37195 2015-05-27 19:56:56 -07:00
Jamie Cameron
07e9a01919 MYSQL_PASS can't be used when running as a different user if the user has a .my.cnf file https://www.virtualmin.com/node/35764 2015-01-13 15:58:34 -08:00
Jamie Cameron
04cc026a61 Document function 2015-01-13 15:42:29 -08:00
Jamie Cameron
6f28146479 Only MySQL 5.6+ supports the gtid-purged flag http://virtualmin.com/node/35336 2014-11-19 15:22:16 -08:00
Jamie Cameron
b6c0d87498 If not logged in as root, don't try to check gtid variable 2014-09-17 20:03:13 -07:00
Jamie Cameron
123b434bea Fix typo 2014-09-10 21:10:54 -07:00
Jamie Cameron
aaecbcbc62 Delete backup cron job when removing DB 2014-09-01 10:25:30 -07:00
Jamie Cameron
9c6496efcd Use new table_open_cache directive for MySQl 5.6+ http://virtualmin.com/node/33623 2014-07-05 16:24:24 -07:00
Jamie Cameron
7ee1bc1d86 Add needed flag when in GTID mode http://virtualmin.com/node/33403 2014-06-09 14:24:44 -07:00
Jamie Cameron
1a92a32534 Don't use capture function when we can return the table directly https://sourceforge.net/p/webadmin/bugs/4360/ 2014-01-29 20:38:04 -08:00
Jamie Cameron
c8cf11ae3b Add --events flag to mysqldump if version 5.1.8 or later http://virtualmin.com/node/26795 2013-04-26 13:21:57 -07:00
Matt N.
eb025c33c5 Support MariaDB 10.x in the mysql module
The MariaDB version number has jumped ahead of MySQL and is now at 10.x.
2013-02-24 16:55:06 -08:00
Jamie Cameron
8def9d3d62 Auto-select DB name fields when clicked 2013-01-24 14:09:32 -08:00
Jamie Cameron
e1e74467f1 Only escape backslashes into quoted strings http://sourceforge.net/tracker/?func=detail&atid=117457&aid=3600725&group_id=17457 2013-01-13 16:24:42 -08:00