mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-01 16:42:34 +02:00
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rddbconfig(8) that caused creation of a new database to fail. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
dc6b289574
commit
ec13ee47e8
@ -22170,3 +22170,6 @@
|
||||
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Refactored the 'Mysql Login' dialog in rddbconfig(8) to be
|
||||
resizeable.
|
||||
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in rddbconfig(8) that caused creation of a new
|
||||
database to fail.
|
||||
|
@ -126,12 +126,7 @@ bool CreateDb::create(QWidget *parent,QString *err_str,RDConfig *rd_config)
|
||||
"INDEX,"+
|
||||
"ALTER,"+
|
||||
"LOCK TABLES "+
|
||||
"on `"+db_name+"` to `"+rd_config->mysqlUsername()+"`";
|
||||
/*
|
||||
"on %s.* to %s",
|
||||
db_name.toUtf8().constData(),
|
||||
rd_config->mysqlUsername().toUtf8().constData());
|
||||
*/
|
||||
"on `"+db_name+"`.* to `"+rd_config->mysqlUsername()+"`";
|
||||
q=new QSqlQuery(sql,db);
|
||||
if (!q->isActive()) {
|
||||
*err_str+=QString().sprintf("Could not set permissions: %s",
|
||||
@ -140,10 +135,6 @@ bool CreateDb::create(QWidget *parent,QString *err_str,RDConfig *rd_config)
|
||||
}
|
||||
delete q;
|
||||
|
||||
sql=QString("flush privileges");
|
||||
q=new QSqlQuery(sql,db);
|
||||
delete q;
|
||||
|
||||
QProcess rddbmgrProcess(parent);
|
||||
QStringList args;
|
||||
args << QString("--create");
|
||||
|
Loading…
x
Reference in New Issue
Block a user