Skip to content

Commit

Permalink
change mysql to mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosamudio committed Sep 16, 2021
1 parent 4aac5f3 commit 300768f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MainWindow::~MainWindow()
}
void MainWindow::StatusUpdate(){
pid_t apache = system("pidof -s apache2");
pid_t mysqld = system("pidof -s mysqld");
pid_t mysqld = system("pidof -s mariadb");
pid_t ftp = system("pidof -s filezilla");
if(apache != 256)
ui->label_8->setText("Running");
Expand Down Expand Up @@ -79,7 +79,7 @@ void MainWindow::on_apache_clicked()

void MainWindow::on_mysql_clicked()
{
bash("service mysql restart");
bash("service mariadb restart");
}

void MainWindow::on_ftp_clicked()
Expand All @@ -90,15 +90,15 @@ void MainWindow::on_ftp_clicked()
void MainWindow::on_startall_clicked()
{
bash("service apache2 restart");
bash("service mysql restart");
bash("service mariadb restart");
bash("service filezilla restart");

}

void MainWindow::on_stopall_clicked()
{
bash("service apache2 stop");
bash("service mysql stop");
bash("service mariadb stop");
bash("service filezilla stop");
}

Expand Down
4 changes: 2 additions & 2 deletions mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>MySQL</string>
<string>MariaDB</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QPushButton" name="mysql">
<widget class="QPushButton" name="mariadb">
<property name="text">
<string>Restart</string>
</property>
Expand Down

0 comments on commit 300768f

Please sign in to comment.