Post History
#3: Post edited
- It looks like you are using a database user `root`. I suspect this is at least part of the problem, so I recommend fixing it first.
- If you look in the QPixel repository at the file `config/database.yml` you should see the database username and password that QPixel is trying to connect with (for me it's lines 8 and 9):
- ```text
- username: qpixel
- password: redacted
- ```
- If you set up a database user called `qpixel` and set a password that you then add to `config/database.yml`, then QPixel should be able to connect to the database.
- The instructions for doing this are in the section ["Setting up the Database" in the installation instructions for QPixel](https://github.com/codidact/qpixel/blob/develop/INSTALLATION.md#setting-up-the-database). Since you have already set up QPixel in the past, but then reinstalled MySQL, you may need to repeat some of these steps if things are missing (even though you already did them when you first set up QPixel).
For example, your config files should all still be intact, but contents of the database such as tables and users may need to be created again (they may not - I'm unsure, so I recommend setting up the `qpixel` user and then seeing if that's enough before repeating any other steps).[]()
- It looks like you are using a database user `root`. I suspect this is at least part of the problem, so I recommend fixing it first.
- If you look in the QPixel repository at the file `config/database.yml` you should see the database username and password that QPixel is trying to connect with (for me it's lines 8 and 9):
- ```text
- username: qpixel
- password: redacted
- ```
- If you set up a database user called `qpixel` and set a password that you then add to `config/database.yml`, then QPixel should be able to connect to the database.
- The instructions for doing this are in the section ["Setting up the Database" in the installation instructions for QPixel](https://github.com/codidact/qpixel/blob/develop/INSTALLATION.md#setting-up-the-database). Since you have already set up QPixel in the past, but then reinstalled MySQL, you may need to repeat some of these steps if things are missing (even though you already did them when you first set up QPixel).
- For example, your config files should all still be intact, but contents of the database such as tables and users may need to be created again (they may not - I'm unsure, so I recommend setting up the `qpixel` database user and then seeing if that's enough before repeating any other steps).
#2: Post edited
It looks like you are using a database user `root` and a password for that user of `qpixel_dev`[^1]. I suspect this is at least part of the problem, so I recommend fixing it first.- If you look in the QPixel repository at the file `config/database.yml` you should see the database username and password that QPixel is trying to connect with (for me it's lines 8 and 9):
- ```text
- username: qpixel
- password: redacted
- ```
- If you set up a database user called `qpixel` and set a password that you then add to `config/database.yml`, then QPixel should be able to connect to the database.
- The instructions for doing this are in the section ["Setting up the Database" in the installation instructions for QPixel](https://github.com/codidact/qpixel/blob/develop/INSTALLATION.md#setting-up-the-database). Since you have already set up QPixel in the past, but then reinstalled MySQL, you may need to repeat some of these steps if things are missing (even though you already did them when you first set up QPixel).
For example, your config files should all still be intact, but contents of the database such as tables and users may need to be created again (they may not - I'm unsure, so I recommend setting up the `qpixel` user and then seeing if that's enough before repeating any other steps).[^1]: There is a database called `qpixel_dev`, so this may have been accidentally typed in the wrong place.
- It looks like you are using a database user `root`. I suspect this is at least part of the problem, so I recommend fixing it first.
- If you look in the QPixel repository at the file `config/database.yml` you should see the database username and password that QPixel is trying to connect with (for me it's lines 8 and 9):
- ```text
- username: qpixel
- password: redacted
- ```
- If you set up a database user called `qpixel` and set a password that you then add to `config/database.yml`, then QPixel should be able to connect to the database.
- The instructions for doing this are in the section ["Setting up the Database" in the installation instructions for QPixel](https://github.com/codidact/qpixel/blob/develop/INSTALLATION.md#setting-up-the-database). Since you have already set up QPixel in the past, but then reinstalled MySQL, you may need to repeat some of these steps if things are missing (even though you already did them when you first set up QPixel).
- For example, your config files should all still be intact, but contents of the database such as tables and users may need to be created again (they may not - I'm unsure, so I recommend setting up the `qpixel` user and then seeing if that's enough before repeating any other steps).[]()
#1: Initial revision
It looks like you are using a database user `root` and a password for that user of `qpixel_dev`[^1]. I suspect this is at least part of the problem, so I recommend fixing it first. If you look in the QPixel repository at the file `config/database.yml` you should see the database username and password that QPixel is trying to connect with (for me it's lines 8 and 9): ```text username: qpixel password: redacted ``` If you set up a database user called `qpixel` and set a password that you then add to `config/database.yml`, then QPixel should be able to connect to the database. The instructions for doing this are in the section ["Setting up the Database" in the installation instructions for QPixel](https://github.com/codidact/qpixel/blob/develop/INSTALLATION.md#setting-up-the-database). Since you have already set up QPixel in the past, but then reinstalled MySQL, you may need to repeat some of these steps if things are missing (even though you already did them when you first set up QPixel). For example, your config files should all still be intact, but contents of the database such as tables and users may need to be created again (they may not - I'm unsure, so I recommend setting up the `qpixel` user and then seeing if that's enough before repeating any other steps). [^1]: There is a database called `qpixel_dev`, so this may have been accidentally typed in the wrong place.