diff --git a/pifpaf/drivers/mysql.py b/pifpaf/drivers/mysql.py index 40c7539..63c9f96 100644 --- a/pifpaf/drivers/mysql.py +++ b/pifpaf/drivers/mysql.py @@ -10,8 +10,8 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. +import getpass import logging -import os from pifpaf import drivers @@ -27,7 +27,7 @@ def _setUp(self): os.mkdir(datadir) os.mkdir(tempdir) - mysql_user_to_use = os.getlogin() + mysql_user_to_use = getpass.getuser() c, _ = self._exec(["mysqld", "--no-defaults",