Koozali.org: home of the SME Server

Unable to access MySQL

Offline rmoria

  • ***
  • 78
  • +0/-0
    • http://www.osvorca.nl
Unable to access MySQL
« on: August 16, 2021, 12:01:52 PM »
Next problem for me.
I can not access MySQL

I get
Code: [Select]
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I wanted to reset the password using:
Code: [Select]
cd /var/service/mysqld
sv d .
expand-template /root/.my.cnf
expand-template /var/service/mysqld/set.password
/usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables < ./set.password
sv u .
But /var/service/mysqld does not exist.
...
Yes, I can ask more questions then you can answer  8-)
...

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: Unable to access MySQL
« Reply #1 on: August 16, 2021, 12:16:06 PM »
Two points.

First, never, ever, try and manually change your db root password. You will break things which we may not be able to fix.

There are methods in place to do this and to prevent you from making bad mistakes.

https://wiki.koozali.org/MySQL

You should also spend a lot of time in the wiki so you understand that v10 is now systemd controlled.

https://wiki.koozali.org/SME10_serviceControl

Second, please don't keep opening new threads as it confuses things and makes it very difficult to help you.

So stick with this thread and fix one thing at a time instead of jumping everywhere.

https://forums.contribs.org/index.php/topic,54586.0.html
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation