Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pthai-it-dev's avatar

Connection problem with mariadb in laragon

This is my first time i use laragon. After switching to mariadb version 10.6.3 or 10.6.7, i change password to 1234. But everytime i access to database, i get error "Access denied for user 'root'@'localhost' (using password: YES)". When i use mariadb version 10.2.x, everything is normal, i change password to 1234 and connected successfully to the database. Can anyone know what is hanppening and tell me how to fix it. Thank you

0 likes
5 replies
jlrdw's avatar

Do you have multiple database instances. If that's the case, that may be the trouble.

1 like
pthai-it-dev's avatar

@jlrdw i dont think that is the problem. Becausei extracted 3 version of mariadb and 1 version of mysql in laragon. But1 maridb version 10.2.x and mysql still works normally when i switching between them. But i will check again. Thank you.

pthai-it-dev's avatar

@jlrdw this time i run mysql_install_db.exe after extracting zip file and it does create a data folder. But laragon can not change the root password anymore (error: Column 'plugin' is not updatable). So i need t know the default password of root user in mariadb to access, right?

murugappan's avatar

I resolved mine. Please check the my.ini file in Laragon->bin->mysql-> and deletes all the lines that start with "=". These are rubbish. Dont know why they are there.

Please or to participate in this conversation.