Comments - mysqli_connect did not work

9 years, 1 month ago Jan Steinman

I would look at your MySQL users first. Are you certain you have the correct users and rights to do what you want to do?

Can you connect from the same host using the same login credentials using a different client, such as the mysql CLI? Is your database on the same host as your PHP process? Have you tried (temporarily!) using the root credentials with your mysqli_connect() call?

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.