My SQL DB not getting connect

Can someone help me..im not able to connect mysql

If this is a Windows type project, then it requires the 64bit drivers to work I believe.

Otherwise, you’ll have to install the 64bit drivers.

You should simply define the DSN, UID and PWD and this is your connection string.

"Dsn="+str_SQL_DSN+";uid=" + str_SQL_Username + ";pwd=" + str_SQL_Password
1 Like

@ba19c1e84c03a81430ebd2ea1

  1. Ensure drivers are present
  2. Check if DNS is added
  3. check your connection string and use the correct one from here MySQL connection strings - ConnectionStrings.com

cheers

1 Like

$connection = new mysqli(“localhost”, “root”, “yourPassword”, “yourDatabase”);

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.