Hi,
This problem does not exist after installing the MySQL 9.0.1 addon. I've just tried a fresh installation of MySQL 9.0.1 under Apache 2.4.62 and PHP 8.3.10.
The connection to the MySQL console (Left-click -> MySQL -> MySQL Console) is carried out without any problem with the user root without a password.
--- Using the MySQL console
- How to set a password for root (MySQL 9+)
# MySQL 9 - Password and Privileges for `root`
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'new_password' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' DEFAULT ROLE ALL;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION;
CREATE USER IF NOT EXISTS 'root'@'127.0.0.1' IDENTIFIED WITH caching_sha2_password BY 'new_password' PASSWORD EXPIRE NEVER;
ALTER USER IF EXISTS 'root'@'127.0.0.1' DEFAULT ROLE ALL;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' WITH GRANT OPTION;
CREATE USER IF NOT EXISTS 'root'@'::1' IDENTIFIED WITH caching_sha2_password BY 'new_password' PASSWORD EXPIRE NEVER;
ALTER USER IF EXISTS 'root'@'::1' DEFAULT ROLE ALL;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'::1' WITH GRANT OPTION;
#
- How to set a new user
# Password and Privileges for `new_user`@`127.0.0.1`
CREATE USER 'new_user'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'user_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK;
# User privileges on all databases
GRANT USAGE ON *.* TO 'new_user'@'localhost';
# Possibly restricted use on certain databases
GRANT SELECT, INSERT, UPDATE, DELETE ON `database_number_1`.* TO 'new_user'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE ON `database_number_2`.* TO 'new_user'@'localhost';
# To be repeated for 127.0.0.1 and ::1
CREATE USER 'new_user'@'127.0.0.1' IDENTIFIED WITH caching_sha2_password BY 'user_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK;
GRANT USAGE ON *.* TO 'new_user'@'127.0.0.1';
GRANT SELECT, INSERT, UPDATE, DELETE ON `database_number_1`.* TO 'new_user'@'127.0.0.1';
GRANT SELECT, INSERT, UPDATE, DELETE ON `database_number_2`.* TO 'new_user'@'127.0.0.1';
CREATE USER 'new_user'@'::1' IDENTIFIED WITH caching_sha2_password BY 'user_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK;
GRANT USAGE ON *.* TO 'new_user'@'::1';
GRANT SELECT, INSERT, UPDATE, DELETE ON `database_number_1`.* TO 'new_user'@'::1';
GRANT SELECT, INSERT, UPDATE, DELETE ON `database_number_2`.* TO 'new_user'@'::1';
#
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons