Skip to main content

Authentication plugin 'caching_sha2_password' cannot be loaded

 Image by  alandsmann  from  Pixabay


This is how to handle the error "Authentication plugin 'caching_sha2_password' cannot be loaded" when linking to MySQL on MacBook.

The cause is that the password processing method has changed since MySQL 8.x and later, but SQLAlchemy is looking at the old method.

If MySQL Community is installed, click “System Settings” and then click MySQL.

Click “Initialize Database”.

Enter a password of appropriate length, select “Use Legacy Password Encryption” and click “OK”.


Click “Start MySQL Server”.

After the MySQL server is running, you can reconnect.

If you do not have MySQL Community, you can change the root password to mysql_native_password.

mysql> alter user 'root'@'localhost' identified with mysql_native_password by ‘new password';

 

Comments

Popular posts from this blog

Economy Insights for October 23, 2025

  Economy Insights for October 23, 2025 ⚠️ Disclaimer : This content is a personal opinion based on publicly available economic indicators. All investments should be made under your own judgment and responsibility. https://www.cnbc.com/2025/10/21/stock-market-today-live-updates.html Global Market Status: Mixed Sentiment Amid US-China Trade Talk Hopes On October 23, 2025, global financial markets exhibited a mixed sentiment , oscillating between anticipation for US-China trade negotiations and persistent uncertainties. While President Trump expressed optimism about securing a favorable trade deal with China, the market is maintaining a cautious stance, especially with the meeting with President Xi Jinping remaining unconfirmed. Investor anxiety is further compounded by the ongoing US government shutdown, which has led to delays in the release of key economic data. The following sections analyze the latest market trends and economic indicators, along with a future outlook. 1. Stock M...

subtle rise in inflation—will the anticipation for a rate cut still hold?

 Hello there, fellow investor. The U.S. economy is currently at a very interesting crossroads. Recent economic data reveals a subtle yet significant tug-of-war between inflation and economic growth, leaving many to wonder about the Federal Reserve's next move. Key Economic Indicators and the Current Situation According to the latest Personal Consumption Expenditures (PCE) price index , annual inflation rose to 2.9% in July, a slight increase from June's 2.8%. While this aligns with market forecasts, it remains stubbornly above the Fed's 2% target. Core PCE, which excludes volatile food and energy prices, has now been above this target for 53 consecutive months. This inflationary pressure is partly attributed to the tariff policies implemented by the Trump administration, which have started to filter into consumer prices. However, it's not all about inflation. The U.S. economy still shows remarkable resilience. The second-quarter GDP growth exceeded expectations at 3.3%...

Today's Economic Insights - July 1, 2025

  Today's Economic Insights - July 1, 2025 ⚠️ Disclaimer: This content represents personal views based on publicly available economic indicators. All investments should be made based on your own judgment and responsibility. https://www.bbc.com/news/articles/c62553ywn77o Global Market Overview: Rally Amid Trade Progress and Monetary Policy Expectations On the final day of the first half of 2025, global financial markets closed strong, buoyed by progress in U.S. trade negotiations and expectations of accommodative monetary policies from major central banks. Canada's scrapping of its digital services tax and a new trade agreement with China significantly reduced market uncertainties. However, the approaching July 9 deadline for President Trump's tariff reprieve and concerns about economic growth slowdown across major economies remain key market variables. 1. Equity Market Performance United States (S&P 500) Both the S&P 500 and Nasdaq 100 gained 0.5%, reaching ne...