MySQL is not function properly since upgrading to Ubuntu 26.04.1

Ubuntu Version

Ubuntu 26.04 LTS

Desktop Environment (if applicable)

GNOME

Problem Description

After the automatic prompt to upgrade and completion, I tried to open MySQL Workbench to execute some of my usual queries. I was told that my certification was invalid. Then I went to one of the apps I created in Libreoffice Base and was told my certification (i.e., my password) was invalid. I found out from searching on the Internet that there had been a change in the way password were translated or stored or something. I was told I could reset this back to the old way by including a statement in /etc/mysql/my.cnf and or mysql.cnf. The statement was default_authentication_plugin = mysql_native_password

I did this, but then MySQL stopped responding all together. I’m not sure how to get MySql back to where it was before the upgrade. Nothing seems to work., Now the server is not running, and aLL thexcommands t start it are failing,

Can you give the exact error or a screw please?

Well, first off the server is down. When I try to start it, I get the following:

sudo systemctl start mysql
[sudo: authenticate] Password:
Job for mysql.service failed because the control process exited with error code.
See “systemctl status mysql.service” and “journalctl -xeu mysql.service” for details.

Secondly, wen I check the status (I did this first), I get this:

udo systemctl status mysql
● mysql.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
Active: activating (start) since Thu 2026-10-15 20:29:25 EDT; 3s ago
Job: 1682964
Invocation: 3ae3a5f42e204586b557850bb246f1ac
Process: 737329 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=>
Main PID: 737338 (mysqld)
Status: “InnoDB initialization successful”
Tasks: 31 (limit: 151419)
Memory: 449.5M (peak: 449.7M)
CPU: 617ms
CGroup: /system.slice/mysql.service
└─737338 /usr/sbin/mysqld

Oct 15 20:29:25 cp1 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 22.
Oct 15 20:29:25 cp1 systemd[1]: Starting mysql.service - MySQL Community Server

Oct 15 20:29:25 cp1 mysqld[737338]: 2026-10-16T00:29:25.440817Z 0 [System] [MY-015015] [Server]>
Oct 15 20:29:25 cp1 mysqld[737338]: 2026-10-16T00:29:25.617695Z 0 [System] [MY-010116] [Server]>
Oct 15 20:29:25 cp1 mysqld[737338]: 2026-10-16T00:29:25.620500Z 1 [System] [MY-013576] [InnoDB]>
Oct 15 20:29:28 cp1 mysqld[737338]: 2026-10-16T00:29:28.087042Z 1 [System] [MY-013577] [InnoDB]>

And this:

journalctl -xeu mysql.service

The unit mysql.service completed and consumed the indicated resources.
Oct 15 20:32:34 cp1 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 53.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit mysql.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Oct 15 20:32:34 cp1 systemd[1]: Starting mysql.service - MySQL Community Server

░░ Subject: A start job for unit mysql.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit mysql.service has begun execution.
░░
░░ The job identifier is 1688475.
Oct 15 20:32:35 cp1 mysqld[739554]: 2026-10-16T00:32:34.951417Z 0 [System] [MY-015015] [Server]>
Oct 15 20:32:35 cp1 mysqld[739554]: 2026-10-16T00:32:35.127968Z 0 [System] [MY-010116] [Server]>
Oct 15 20:32:35 cp1 mysqld[739554]: 2026-10-16T00:32:35.130698Z 1 [System] [MY-013576] [InnoDB]>
Oct 15 20:32:37 cp1 mysqld[739554]: 2026-10-16T00:32:37.312067Z 1 [System] [MY-013577] [InnoDB]>

The log lines are truncated. Use systemctl --full --no-pager ... to avoid it.

Am I supposed to use the above command just as you have it listed or should the systemctl –full –no-pager be part of a more inclusive command (such as systemctl start or systemctl status)?

Pardon my ignorance, but I have never encountered issues that required me to dig out details; in particular never any issues with mySQL.

They are just additional options that change how output is formatted and can be used with any other systemctl verb or journalctl option. Like

journalctl --full --no-pager -u mysql.service

journalctl --full --no-pager -u mysql.service
Oct 16 17:08:12 cp1 mysqld[1607491]: 2026-10-16T21:08:12.616567Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.4.11-0ubuntu0.26.04.1) (Ubuntu).
Oct 16 17:08:12 cp1 mysqld[1607491]: 2026-10-16T21:08:12.616581Z 0 [System] [MY-015016] [Server] MySQL Server - end.
Oct 16 17:08:12 cp1 systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Oct 16 17:08:12 cp1 systemd[1]: mysql.service: Failed with result ‘exit-code’.
Oct 16 17:08:12 cp1 systemd[1]: Failed to start mysql.service - MySQL Community Server.
Oct 16 17:08:12 cp1 systemd[1]: mysql.service: Consumed 1.229s CPU time over 6.888s wall clock time, 486.1M memory peak.
Oct 16 17:08:12 cp1 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 11507.
Oct 16 17:08:12 cp1 systemd[1]: Starting mysql.service - MySQL Community Server

Oct 16 17:08:13 cp1 mysqld[1607561]: 2026-10-16T21:08:12.949499Z 0 [System] [MY-015015] [Server] MySQL Server - start.
Oct 16 17:08:13 cp1 mysqld[1607561]: 2026-10-16T21:08:13.130405Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.11-0ubuntu0.26.04.1) starting as process 1607561
Oct 16 17:08:13 cp1 mysqld[1607561]: 2026-10-16T21:08:13.133434Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
Oct 16 17:08:15 cp1 mysqld[1607561]: 2026-10-16T21:08:15.598368Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
Oct 16 17:08:17 cp1 mysqld[1607561]: 2026-10-16T21:08:17.586923Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
Oct 16 17:08:17 cp1 mysqld[1607561]: 2026-10-16T21:08:17.586959Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
Oct 16 17:08:17 cp1 mysqld[1607561]: 2026-10-16T21:08:17.621215Z 0 [ERROR] [MY-000067] [Server] unknown variable ‘default_authentication_plugin=mysql_native_password’.
Oct 16 17:08:17 cp1 mysqld[1607561]: 2026-10-16T21:08:17.622194Z 0 [ERROR] [MY-010119] [Server] Aborting
Oct 16 17:08:19 cp1 mysqld[1607561]: 2026-10-16T21:08:19.208302Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.4.11-0ubuntu0.26.04.1) (Ubuntu).
Oct 16 17:08:19 cp1 mysqld[1607561]: 2026-10-16T21:08:19.208324Z 0 [System] [MY-015016] [Server] MySQL Server - end.
Oct 16 17:08:19 cp1 systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Oct 16 17:08:19 cp1 systemd[1]: mysql.service: Failed with result ‘exit-code’.
Oct 16 17:08:19 cp1 systemd[1]: Failed to start mysql.service - MySQL Community Server.
Oct 16 17:08:19 cp1 systemd[1]: mysql.service: Consumed 1.223s CPU time over 6.591s wall clock time, 486.2M memory peak.
Oct 16 17:08:19 cp1 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 11508.
Oct 16 17:08:19 cp1 systemd[1]: Starting mysql.service - MySQL Community Server

Oct 16 17:08:19 cp1 mysqld[1607676]: 2026-10-16T21:08:19.657548Z 0 [System] [MY-015015] [Server] MySQL Server - start.
Oct 16 17:08:19 cp1 mysqld[1607676]: 2026-10-16T21:08:19.842766Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.11-0ubuntu0.26.04.1) starting as process 1607676
Oct 16 17:08:19 cp1 mysqld[1607676]: 2026-10-16T21:08:19.845568Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
Oct 16 17:08:22 cp1 mysqld[1607676]: 2026-10-16T21:08:22.213876Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
Oct 16 17:08:24 cp1 mysqld[1607676]: 2026-10-16T21:08:24.497861Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
Oct 16 17:08:24 cp1 mysqld[1607676]: 2026-10-16T21:08:24.497872Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
Oct 16 17:08:24 cp1 mysqld[1607676]: 2026-10-16T21:08:24.539732Z 0 [ERROR] [MY-000067] [Server] unknown variable ‘default_authentication_plugin=mysql_native_password’.
Oct 16 17:08:24 cp1 mysqld[1607676]: 2026-10-16T21:08:24.540120Z 0 [ERROR] [MY-010119] [Server] Aborting

Looks like this isn’t supported.

So, I presume a next step is to take out the “mysql_native_password’” statement I added to the “.cnf” files or files. Since I could not execute the “Libreoffice Base” apps I had created before I added that statement to the file(s).

II do the above, which I will, I presume I will need to execute some diagnostic command(s) to see what they tell me. I’ll remove the statement and try the start and the status commands.

sudo systemctl status mysql
[sudo: authenticate] Password:
● mysql.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
Active: active (running) since Sat 2026-10-17 10:29:13 EDT; 28min ago
Invocation: b3bda697582c4075926816b1d1f0ac42
Process: 2295577 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status>
Main PID: 2295587 (mysqld)
Status: “Server is operational”
Tasks: 48 (limit: 151419)
Memory: 485.9M (peak: 488.1M)
CPU: 15.849s
CGroup: /system.slice/mysql.service
└─2295587 /usr/sbin/mysqld

Oct 17 10:29:07 cp1 systemd[1]: Starting mysql.service - MySQL Community Server

Oct 17 10:29:07 cp1 mysqld[2295587]: 2026-10-17T14:29:07.707494Z 0 [System] [MY-015015] [Server>
Oct 17 10:29:07 cp1 mysqld[2295587]: 2026-10-17T14:29:07.893553Z 0 [System] [MY-010116] [Server>
Oct 17 10:29:07 cp1 mysqld[2295587]: 2026-10-17T14:29:07.896191Z 1 [System] [MY-013576] [InnoDB>
Oct 17 10:29:10 cp1 mysqld[2295587]: 2026-10-17T14:29:10.206119Z 1 [System] [MY-013577] [InnoDB>
Oct 17 10:29:12 cp1 mysqld[2295587]: 2026-10-17T14:29:12.938174Z 0 [Warning] [MY-010068] [Serve>
Oct 17 10:29:12 cp1 mysqld[2295587]: 2026-10-17T14:29:12.938206Z 0 [System] [MY-013602] [Server>
Oct 17 10:29:13 cp1 mysqld[2295587]: 2026-10-17T14:29:13.106459Z 0 [System] [MY-011323] [Server>
lines 1-21

Remove the default_authentication_plugin = mysql_native_password line from every MySQL config file you added it to, then start the service with sudo systemctl restart mysql.

Ubuntu 26.04 ships MySQL 8.4, and the MySQL 8.4 changes page lists default_authentication_plugin as removed in 8.4.0.

To keep the LibreOffice Base login working, add mysql_native_password=ON under [mysqld] in /etc/mysql/mysql.conf.d/mysqld.cnf instead, since 8.4 no longer enables that plugin by default.

Drafted with AI.

1 Like

You continues to show useless truncated log lines. Anyway, it says “Server is operational”, so I assume everything is OK now.

Well, I did what you said. For some reason, the server is no longer running.

Here is the result of sudo systemctl status mysql --full --no-pager

sudo systemctl status mysql --full --no-pager
● mysql.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
Active: active (running) since Sat 2026-10-17 10:29:13 EDT; 10h ago
Invocation: b3bda697582c4075926816b1d1f0ac42
Main PID: 2295587 (mysqld)
Status: “Server is operational”
Tasks: 48 (limit: 151419)
Memory: 485.9M (peak: 488.1M)
CPU: 5min 54.728s
CGroup: /system.slice/mysql.service
└─2295587 /usr/sbin/mysqld

Oct 17 10:29:07 cp1 systemd[1]: Starting mysql.service - MySQL Community Server

Oct 17 10:29:07 cp1 mysqld[2295587]: 2026-10-17T14:29:07.707494Z 0 [System] [MY-015015] [Server] MySQL Server - start.
Oct 17 10:29:07 cp1 mysqld[2295587]: 2026-10-17T14:29:07.893553Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.4.11-0ubuntu0.26.04.1) starting as process 2295587
Oct 17 10:29:07 cp1 mysqld[2295587]: 2026-10-17T14:29:07.896191Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
Oct 17 10:29:10 cp1 mysqld[2295587]: 2026-10-17T14:29:10.206119Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
Oct 17 10:29:12 cp1 mysqld[2295587]: 2026-10-17T14:29:12.938174Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
Oct 17 10:29:12 cp1 mysqld[2295587]: 2026-10-17T14:29:12.938206Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
Oct 17 10:29:13 cp1 mysqld[2295587]: 2026-10-17T14:29:13.106459Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: ‘::’ port: 33060, socket: /var/run/mysqld/mysqlx.sock
Oct 17 10:29:13 cp1 mysqld[2295587]: 2026-10-17T14:29:13.106576Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: ‘8.4.11-0ubuntu0.26.04.1’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 (Ubuntu).
Oct 17 10:29:13 cp1 systemd[1]: Started mysql.service - MySQL Community Server.

But I can’t connect to my databases, I can’t get my Libreoffice applications to connect, and MySQL Workbench thinks mySQL server is not running. So, I am at a standstill. Much of my work is centered around these pieces of software operating properly. I have been upgrading from one LTS to the next for 20+ years and never had this issue.

1 Like

I’m not sure if this applies here, but during my upgrade to 26.04 the install process replaced my existing AppArmor config files with default and renamed the existing with filename extension .dpkg-old which created problems.

To check if that happened in your case you can try this command:
ls -l /etc/apparmor.d/*.dpkg-old

Look for “mysql” and “libreoffice”.

Thanks for your suggestion I checked my AppArmor with your your command and came up empty. I also went into the directory and looked at all the files. None had a name ending in -old. I suppose that’s good news, but I would like to get my hands on something that would allow me to straighten out my issue. I have 4 databases I can’t query and 5 apps can’t run. In any case thank you for taking the time to let me know of your issue. I trust you were able to recover.

If you try to use Libreoffice applications now when the MySQL server is up (according to your posted status), and then run this command to see if there are any errors:
sudo journalctl -xe

This will include all log messages (not just MySQL server) starting from the latest ones, you can scroll up and down with arrow keys or PgUp and PgDn. Do you see any related errors when Libreoffice applications try to connect for example? If you see anything interesting paste it here.

Here’s the output of thecommand. I don;t understand any of it, but


sudo journalctl -xe

[sudo: authenticate] Password:
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.515:23163): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.515:23164): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.516:23165): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.516:23166): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.516:23167): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.516:23168): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.516:23169): apparmor=“ALLOWED” op>
Oct 18 14:15:07 cp1 kernel: audit: type=1400 audit(1792347307.516:23170): apparmor=“ALLOWED” op>
Oct 18 14:15:08 cp1 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-hostnamed.service has successfully entered the ‘dead’ state.
Oct 18 14:15:19 cp1 kernel: kauditd_printk_skb: 22 callbacks suppressed
Oct 18 14:15:19 cp1 kernel: audit: type=1400 audit(1792347319.323:23193): apparmor=“ALLOWED” op>
Oct 18 14:15:37 cp1 kernel: audit: type=1400 audit(1792347337.555:23194): apparmor=“ALLOWED” op>
Oct 18 14:15:50 cp1 thunderbird[719481]: JavaScript error: resource:///modules/AddrBookManager.>
Oct 18 14:15:50 cp1 thunderbird[719481]: JavaScript error: resource:///modules/AddrBookManager.>
Oct 18 14:15:52 cp1 sudo[2464516]: pam_unix(sudo:session): session opened for user root(uid=0) >
Oct 18 14:15:52 cp1 sudo[2464516]: butch : TTY=/dev/pts/0 ; PWD=/home/butch ; USER=root ; COMMA>

There is no error related to Libreoffice or MySQL in that log output, granted there is less than one minute shown there. Note the time when you test your Libreoffice apps against MySQL and run the command again to find that time stamp.

BTW: Do you get any error screen/message from the Libreoffice apps themselves when running them against MySQL?

Also, I would like to see your mysqld.cnf as it is now:
sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf

Make sure you exclude any private information if there is any before pasting it here.

The error I get when I am trying to run the Libreoffice apps are

‘The connection to the data source “class1961” could not be established.’ I get the same error on everyone of the apps because my data is in a MySQL data base.

sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf
[sudo: authenticate] Password:

The MySQL database server configuration file.

One can use all long options that the program supports.

Run program with --help to get a list of available options and with

–print-defaults to see which it would actually understand and use.

For explanations see

http://dev.mysql.com/doc/mysql/en/server-system-variables.html

Here is entries for some specific programs

The following values assume you have at least 32M ram

[mysqld]

* Basic Settings

user = mysql
mysql_native_password=ON

pid-file = /var/run/mysqld/mysqld.pid

socket = /var/run/mysqld/mysqld.sock

port = 3306

datadir = /var/lib/mysql

If MySQL is running as a replication slave, this should be

changed. Ref https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html#sysvar_tmpdir

tmpdir = /tmp

Instead of skip-networking the default is now to listen only on

localhost which is more compatible and is not less secure.

bind-address = 127.0.0.1
mysqlx-bind-address = 127.0.0.1

* Fine Tuning

key_buffer_size = 16M

max_allowed_packet = 64M

thread_stack = 256K

thread_cache_size = -1

This replaces the startup script and checks MyISAM tables if needed

the first time they are touched

myisam-recover-options = BACKUP

max_connections = 151

table_open_cache = 4000

* Logging and Replication

Both location gets rotated by the cronjob.

Log all queries

Be aware that this log type is a performance killer.

general_log_file = /var/log/mysql/query.log

general_log = 1

Error log - should be very few entries.

log_error = /var/log/mysql/error.log

Here you can see queries with especially long duration

slow_query_log = 1

slow_query_log_file = /var/log/mysql/mysql-slow.log

long_query_time = 2

log-queries-not-using-indexes

The following can be used as easy to replay backup logs or for replication.

note: if you are setting up a replication slave, see README.Debian about

other settings you may need to change.

server-id = 1

log_bin = /var/log/mysql/mysql-bin.log

binlog_expire_logs_seconds = 2592000

max_binlog_size = 100M

binlog_do_db = include_database_name

binlog_ignore_db = include_database_name

sudo cat /etc/mysql/mysql.conf.d/mysqld.cnf
[sudo: authenticate] Password:

The MySQL database server configuration file.

One can use all long options that the program supports.

Run program with --help to get a list of available options and with

–print-defaults to see which it would actually understand and use.

For explanations see

http://dev.mysql.com/doc/mysql/en/server-system-variables.html

Here is entries for some specific programs

The following values assume you have at least 32M ram

[mysqld]

* Basic Settings

user = mysql
mysql_native_password=ON

pid-file = /var/run/mysqld/mysqld.pid

socket = /var/run/mysqld/mysqld.sock

port = 3306

datadir = /var/lib/mysql

If MySQL is running as a replication slave, this should be

changed. Ref https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html#sysvar_tmpdir

tmpdir = /tmp

Instead of skip-networking the default is now to listen only on

localhost which is more compatible and is not less secure.

bind-address = 127.0.0.1
mysqlx-bind-address = 127.0.0.1

* Fine Tuning

key_buffer_size = 16M

max_allowed_packet = 64M

thread_stack = 256K

thread_cache_size = -1

This replaces the startup script and checks MyISAM tables if needed

the first time they are touched

myisam-recover-options = BACKUP

max_connections = 151

table_open_cache = 4000

* Logging and Replication

Both location gets rotated by the cronjob.

Log all queries

Be aware that this log type is a performance killer.

general_log_file = /var/log/mysql/query.log

general_log = 1

Error log - should be very few entries.

log_error = /var/log/mysql/error.log

Here you can see queries with especially long duration

slow_query_log = 1

slow_query_log_file = /var/log/mysql/mysql-slow.log

long_query_time = 2

log-queries-not-using-indexes

The following can be used as easy to replay backup logs or for replication.

note: if you are setting up a replication slave, see README.Debian about

other settings you may need to change.

server-id = 1

log_bin = /var/log/mysql/mysql-bin.log

binlog_expire_logs_seconds = 2592000

max_binlog_size = 100M

binlog_do_db = include_database_name

binlog_ignore_db = include_database_name