<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Complex CMS Migration Service - Migrate Content (Posts about upgrades)</title><link>https://migratecontent.com/</link><description></description><atom:link href="https://migratecontent.com/categories/upgrades.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 23 Mar 2026 11:24:02 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to fix the mysqldump access denied process privilege error</title><link>https://migratecontent.com/how-to-fix-the-mysqldump-access-denied-process-privilege-error/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>&lt;em&gt;&lt;strong&gt;How to fix the mysqldump process privilege error after applying a recent MySQL update.&lt;/strong&gt;&lt;/em&gt;

You may receive a new 'Access denied' error when trying to dump your MySQL database:

&lt;code&gt;mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces&lt;/code&gt;

You were able to export database before so what caused this? Here's the answer: updates for MySQL 5.7.31 and MySQL 8.0.21 in July 2020 introduced an &lt;a href="https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-31.html#mysqld-5-7-31-security" target="_blank" rel="noopener noreferrer"&gt;incompatible change&lt;/a&gt;:
&lt;blockquote&gt;&lt;span class="bold"&gt;&lt;strong&gt;Incompatible Change:&lt;/strong&gt;&lt;/span&gt; Access to the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/information-schema-files-table.html" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;INFORMATION_SCHEMA.FILES&lt;/code&gt;&lt;/a&gt; table now requires the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_process" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;PROCESS&lt;/code&gt;&lt;/a&gt; privilege.

This change affects users of the &lt;strong&gt;mysqldump&lt;/strong&gt; command, which accesses tablespace information in the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/information-schema-files-table.html" target="_blank" rel="noopener noreferrer"&gt;&lt;code class="literal"&gt;FILES&lt;/code&gt;&lt;/a&gt; table, and thus now requires the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_process" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;PROCESS&lt;/code&gt;&lt;/a&gt; privilege as well. Users who do not need to dump tablespace information can work around this requirement by invoking &lt;strong&gt;mysqldump&lt;/strong&gt; with the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_no-tablespaces" target="_blank" rel="noopener noreferrer"&gt;&lt;code class="option"&gt;--no-tablespaces&lt;/code&gt;&lt;/a&gt; option. (Bug #30350829)&lt;/blockquote&gt;
This error appears when running &lt;code&gt;mysqldump&lt;/code&gt; directly from the command line, exporting the database using a client like MySQL Workbench or if you're &lt;a href="https://migratecontent.com/tag/wordpress/"&gt;managing the WordPress database&lt;/a&gt; through WP-CLI's &lt;code&gt;export&lt;/code&gt; command.

&lt;img class="aligncenter size-full wp-image-3370" src="https://migratecontent.com/wp-content/uploads/how-to-fix-the-mysqldump-access-denied-process-privilege-error-after-mysql-update.png" alt="mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces" width="800" height="120"&gt;

In my case, I encountered the problem when running a routine Python script for a &lt;a href="https://migratecontent.com/drupal-to-wordpress-migration-service/"&gt;Drupal to WordPress migration client&lt;/a&gt;. My script uses WP-CLI to export a database dump file and deploy it to a remote server.
&lt;h2&gt;Solutions for fixing the mysqldump process privilege error&lt;/h2&gt;
The &lt;code&gt;mysqldump&lt;/code&gt; command requires at least the following privilege assigned to the user:
&lt;ul&gt;
 	&lt;li&gt;SELECT privilege for dumped tables&lt;/li&gt;
 	&lt;li&gt;SHOW VIEW for dumped views&lt;/li&gt;
 	&lt;li&gt;TRIGGER for dumped triggers&lt;/li&gt;
 	&lt;li&gt;LOCK TABLES if you don't use the &lt;code&gt;--single-transaction&lt;/code&gt; option&lt;/li&gt;
 	&lt;li&gt;PROCESS if you don't use the &lt;code&gt;--no-tablespaces&lt;/code&gt; option&lt;/li&gt;
&lt;/ul&gt;
The last PROCESS privilege is new as of MySQL 5.7.31 and MySQL 8.0.21 and may be the root source of your problem. You can solve the mysqldump process privilege error in two ways:
&lt;ol&gt;
 	&lt;li&gt;Updating the privileges for your database user.&lt;/li&gt;
 	&lt;li&gt;Runing &lt;code&gt;mysqldump&lt;/code&gt; with the &lt;code&gt;--no-tablespaces&lt;/code&gt; option.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Solution 1: Update the user privileges&lt;/h3&gt;
Granting the PROCESS privilege for the user is perhaps the simplest option for fixing the &lt;code&gt;mysqldump&lt;/code&gt; process privilege error. &lt;strong&gt;Keep in mind that this option presents &lt;a href="https://migratecontent.com/how-to-fix-the-mysqldump-access-denied-process-privilege-error/#process-privilege-dangers"&gt;security issues&lt;/a&gt;&lt;/strong&gt;. You should therefore really only use this option for your own local development server installation.

To grant the PROCESS privilege, log in as an administrator user and run the following query:

&lt;code&gt;GRANT PROCESS ON *.* TO user@localhost;&lt;/code&gt;

Note that PROCESS is a global level privilege. It can't apply to individual databases. Global privileges are either administrative or apply to all databases on your MySQL server. Trying to grant them on individual databases deplays the following error:

&lt;code&gt;ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES&lt;/code&gt;

To grant the privilege to all databases you must use the &lt;code&gt;ON *.* ...&lt;/code&gt; syntax.
&lt;h3&gt;Solution 2: Use the &lt;code&gt;--no-tablespaces&lt;/code&gt; option&lt;/h3&gt;
If you cannot assign global level privileges to your user, for example, when doing so presents unacceptable security issues, you must specify the &lt;code&gt;--no-tablespaces&lt;/code&gt; option when dumping your database.

&lt;code&gt;mysqldump --no-tablespaces -u user -ppass dbname &amp;gt; db_backup_file.sql&lt;/code&gt;
&lt;h2 id="tablespaces"&gt;What are MySQL tablespaces?&lt;/h2&gt;
We are usually only concerned with logical database objects when working with databases. However, the data must be physically stored somewhere. This is where tablespaces come in. Tablespaces are physical datafiles stored in the host file system holding data for one or more tables and indexes.

The diagram below provides a handy illustration. It's from the Oracle Concepts documentation, &lt;a href="https://docs.oracle.com/cd/B19306_01/server.102/b14220/physical.htm" target="_blank" rel="noopener noreferrer"&gt;Introduction to Tablespaces, Datafiles, and Control Files&lt;/a&gt; and refers to Oracle databases. Nevertheless, it may help you understand how tablespaces relate to logical database objects and datafiles.

[caption id="attachment_3378" align="aligncenter" width="522"]&lt;img class="size-full wp-image-3378" src="https://migratecontent.com/wp-content/uploads/Oracle-Introduction-to-Tablespaces-Datafiles-and-Control-Files.gif" alt="Oracle documentation: Introduction to Tablespaces, Datafiles, and Control Files" width="522" height="405"&gt; Diagram source: &lt;a href="https://docs.oracle.com/cd/B19306_01/server.102/b14220/physical.htm" target="_blank" rel="noopener noreferrer"&gt;Oracle Concepts documentation&lt;/a&gt;[/caption]

You can therefore use the &lt;code&gt;--no-tablespaces &lt;/code&gt; option if you don't need to dump tablespace information. This may be the case for routine database dumps, for example when exporting databases for &lt;a href="https://migratecontent.com/tag/migration/"&gt;WordPress migrations&lt;/a&gt;.
&lt;h2 id="process-privilege"&gt;About the access mysqldump denied PROCESS privilege error&lt;/h2&gt;
&lt;code&gt;mysqldump&lt;/code&gt; accesses tablespace information in the FILES table. Prior to MySQL 5.7.31 and 8.0.21, your user could run &lt;code&gt;mysqldump&lt;/code&gt; without the PROCESS privilege. However, users running &lt;code&gt;mysqldump&lt;/code&gt; after the update need PROCESS privileges to access the INFORMATION_SCHEMA.FILES table. Running &lt;code&gt;mysqldump&lt;/code&gt; without PROCESS privilege ends up giving you an &lt;em&gt;Access denied&lt;/em&gt; error.
&lt;h2 id="process-privilege-dangers"&gt;Be careful with the PROCESS privilege&lt;/h2&gt;
According to the MySQL documentation, the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_process" target="_blank" rel="noopener noreferrer"&gt;PROCESS privilege&lt;/a&gt; controls access to information about statements being executed by sessions.

It is a server administration privilege and should not be given to all users. This is because it may show text from currently executing queries. Any user with the PROCESS privilege may therefore see queries issued by others. Here's the danger: these queries, such as &lt;code&gt;UPDATE user SET password=PASSWORD&lt;/code&gt;, may show secrets.

For more information, see &lt;a href="https://www.oreilly.com/library/view/mysql-reference-manual/0596002653/ch04s02.html" target="_blank" rel="noopener noreferrer"&gt;General Security Issues and the MySQL Access Privilege System&lt;/a&gt; from the O'Reilly MySQL Reference Manual.</description><category>database</category><category>mysql</category><category>sys admin</category><category>troubleshooting</category><category>upgrades</category><guid>https://migratecontent.com/how-to-fix-the-mysqldump-access-denied-process-privilege-error/</guid><pubDate>Fri, 23 Oct 2020 15:23:45 GMT</pubDate></item></channel></rss>