summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup/MySQL.php
Commit message (Collapse)AuthorAgeFilesLines
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix PHP CSJoas Schilling2021-04-271-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix psalm errorsJoas Schilling2021-04-271-4/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Less ILoggerJoas Schilling2021-04-271-9/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only use alphanumeric chars for mysql passwordJoas Schilling2021-01-181-1/+2
| | | | | | / and + can cause problems with other tools that you might want to run on your Nextcloud database. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-22/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add more previous exceptions to database setup codeMorris Jobke2021-01-071-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-4/+3
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check the new connection on setup like with PostgreSQL and OracleJoas Schilling2020-02-051-0/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only provide the auth method for MySQL 8.0+ to not break MariaDBJoas Schilling2020-02-051-4/+13
| | | | | | Provide the auth method for MySQL 8.0+ Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix installing with MySQL 8.0.4+Joas Schilling2019-11-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use specific privileges when creating adminOliver Salzburg2019-07-161-1/+1
| | | | | | | | | | | Using the ALL shorthand can cause problems when not all privileges are available to the user. For example, AWS RDS MariaDB/MySQL will not grant the initial user account on an instance the SUPER privilege. While the user account is still valid for pretty much any task on the DB instance, it can not use the ALL shorthand when granting privileges to new users. By supplying a specific set of privileges, we work around this limitation without sacrificing functionality. Closes #16139 Signed-off-by: Oliver Salzburg <oliver.salzburg@gmail.com>
* move log constants to ILoggerArthur Schiwon2018-04-261-4/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-10/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Install from migrationsJoas Schilling2017-07-251-5/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix install on mb4 enabled mariadb/mysqlArthur Schiwon2017-06-011-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* MySQL 4 byte is now detected during setup in any case.Thomas Müller2017-04-281-6/+4
| | | | config.sample.php was updated to explicitly state that there detection in place to set mysql.utf8mb4
* Add console command to migrate the charsetThomas Müller2017-04-281-23/+7
|
* During setup of a mysql database we try to detect if charset 'utf8mb4' can ↵Thomas Müller2017-04-281-0/+26
| | | | be used
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-3/+3
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Namespace and array syntax fixesMorris Jobke2017-03-191-1/+0
| | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2670 from ↵Roeland Jago Douma2016-12-141-1/+1
|\ | | | | | | | | nextcloud/issue-2646-dont-connet-to-database-before-creating-it Do not connect to database before creating it
| * Do not connect to database before creating itJoas Schilling2016-12-141-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Only log as info when we can not create a new DB userJoas Schilling2016-12-141-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Added Exception catch in case of DB User existsHemanth Kumar Veeranki2016-10-311-8/+16
| | | | Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
* Add config option to update charset of mysql to utf8mb4Morris Jobke2016-10-191-2/+3
| | | | | * fully optional * requires additional options set in the database
* Fix misleading MySQL DB creation error (#25485)Vincent Petry2016-07-271-1/+9
| | | | | | | Whenever the GRANT ALL failed, it used to display "Database creation failed" which is incorrect. It's only the privleges setting that failed. This moves the privilege setting message to DEBUG and makes it more precise.
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Remove duplicate database connect logic in mysql setupRobin Appelman2016-07-121-35/+0
|
* Added occ install option for database-port.Thomas Pulzer2016-07-061-2/+8
| | | | | Extended the database setup to store the database port. Changed the PostgreSQL connection error message for clarification.
* Update license headersLukas Reschke2016-05-261-0/+2
|
* Move \OC\Repair to PSR-4Roeland Jago Douma2016-04-221-0/+175