mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01: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:
@@ -22170,3 +22170,6 @@
|
|||||||
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
|
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Refactored the 'Mysql Login' dialog in rddbconfig(8) to be
|
* Refactored the 'Mysql Login' dialog in rddbconfig(8) to be
|
||||||
resizeable.
|
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,"+
|
"INDEX,"+
|
||||||
"ALTER,"+
|
"ALTER,"+
|
||||||
"LOCK TABLES "+
|
"LOCK TABLES "+
|
||||||
"on `"+db_name+"` to `"+rd_config->mysqlUsername()+"`";
|
"on `"+db_name+"`.* to `"+rd_config->mysqlUsername()+"`";
|
||||||
/*
|
|
||||||
"on %s.* to %s",
|
|
||||||
db_name.toUtf8().constData(),
|
|
||||||
rd_config->mysqlUsername().toUtf8().constData());
|
|
||||||
*/
|
|
||||||
q=new QSqlQuery(sql,db);
|
q=new QSqlQuery(sql,db);
|
||||||
if (!q->isActive()) {
|
if (!q->isActive()) {
|
||||||
*err_str+=QString().sprintf("Could not set permissions: %s",
|
*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;
|
delete q;
|
||||||
|
|
||||||
sql=QString("flush privileges");
|
|
||||||
q=new QSqlQuery(sql,db);
|
|
||||||
delete q;
|
|
||||||
|
|
||||||
QProcess rddbmgrProcess(parent);
|
QProcess rddbmgrProcess(parent);
|
||||||
QStringList args;
|
QStringList args;
|
||||||
args << QString("--create");
|
args << QString("--create");
|
||||||
|
|||||||
Reference in New Issue
Block a user